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
671 stars 183 forks source link

Blocking and Infinite Wait When Running Two Scripts for Device Performance Measurement #158

Closed myungkyojung closed 1 day ago

myungkyojung commented 1 week ago

I have written two python scripts to measure device performance. When I run both scripts simultaneously, one script gets blocked and enters an infinite wait state. I believe this issue is similar to the one discussed in (https://github.com/danielpaulus/go-ios/pull/462). Is there any solution for this?

File "myscript.py", line 129, in main with RemoteLockdownClient((args.host, args.port), userspace_port=args.userspace_port) as rsd: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remote_lockdown.py", line 31, in init super().init(address=address, userspace_port=userspace_port) File "/opt/homebrew/lib/python3.11/site-packages/ios_device/util/lockdown.py", line 66, in init self.connect() File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remote_lockdown.py", line 46, in connect self.service.connect() File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 41, in connect self._do_handshake() File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 115, in _do_handshake assert isinstance(self._receive_frame(), SettingsFrame) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 146, in _receive_frame buf = self._recvall(FRAME_HEADER_SIZE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 154, in _recvall chunk = self.sock.recv(size - len(data)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyboardInterrupt

YueChen-C commented 1 week ago

I haven’t studied iOS 17 tunnels in depth, so I can’t give any suggestions.

myungkyojung commented 6 days ago

@YueChen-C Thank you for your answer.