Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

真机连接时提示Local server not started, start with #153

Open
DCHuTJU opened this issue May 12, 2024 · 0 comments
Open

真机连接时提示Local server not started, start with #153

DCHuTJU opened this issue May 12, 2024 · 0 comments

Comments

@DCHuTJU
Copy link

DCHuTJU commented May 12, 2024

RT,我在尝试使用真机连接时,部分页面会显示如图内的报错,请问这个是什么原因呢?
image
我尝试重新启动weditor,但仍然在同一个页面会报错,weditor的日志为:
[E 240512 23:33:45 web:1875] Uncaught exception GET /api/v2/devices/AndroidADB%3A/hierarchy (::1)
HTTPServerRequest(protocol='http', host='localhost:17310', method='GET', uri='/api/v2/devices/AndroidADB%3A/hierarchy', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\tornado\web.py", line 1788, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\weditor\web\handlers\page.py", line 97, in get
self.write(d.dump_hierarchy2())
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\weditor\web\device.py", line 44, in dump_hierarchy2
page_xml = self._d.dump_hierarchy()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\adbutils\shell.py", line 434, in dump_hierarchy
raise AdbError("uiautomator dump failed", output)
adbutils.errors.AdbError: ('uiautomator dump failed', 'ERROR: could not get idle state.\nsuccess')
[E 240512 23:33:45 web:2348] 500 GET /api/v2/devices/AndroidADB%3A/hierarchy (::1) 12332.57ms

设备为Android 14
使用USB连接

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

No branches or pull requests

1 participant