Open AlexWanghaoming opened 1 month ago
When I update ai2thor to version 5.0.0 I met this error:
/root/miniconda3/lib/python3.12/site-packages/ai2thor/platform.py:154: UserWarning: could not connect to X Display: 0, Can't connect to display ":0": [Errno 111] Connection refused
warnings.warn(
Traceback (most recent call last):
File "/root/LLM-Planner/scripts/check_thor.py", line 4, in
# Host OS: Mac Sonoma 14.3 docker contrainer: Ubuntu 22.04.4 LTS ai2thor == 2.1.0 XQuartz == 2.7.8 # In my docker container:
docker run --name haha --rm -it -e DISPLAY=docker.for.mac.host.internal:0 -v ~/.ai2thor:/root/.ai2thor -v /tmp/.X11-unix:/tmp/.X11-unix mouther/alfworld_project /bin/zsh
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Found path: /root/.ai2thor/releases/thor-201909061227-Linux64/thor-201909061227-Linux64 Mono path[0] = '/root/.ai2thor/releases/thor-201909061227-Linux64/thor-201909061227-Linux64_Data/Managed' Mono config path = '/root/.ai2thor/releases/thor-201909061227-Linux64/thor-201909061227-Linux64_Data/Mono/etc' Unable to preload the following plugins: ScreenSelector.so Display 0 'default': 3432x1043 (primary device). Logging to /root/.config/unity3d/Allen Institute for Artificial Intelligence/AI2-Thor/Player.log error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. Stacktrace:
at UnityEngine.UnityLogWriter.Init () <0xffffffff> at UnityEngine.UnityLogWriter.Init () <0x00016> at UnityEngine.ClassLibraryInitializer.Init () <0x00010> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x00056>
Native stacktrace:
Debug info from gdb:
Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.
Exception in thread Thread-2 (_start_unity_thread): Traceback (most recent call last): File "/root/miniconda3/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "/root/miniconda3/lib/python3.12/site-packages/ai2thor/controller.py", line 697, in _start_unity_thread raise Exception("command: %s exited with %s" % (command, returncode)) Exception: command: ['/root/.ai2thor/releases/thor-201909061227-Linux64/thor-201909061227-Linux64', '-screen-fullscreen', '0', '-screen-quality', '7', '-screen-width', '1000', '-screen-height', '700'] exited with -6