iGibson: ERROR: Unable to initialize EGL

Hi team, thank you for maintaining this project.

My iGibson installation went fine, but I am facing an issue that seems common among many iGibson beginners.

(igib) ➜  ~ python -m igibson.examples.environments.env_nonint_example

 _   _____  _  _
(_) / ____|(_)| |
 _ | |  __  _ | |__   ___   ___   _ __
| || | |_ || || '_ \ / __| / _ \ | '_ \
| || |__| || || |_) |\__ \| (_) || | | |
|_| \_____||_||_.__/ |___/ \___/ |_| |_|

********************************************************************************
Description:
    Creates an iGibson environment from a config file with a turtlebot in Rs (not interactive).
    It steps the environment 100 times with random actions sampled from the action space,
    using the Gym interface, resetting it 10 times.
    ********************************************************************************
INFO:igibson.render.mesh_renderer.get_available_devices:Command '['/home/mukul/iGibson/igibson/render/mesh_renderer/build/test_device', '0']' returned non-zero exit status 1.
INFO:igibson.render.mesh_renderer.get_available_devices:Device 0 is not available for rendering
WARNING:igibson.render.mesh_renderer.mesh_renderer_cpu:Device index is larger than number of devices, falling back to use 0
WARNING:igibson.render.mesh_renderer.mesh_renderer_cpu:If you have trouble using EGL, please visit our trouble shooting guideat http://svl.stanford.edu/igibson/docs/issues.html
libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
ERROR: Unable to initialize EGL

I went through all the closed issues related to this, but nothing helped. I also went through the troubleshooting guide and things seemed fine to me. Here are the outputs of some commands I ran to check the EGL installation:

  • (igib) ➜  ~ ldconfig -p | grep EGL
      libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libEGL_nvidia.so.0
      libEGL_mesa.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0
      libEGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libEGL.so.1
      libEGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libEGL.so
    
  • (igib) ➜  ~ nvidia-smi
    Thu Mar 31 15:28:55 2022       
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 510.47.03    Driver Version: 510.47.03    CUDA Version: 11.6     |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |                               |                      |               MIG M. |
    |===============================+======================+======================|
    |   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
    | 41%   39C    P8    20W / 215W |    331MiB /  8192MiB |      2%      Default |
    |                               |                      |                  N/A |
    +-------------------------------+----------------------+----------------------+
    
  • Reinstalling after USE_GLAD set to FALSE didn’t work either.

  • (base) ➜  ~ ./iGibson/igibson/render/mesh_renderer/build/query_devices
    2
    
    (base) ➜  ~ ./iGibson/igibson/render/mesh_renderer/build/test_device 0
    libEGL warning: DRI2: failed to create dri screen
    libEGL warning: DRI2: failed to create dri screen
    INFO: Unable to initialize EGL
    
    
    (base) ➜  ~ ./iGibson/igibson/render/mesh_renderer/build/test_device 1
    INFO: Loaded EGL 1.5 after reload.
    INFO: GL_VENDOR=Mesa/X.org
    INFO: GL_RENDERER=llvmpipe (LLVM 12.0.0, 256 bits)
    INFO: GL_VERSION=3.1 Mesa 21.2.6
    INFO: GL_SHADING_LANGUAGE_VERSION=1.40
    

Please let me know if I can share any more information that could be helpful in debugging this.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

I was able to resolve this issue by downgrading my NVIDIA GPU driver from 510 to 470 😄 Therefore, closing this.