小程序抓取UI树失败,提示hogging the main UI thread
回答
收藏

小程序抓取UI树失败,提示hogging the main UI thread

小林001
2024-02-27 10:10·浏览量:175
小林001
发布于 2024-02-27 10:10175浏览

An unknown server-side error occurred while processing the command. Original error: Timed out after 15622ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work

Traceback (most recent call last):

 File "Y:\Program Files (x86)\ShadowBot\shadowbot-5.15.50\python\lib\runpy.py", line 193, in _run_module_as_main

   "__main__", mod_spec)

 File "Y:\Program Files (x86)\ShadowBot\shadowbot-5.15.50\python\lib\runpy.py", line 85, in _run_code

   exec(code, run_globals)

 File "Y:\Program Files (x86)\ShadowBot\shadowbot-5.15.50\python\lib\site-packages\xbot_interpreter.py", line 113, in <module>

   main()

 File "Y:\Program Files (x86)\ShadowBot\shadowbot-5.15.50\python\lib\site-packages\xbot_interpreter.py", line 57, in main

   try:

 File "C:\Users\ChrisLIN\AppData\Local\ShadowBot\users\596162816345178114\apps\7a01bade-40dd-404d-a285-cd44066d4243\xbot_robot\process5.py", line 10, in main

   page_source = xbot_visual.mobile.session.get_page_source(session=device_session, _block=("子流程1", 2, "获取手机UI树"))

 File "<string>", line 92, in wrapper

 File "<string>", line 87, in wrapper

 File "<string>", line 26, in get_page_source

 File "<string>", line 492, in get_page_source

 File "<string>", line 590, in _invoke

 File "<string>", line 88, in execute

xbot.errors.UIAError: Message:An unknown server-side error occurred while processing the command. Original error: Timed out after 15622ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work

Code:-1

收藏
全部回答1
最新
发布回答
回答