Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
linmscat opened this issue Apr 12, 2021 · 4 comments

Comments

@linmscat
Copy link

linmscat commented Apr 12, 2021

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

@linmscat
Copy link
Author

@electricbubble
Copy link
Contributor

  1. device_udid_list 函数无 BUG
  2. 你当前的报错信息是提醒你, 你曾经指定 udid 的设备并不在接入设备列表中

@linmscat
Copy link
Author

  1. device_udid_list 函数无 BUG
  2. 你当前的报错信息是提醒你, 你曾经指定 udid 的设备并不在接入设备列表中

是因为device_udid_list 返回了该udid,构建tidevice.Device对象时,出现该崩溃堆栈,根本的原因是device_udid_list 就不该给我返回这个已经掉线的设备id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants