YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
633 stars 179 forks source link

socket 连接好像不稳定 #140

Closed hyfand closed 2 months ago

hyfand commented 2 months ago

Traceback (most recent call last): File "/Users/happyelements/PycharmProjects/test_use/ios17_test/ios_17_rpc_func.py", line 155, in is_running_pid data = tmp_rpc.call(InstrumentsService.DeviceInfo, "runningProcesses").selector File "/Users/happyelements/PycharmProjects/test_use/venv/lib/python3.9/site-packages/ios_device/servers/dvt.py", line 185, in call channel_id = self.make_channel(channel) File "/Users/happyelements/PycharmProjects/test_use/venv/lib/python3.9/site-packages/ios_device/servers/dvt.py", line 180, in make_channel self._call(True, 0, "_requestChannelWithCode:identifier:", channel_id, channel) File "/Users/happyelements/PycharmProjects/test_use/venv/lib/python3.9/site-packages/ios_device/servers/dvt.py", line 223, in _call self._client.send_dtx(self._cli, dtx) File "/Users/happyelements/PycharmProjects/test_use/venv/lib/python3.9/site-packages/ios_device/servers/dvt.py", line 38, in send_dtx return client.send(buffer) AttributeError: 'NoneType' object has no attribute 'send'

在统一的tunnel内,我开了多个线程,对应多个rpc连接,但貌似经常出现不稳定,我已经自检代码, 不知道是哪里的问题