gaussian-splatting icon indicating copy to clipboard operation
gaussian-splatting copied to clipboard

Running remote viewer on a remote headless server?

Open cduguet opened this issue 1 year ago • 3 comments

  1. Trying to naively running it gives me the same error as https://github.com/graphdeco-inria/gaussian-splatting/issues/619:
[SIBR] --  INFOS  --:	Initialization of GLFW
[SIBR] ##  ERROR  ##:	FILE ../src/core/graphics/Window.cpp
			LINE 30, FUNC glfwErrorCallback
			X11: The DISPLAY environment variable is missing
  1. Trying to use a virtual display:
sudo apt-get install xvfb
sudo apt-get install libgl1-mesa-dev
sudo apt-get install mesa-utils
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY=:1
Xvfb :1 -screen 0 1024x768x16 &

and creating a xorg.conf file, gets me:

[SIBR] --  INFOS  --:	Initialization of GLFW
[SIBR] ##  ERROR  ##:	FILE ../src/core/graphics/Window.cpp
			LINE 30, FUNC glfwErrorCallback
			GLX: Failed to create context: GLXBadFBConfig
  1. After undoing all done in 2. and trying the options:
./install/bin/SIBR_remoteGaussian_app  --offscreen --nogui

I still get

[SIBR] --  INFOS  --:	Initialization of GLFW
[SIBR] ##  ERROR  ##:	FILE ../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'

Does somebody know how to run the remote viewer on a headless server? I'm on Linux 20.04, CUDA 11.6 (checked out the fossa_compatibility branch).

Thank you!

cduguet avatar Feb 20 '24 07:02 cduguet

I'm facing the same issues. Would highly appreciate help on running the SIBR viewer remotely.

cs-mshah avatar Mar 30 '24 06:03 cs-mshah

Any progress here? Does it help to set up the Chrome remote desktop?

fantasy-fish avatar Aug 26 '24 04:08 fantasy-fish

@fantasy-fish So far I've not found any solution, so I've abandoned my efforts on this direction.

cduguet avatar Aug 27 '24 17:08 cduguet