Trouble Shooting

Unable to initialize EGL

It is usually caused by incorrect installation of nvidia-driver, insufficient OpenGL version, or no EGL is installed on the machine.

It is a good idea to run ldconfig -p | grep EGL and you should be able to see libEGL_nvidia installed. (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/ (libc6) => /usr/lib/i386-linux-gnu/ (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/ (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/ (libc6) => /usr/lib/i386-linux-gnu/ (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/ (libc6) => /usr/lib/i386-linux-gnu/

Make sure EGL is not linked to mesa, because in order for gibson to work, linking to Nvidia’s EGL is required. For example, this will cause problems: /usr/lib/x86_64-linux-gnu/ -> mesa-egl/

If the original installation doesn’t work, try the following:

  1. Is nvidia driver properly installed? You can check by running nvidia-smi

  2. Are openGL libraries visible? You can do so by export LD_LIBRARY_PATH=/usr/lib/nvidia-<vvv>:$LD_LIBRARY_PATH

  3. There are two ways of setting up openGL library, if the current installation doesn’t work, you can try to install with USE_GLAD set to FALSE in here

  4. If you want to render in headless mode, make sure $DISPLAY environment variable is unset, otherwise you might have error Failed to EGL with glad, because EGL is sensitive to $DISPLAY environment variable.

Also, the EGL setup part is borrowed from Erwin Coumans egl_example. It would be informative to see if that repository can run on your machine.

Other issues

For other issues, please submit an issue in our github repository.