alibaba / alibaba/tidevice

Bug-当设备USB拔掉,_usbmux.Usbmux().device_udid_list()还是会返回拔掉设备的udid

Open
#67 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

tidevice版本:0.3.5 @codeskyblue 堆栈如下:
File "F:\GitLab\apprunner\apprunner\device\ios\ios_device.py", line 200, in _install_agent
device = tidevice.Device(self.get_udid())
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 86, in __init__
self._info = self.info
File "F:\GitLab\apprunner\venv\lib\site-packages\cached_property.py", line 36, in __get__
value = obj.__dict__[self.func.__name__] = self.func(obj)
File "F:\GitLab\apprunner\venv\lib\site-packages\tidevice\_device.py", line 115, in info
raise MuxError("Device: {} not ready".format(self._udid))
tidevice.exceptions.MuxError: Device: 60d96bf4160b149ea798f198aeb790c50a5c5df6 not ready

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the USB detach scenario on tidevice 0.3.5 and inspect _usbmux.Usbmux().device_udid_list() alongside tidevice/_device.py, where the not-ready error is raised. Trace whether the detached UDID remains in the returned list; done means the list no longer includes it after removal and the reported MuxError path is avoided.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.