habitat-sim: Platform::WindowlessEglApplication::tryCreateContext(): cannot get default EGL display: EGL_BAD_PARAMETER
I tried to render data from Replica dataset with python examples/example.py --scene
I have installed the Habitat with
conda create -n habitat python=3.6 cmake=3.14.0
conda activate habitat
Then I got the error:
Platform::WindowlessEglApplication::tryCreateContext(): cannot get default EGL display: EGL_BAD_PARAMETER
WindowlessContext: Unable to create windowless context
Could you please help me to solve this issue?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Just in case someone needs this: here is a solution for those who don’t want to use docker and happen to use a server that does not install
EGL*
along with NVIDIA driver by default. (cross-posted to https://github.com/facebookresearch/habitat-sim/issues/851 as well!)nvidia-smi
to check the version of your drivernvidia driver <version-id>
on google. The file should beNVIDIA-Linux-x86_64-<version-id>.run
NVIDIA-Linux-x86_64-<version-id>
Note that
libEGL.so.1
,libOpenGL.so.0
andlibGLdispatch.so.0
should be all pointed to the ones in/path/to/NVIDIA-Linux-x86_64-<version-id>
.habitat-sim
installation.@jeasinema Hi, thanks for the information! I’m trying to manually install the missing EGL libraries as you mentioned above. I have driver version 515.105.01 installed (without opengl support). I see in the NVIDIA-Linux-x86_64-<driver_version> folder that there is libEGL_nvidia.so.<driver_version>, do I need to symlink this too?
Update: I additionally added the symlink on libEGL_nvidia.so.<driver_version> to libEGL_nvidia.so.0. I can confirm that the method above by @jeasinema works well to resolve the issue (without asking admin to update opengl support). Thanks a lot!