google-research / google-research/android_world

Docker api error: reset to home but the service failed to get a11y tree

Open
#314 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
906
Forks
186
Avg merge
1h 21m
Merged PRs (30d)
1

Description

hi, I just got the below error in the docker cointainer when LLM finished a task and reset to home. It showed that the service failed to get a11y tree. Could you help me to figure it out? Big thanks~

```
INFO: 172.17.0.1:59470 - "POST /reset?go_home=True HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/android_world/env/android_world_controller.py", line 218, in get_a11y_forest
return self._get_a11y_forest()
^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 211, in _get_a11y_forest
return get_a11y_tree(self._env)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 102, in get_a11y_tree
raise RuntimeError('Could not get a11y tree.')
RuntimeError: Could not get a11y tree.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 714, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 734, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/server/android_server.py", line 92, in reset
app_android_env.reset(go_home=go_home)
File "/android_world/env/interface.py", line 238, in reset
return _process_timestep(self.controller.reset())
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/wrappers/base_wrapper.py", line 38, in reset
timestep = self._process_timestep(self._env.reset())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 244, in _process_timestep
forest = self.get_a11y_forest()
^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 225, in get_a11y_forest
return self._get_a11y_forest()
^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 211, in _get_a11y_forest
return get_a11y_tree(self._env)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 102, in get_a11y_tree
raise RuntimeError('Could not get a11y tree.')
RuntimeError: Could not get a11y tree.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.