facebookresearch / Replica-Dataset

The Replica Dataset v1 as published in https://arxiv.org/abs/1906.05797 .
Other
972 stars 97 forks source link

Can't initialize EGL GLEW GLX display, may crash! #84

Open Jiazxzx opened 2 years ago

Jiazxzx commented 2 years ago

Hi,

I am trying to render Replica in a remote headless server. I run the command line:

./build/ReplicaSDK/ReplicaRenderer DATASETS/Replica/room_0/mesh.ply DATASETS/Replica/room_0/textures DATASETS/Replica/room_0/glass.sur

I kept on running into the same error all the time.

Can't initialize EGL GLEW GLX display, may crash! Found 19 device(s). Device 0:

...

Insufficient OpenGL version: 3.1 Mesa 21.2.6 minimum required is 4.3 Mesa users: try forcing compatibility with MESA_GL_VERSION_OVERRIDE=4.3 MESA_GLSL_VERSION_OVERRIDE=430

I check my driver and OpenGL version by running: glxgears -info | grep

and I get:

GL_VERSION = 4.6.0 NVIDIA 510.60.02

Any idea why this is and how can I fix it? Thanks for your hard work!

cs-vision commented 1 year ago

I ran into the same error. Did you fix it? It'll be great if you could share a solution. Thanks!

DCtcl commented 1 year ago

Hi,

I am trying to render Replica in a remote headless server. I run the command line:

./build/ReplicaSDK/ReplicaRenderer DATASETS/Replica/room_0/mesh.ply DATASETS/Replica/room_0/textures DATASETS/Replica/room_0/glass.sur

I kept on running into the same error all the time.

Can't initialize EGL GLEW GLX display, may crash! Found 19 device(s). Device 0: ... Insufficient OpenGL version: 3.1 Mesa 21.2.6 minimum required is 4.3 Mesa users: try forcing compatibility with MESA_GL_VERSION_OVERRIDE=4.3 MESA_GLSL_VERSION_OVERRIDE=430

I check my driver and OpenGL version by running: glxgears -info | grep

and I get:

GL_VERSION = 4.6.0 NVIDIA 510.60.02

Any idea why this is and how can I fix it? Thanks for your hard work!

I met the probelm as same as you. Did you fix it ?

pxy522 commented 10 months ago

so do i ,Did you fix it ?Thanks!

leblond14u commented 9 months ago

In EGL.cpp you can manually select your GPU by replacing the i variable in EGLDeviceEXT device = devices[i]; by your device number. Can you try this and see if it works ?

turandai commented 1 month ago

In EGL.cpp you can manually select your GPU by replacing the i variable in EGLDeviceEXT device = devices[i]; by your device number. Can you try this and see if it works ?

Thank you, this works for me!