graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
13.61k stars 1.75k forks source link

X11: The DISPLAY environment variable is missing, when using SIBR_viewers #619

Open nnanhuang opened 8 months ago

nnanhuang commented 8 months ago

[SIBR] -- INFOS --: Initialization of GLFW [SIBR] ## ERROR ##: FILE /data1/hn/gaussian/gaussian-splatting/SIBR_viewers/src/core/graphics/Window.cpp LINE 30, FUNC glfwErrorCallback X11: The DISPLAY environment variable is missing terminate called after throwing an instance of 'std::runtime_error' what(): See log for message errors Aborted (core dumped) When I run SIBR_viewers, I got this problem. How can I fix this ?

Snosixtyboo commented 7 months ago

Would require more context. Apparently you don't have a running X11 server. Are you doing some special rendering like a headless server or running in WSL or some dockerized container?

whu-lyh commented 2 months ago

try to add --gpus 'all,"capabilities=compute,utility,graphics"' --privileged=true -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY when you generate a container by docker images