Open shuttworth opened 3 months ago
Type "xhost +" in the terminal of main environment, and then try viewer again.
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?
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?
Try to execute export MESA_GL_VERSION_OVERRIDE=4.5
within the container.
Try to execute
export MESA_GL_VERSION_OVERRIDE=4.5
within the container.
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
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?