google-research / google-research/android_world
encountered an error when trying to run docker image
- Dominant language
- Python
- Stars
- 906
- Forks
- 186
- Avg merge
- 1h 21m
- Merged PRs (30d)
- 1
Description
Just encountered an error when trying to run docker image(which is downloaded from https://hub.docker.com/r/huggingface/android_world), could you help me to figure out how to fix it. thanks!
The error log is shown below:
```
restarting adbd as root
INFO: Started server process [1034]
INFO: Waiting for application startup.
ERROR:absl:Failed to confirm booted status of emulator.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 245, in _launch_impl
self._confirm_booted()
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 171, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 383, in _confirm_booted
raise EmulatorCrashError(
android_env.components.simulators.emulator.emulator_simulator.EmulatorCrashError: The emulator failed to boot after 300 seconds
ERROR:absl:RpcError caught. Reconnecting to emulator...
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 171, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 453, in _get_screenshot_impl
image_proto = self._emulator_stub.getScreenshot(self._image_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1181, in __call__
return _end_unary_response_blocking(state, call, False, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1006, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The guest has not posted new frame yet"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-06-24T09:09:55.271956244+00:00", grpc_status:9, grpc_message:"The guest has not posted new frame yet"}"
>
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 171, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 453, in _get_screenshot_impl
image_proto = self._emulator_stub.getScreenshot(self._image_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1181, in __call__
return _end_unary_response_blocking(state, call, False, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1006, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The guest has not posted new frame yet"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-06-24T09:09:55.271956244+00:00", grpc_status:9, grpc_message:"The guest has not posted new frame yet"}"
>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 692, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 133, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 133, in merged_lifespan
async with original_context(app) as maybe_original_state:
File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "/server/android_server.py", line 29, in lifespan
app.state.app_android_env = load_and_setup_env(
^^^^^^^^^^^^^^^^^^^
File "/android_world/env/env_launcher.py", line 120, in load_and_setup_env
env = _get_env(console_port, adb_path, grpc_port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/env_launcher.py", line 35, in _get_env
controller = android_world_controller.get_controller(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/android_world/env/android_world_controller.py", line 322, in get_controller
android_env_instance = loader.load(config)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/loader.py", line 63, in load
coordinator = coordinator_lib.Coordinator(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/coordinator.py", line 81, in __init__
self._launch_simulator()
File "/usr/local/lib/python3.11/site-packages/android_env/components/coordinator.py", line 146, in _launch_simulator
self._device_settings.update(self._config.device_settings)
File "/usr/local/lib/python3.11/site-packages/android_env/components/device_settings.py", line 62, in update
self._update_screen_size()
File "/usr/local/lib/python3.11/site-packages/android_env/components/device_settings.py", line 93, in _update_screen_size
screenshot = self._simulator.get_screenshot()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/base_simulator.py", line 158, in get_screenshot
return self._get_screenshot_impl() # Sync mode.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 177, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/android_env/components/simulators/emulator/emulator_simulator.py", line 453, in _get_screenshot_impl
image_proto = self._emulator_stub.getScreenshot(self._image_format)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1181, in __call__
return _end_unary_response_blocking(state, call, False, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/grpc/_channel.py", line 1006, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The guest has not posted new frame yet"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2025-06-24T09:09:55.274618197+00:00", grpc_status:9, grpc_message:"The guest has not posted new frame yet"}"
>
ERROR: Application startup failed. Exiting.
```
Contributor guide
Assessment
This issue has not been assessed yet.