SoloX icon indicating copy to clipboard operation
SoloX copied to clipboard

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

Open chenyan77240 opened this issue 1 year ago • 5 comments

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为空 仅获取到电池指标 结束后一直卡在这个弹窗页 命令行错误

chenyan77240 avatar Apr 28 '23 14:04 chenyan77240

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

rafa0128 avatar May 04 '23 03:05 rafa0128

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

RockyAo avatar May 16 '23 11:05 RockyAo

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

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

rafa0128 avatar May 16 '23 12:05 rafa0128

换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

chenyan77240 avatar May 21 '23 11:05 chenyan77240

换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的问题:https://github.com/alibaba/taobao-iphone-device/issues/215

rafa0128 avatar May 22 '23 00:05 rafa0128