Open xiaofeifei-1 opened 1 month ago
calvin/calvin_env/egl_check$ python list_egl_options.py
----------Default-------------
Starting EGL query
Loaded EGL 1.5 after reload.
GL_VENDOR=NVIDIA Corporation
GL_RENDERER=NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
GL_VERSION=3.3.0 NVIDIA 535.183.01
GL_SHADING_LANGUAGE_VERSION=3.30 NVIDIA via Cg compiler
Completeing EGL query
b'EGL device choice: -1 of 4.\n'
number of EGL devices: 4
----------Option #1 (id=0)-------------
Starting EGL query
EGL device choice: 0 of 4 (from EGL_VISIBLE_DEVICE)
Loaded EGL 1.5 after reload.
GL_VENDOR=NVIDIA Corporation
CUDA_DEVICE=0
GL_RENDERER=NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
GL_VERSION=3.3.0 NVIDIA 535.183.01
GL_SHADING_LANGUAGE_VERSION=3.30 NVIDIA via Cg compiler
Completeing EGL query
----------Option #2 (id=1)-------------
Starting EGL query
EGL device choice: 1 of 4 (from EGL_VISIBLE_DEVICE)
libEGL warning: DRI2: failed to create dri screen
libEGL warning: DRI2: failed to create dri screen
eglInitialize() failed with error: 3008
----------Option #3 (id=2)-------------
Starting EGL query
EGL device choice: 2 of 4 (from EGL_VISIBLE_DEVICE)
Loaded EGL 1.5 after reload.
GL_VENDOR=Intel
GL_RENDERER=Mesa Intel(R) UHD Graphics 630 (CFL GT2)
GL_VERSION=4.6 (Core Profile) Mesa 21.2.6
GL_SHADING_LANGUAGE_VERSION=4.60
Completeing EGL query
----------Option #4 (id=3)-------------
Starting EGL query
EGL device choice: 3 of 4 (from EGL_VISIBLE_DEVICE)
Loaded EGL 1.5 after reload.
GL_VENDOR=Mesa/X.org
GL_RENDERER=llvmpipe (LLVM 12.0.0, 256 bits)
GL_VERSION=4.5 (Core Profile) Mesa 21.2.6
GL_SHADING_LANGUAGE_VERSION=4.50
Completeing EGL query
What can I do to solve "failed to EGL with glad"?
I am facing same error
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.
unset $DISPLAY
or unset DISPLAY
systerm: Ubuntu-20.04 GPU: rtx2080Ti
when runing training.py, there is an error: