Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization Error: X11 Failed in Docker #10

Open
shuttworth opened this issue Apr 7, 2024 · 6 comments
Open

Visualization Error: X11 Failed in Docker #10

shuttworth opened this issue Apr 7, 2024 · 6 comments

Comments

@shuttworth
Copy link

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
Copy link
Member

Riboha commented Apr 8, 2024

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

@shuttworth
Copy link
Author

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
Copy link
Author

shuttworth commented Apr 8, 2024

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
Copy link

Eku127 commented Apr 9, 2024

Try to execute export MESA_GL_VERSION_OVERRIDE=4.5 within the container.

@shuttworth
Copy link
Author

shuttworth commented Apr 9, 2024

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

@674123
Copy link

674123 commented Dec 17, 2024

运行时 [SIBR] -- INFOS --: 初始化 GLFW [SIBR] ## 错误 ##: 文件 /home/SIBR_viewers/src/core/graphics/Window.cpp 第 30 行,FUNC glfwErrorCallback X11: 在抛出 'std::runtime_error' 的实例后,无法打开显示 localhost:12.0 终止调用 what() 的实例:请参阅消息错误日志 中止(核心转储)./install/bin/SIBR_remoteGaussian_app

如何在 docker 中实现可视化?

I have the same problem. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants