Lab-of-AI-and-Robotics / GS_ICP_SLAM

[ECCV 2024] RGBD GS-ICP SLAM
MIT License
231 stars 22 forks source link

Visualization Error: X11 Failed in Docker #10

Open shuttworth opened 3 months ago

shuttworth commented 3 months ago

when run ./install/bin/SIBR_remoteGaussian_app [SIBR] -- INFOS --: Initialization of GLFW [SIBR] ## ERROR ##: FILE /home/SIBR_viewers/src/core/graphics/Window.cpp LINE 30, FUNC glfwErrorCallback X11: Failed to open display localhost:12.0 terminate called after throwing an instance of 'std::runtime_error' what(): See log for message errors Aborted (core dumped)

How can i achieve visualization in docker?

Riboha commented 3 months ago

Type "xhost +" in the terminal of main environment, and then try viewer again.

shuttworth commented 3 months ago

hello, "xhost +" in the terminal of main environment doesn't work, still "X11: Failed to open display localhost:12.0". Many methods have been tried, but none can work. Does any one successfully achieve visualization in the docker?

shuttworth commented 3 months ago

additional, in the docker, when run python -W ignore gs_icp_slam.py --dataset_path dataset/Replica/office1 --verbose 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2000/2000 [00:53<00:00, 37.32it/s] Waiting for mapping process to be prepared 0%| | 0/2000 [00:00<?, ?it/s]qt.qpa.xcb: could not connect to display localhost:11.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.9/dist-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

How can i achieve visualization in the docker?

Eku127 commented 2 months ago

Try to execute export MESA_GL_VERSION_OVERRIDE=4.5 within the container.

shuttworth commented 2 months ago

Try to execute export MESA_GL_VERSION_OVERRIDE=4.5 within the container.

image Unfortunately, this didn't work; there were still issues with --verbose visualization within docker, even after executing export MESA_GL_VERSION_OVERRIDE=4.5 ,and executing docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY xxxxxx in the beginning. System is Ubuntu22.04, cuda 11.8