Skip to content

EGL: Failed to initialize EGL: EGL is not or could not be initialized #2583

@shiven2001

Description

@shiven2001

Habitat-Sim version

v3.0.0

I am trying to install Habitat and I want to test it and I get this error. How to fix it? The nvidia drivers are installed and I am using GTX 4090. The openGl is working as:

  (habitat) shiven@LBJ:~/habitat-sim$ glxinfo | grep "OpenGL version"
  OpenGL version string: 4.6.0 NVIDIA 575.64.03
  (habitat) shiven@LBJ:~/habitat-sim$ nvidia-smi
  Tue Aug 19 14:25:03 2025       
  +-----------------------------------------------------------------------------------------+
  | NVIDIA-SMI 575.64.03              Driver Version: 575.64.03      CUDA Version: 12.9     |
  |-----------------------------------------+------------------------+----------------------+
  | 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 RTX 4090        Off |   00000000:01:00.0  On |                  Off |
  |  0%   47C    P8             23W /  500W |    1588MiB /  24564MiB |     48%      Default |
  |                                         |                        |                  N/A |
  +-----------------------------------------+------------------------+----------------------+
  |   1  NVIDIA GeForce RTX 4090        Off |   00000000:02:00.0 Off |                  Off |
  |  0%   40C    P8             14W /  500W |      17MiB /  24564MiB |      0%      Default |
  |                                         |                        |                  N/A |
  +-----------------------------------------+------------------------+----------------------+
                                                                                           
  +-----------------------------------------------------------------------------------------+
  | Processes:                                                                              |
  |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
  |        ID   ID                                                               Usage      |
  |=========================================================================================|
  |    0   N/A  N/A            1972      G   /usr/lib/xorg/Xorg                      810MiB |
  |    0   N/A  N/A            2225      G   /usr/bin/gnome-shell                     82MiB |
  |    0   N/A  N/A            2685      G   ...bin/snapd-desktop-integration         12MiB |
  |    0   N/A  N/A            2999      G   ...ess --variations-seed-version         30MiB |
  |    0   N/A  N/A            7866      G   .../6565/usr/lib/firefox/firefox        438MiB |
  |    0   N/A  N/A          831958      G   /proc/self/exe                           47MiB |
  |    1   N/A  N/A            1972      G   /usr/lib/xorg/Xorg                        4MiB |
  +-----------------------------------------------------------------------------------------+

but I get this error:

  (habitat) shiven@LBJ:~/habitat-sim$ python examples/viewer.py --dataset data/replica_cad/replicaCAD.scene_dataset_config.json --scene apt_1
  libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
  
  libEGL warning: DRI2: failed to authenticate
  libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
  
  EGL: Failed to initialize EGL: EGL is not or could not be initialized
  Platform::GlfwApplication::tryCreate(): cannot create a window with core OpenGL context, falling back to compatibility context
  libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
  
  libEGL warning: DRI2: failed to authenticate
  libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
  
  EGL: Failed to initialize EGL: EGL is not or could not be initialized
  Platform::GlfwApplication::tryCreate(): cannot create a window with OpenGL context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions