Crash-tidevice崩溃
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
崩溃堆栈:
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 820, in instruments
return self.connect_instruments()
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 809, in connect_instruments
conn = self.start_service(
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 454, in start_service
return self._unsafe_start_service(name)
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 462, in _unsafe_start_service
with self.create_session() as s:
File "D:\Users\yl1150\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 113, in __enter__
return next(self.gen)
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 343, in create_session
s.switch_to_ssl(self.ssl_pemfile_path)
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_safe_socket.py", line 73, in switch_to_ssl
ssock = ssl.wrap_socket(self._sock,
File "D:\Users\yl1150\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 1405, in wrap_socket
return context.wrap_socket(
File "D:\Users\yl1150\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "D:\Users\yl1150\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "D:\Users\yl1150\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error
@codeskyblue
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the instruments path in tidevice/_device.py at lines 809-820 and the session setup at line 343, then inspect the SSL transition in tidevice/_safe_socket.py at line 73. Reproduce the instruments connection that reaches the reported handshake error and confirm that the connection completes without the OSError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100