Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac,iPhone13无法监测到CPU、GPU、Network、MEM #151

Open
chenyan77240 opened this issue Apr 28, 2023 · 5 comments
Open

Mac,iPhone13无法监测到CPU、GPU、Network、MEM #151

chenyan77240 opened this issue Apr 28, 2023 · 5 comments

Comments

@chenyan77240
Copy link

chenyan77240 commented Apr 28, 2023

Mac Pro:12.4
iPhone 13 :16.3.1
Python: 3.11
通过python3 -m solox 启动,已连接IOS设备选择QQ音乐,点击开始后会弹窗报错Host Error,host is invalid;但是继续操作QQ音乐,能看到FPS图有变化,其他CPU、GPU、Network、MEM等指标无法监测到,点击结束生成报告会一直卡住提示生成报告页,求大神指导~

命令行日志中报错:cpu、mem请求返回400错误,GPU.init() got an unexpected keyword argument 'pkgname',但是从界面上已选了QQ音乐应用

192.168.1.11 - - [29/Apr/2023 10:49:38] "GET /package/pids?platform=iOS&device=iPhoneSE%3Ae393b6f72bd4d0332811e7b795907c304bb1bbd7&pkgname=com.tencent.QQMusic&=1682736572708 HTTP/1.1" 200 -
192.168.1.11 - - [29/Apr/2023 10:49:40] "GET /apm/set/network?platform=iOS&pkgname=com.tencent.QQMusic&device=iPhoneSE%3Ae393b6f72bd4d0332811e7b795907c304bb1bbd7&wifi_switch=false&type=pre&
=1682736572709 HTTP/1.1" 400 -
192.168.1.11 - - [29/Apr/2023 10:49:40] "POST /apm/initialize HTTP/1.1" 200 -
192.168.1.11 - - [29/Apr/2023 10:49:40] "GET /apm/cpu?model=normal&platform=iOS&pkgname=com.tencent.QQMusic&device=iPhoneSE%3Ae393b6f72bd4d0332811e7b795907c304bb1bbd7&=1682736572710 HTTP/1.1" 400 -
192.168.1.11 - - [29/Apr/2023 10:49:40] "GET /apm/mem?model=normal&platform=iOS&pkgname=com.tencent.QQMusic&device=iPhoneSE%3Ae393b6f72bd4d0332811e7b795907c304bb1bbd7&
=1682736572711 HTTP/1.1" 400 -
192.168.1.11 - - [29/Apr/2023 10:49:40] "GET /apm/network?model=normal&platform=iOS&pkgname=com.tencent.QQMusic&device=iPhoneSE%3Ae393b6f72bd4d0332811e7b795907c304bb1bbd7&wifi_switch=false&_=1682736572712 HTTP/1.1" 400 -
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/solox/view/apis.py", line 336, in getGpu
gpu = GPU(pkgname=pkgname)
^^^^^^^^^^^^^^^^^^^^
TypeError: GPU.init() got an unexpected keyword argument 'pkgname'

启动报错Host Error

CPU和MEM为空

仅获取到电池指标

结束后一直卡在这个弹窗页

命令行错误

@rafa0128
Copy link
Member

rafa0128 commented May 4, 2023

这里有两个问题,gpu那个新版本解决了,另外一个是tidevice的问题,我建议你换个设备再试试看

@RockyAo
Copy link

RockyAo commented May 16, 2023

我也有相同的问题, Solox 使用的master分之, Python 3.10.0, 我手里的所有设备都会出这个问题

@rafa0128
Copy link
Member

我也有相同的问题, Solox 使用的master分之, Python 3.10.0, 我手里的所有设备都会出这个问题

明天发布下个版本改,上周知道了还没空改

@chenyan77240
Copy link
Author

换IOS设备后,还是获取不到CPU、Mem指标

报错如下:看起来是Python的错误
[E 230521 19:14:37 apis:237] get memory data failed
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tidevice/_instruments.py", line 566, in wait_reply
ret = self._reply_queues[message_id].get(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/queue.py", line 179, in get
raise Empty
_queue.Empty

[E 230521 17:46:59 apis:199] get cpu failed
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tidevice/_instruments.py", line 566, in wait_reply
ret = self._reply_queues[message_id].get(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/queue.py", line 179, in get
raise Empty
_queue.Empty

@rafa0128
Copy link
Member

换IOS设备后,还是获取不到CPU、Mem指标

报错如下:看起来是Python的错误 [E 230521 19:14:37 apis:237] get memory data failed Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tidevice/_instruments.py", line 566, in wait_reply ret = self._reply_queues[message_id].get(timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/queue.py", line 179, in get raise Empty _queue.Empty

[E 230521 17:46:59 apis:199] get cpu failed Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tidevice/_instruments.py", line 566, in wait_reply ret = self._reply_queues[message_id].get(timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/queue.py", line 179, in get raise Empty _queue.Empty

应该不是必然出现的吧?这个是tidevice的问题:alibaba/tidevice#215

@rafa0128 rafa0128 reopened this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants