facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.58k stars 419 forks source link

[None Docker and headless install in conda enviroment] unable to find EGL device for CUDA device 0 #2443

Open TLvCo opened 2 months ago

TLvCo commented 2 months ago

Habitat-Sim version

v0.1.7

conda install -c aihabitat -c conda-forge habitat-sim=0.1.7 headless git clone --branch v0.1.7 git@github.com:facebookresearch/habitat-lab.git cd habitat-lab python setup.py develop --all # install habitat and habitat_baselines

I had installed openGL, and successed to use EGL to show UI in another conda enviroment(python3.8 torch2.1.0+cu121) but errors occupied when I used habitat-smi in a new conda eviroment(python3.6 torch1.9.1+cu111)

GPU: nvidia 4090

❓ Questions and Help

I0808 14:58:27.797049 2805534 Simulator.cpp:156] Loading navmesh from data/andong/Matterport/v1/mp3d/17DRP5sb8fy/17DRP5sb8fy.navmesh
I0808 14:58:27.797112 2805534 Simulator.cpp:158] Loaded.
I0808 14:58:27.797122 2805534 SceneGraph.h:93] Created DrawableGroup:
eglQueryDevicesEXT(): EGL_BAD_ALLOC error: In eglQueryDevicesEXT: Failed to allocate device list.
eglQueryDevicesEXT(): EGL_BAD_ALLOC error: In eglQueryDevicesEXT: Failed to allocate device list.
Platform::WindowlessEglApplication: eglQueryDeviceStringEXT(EGLDevice=0): EGL_EXT_device_drm EGL_EXT_device_drm_render_node
eglQueryDeviceAttribEXT(): eglQueryDeviceAttribEXT
Platform::WindowlessEglApplication: eglQueryDeviceStringEXT(EGLDevice=1): EGL_EXT_device_drm EGL_EXT_device_drm_render_node
eglQueryDeviceAttribEXT(): eglQueryDeviceAttribEXT
Platform::WindowlessEglApplication: eglQueryDeviceStringEXT(EGLDevice=2): EGL_EXT_device_drm EGL_EXT_device_drm_render_node
eglQueryDeviceAttribEXT(): eglQueryDeviceAttribEXT
Platform::WindowlessEglApplication: eglQueryDeviceStringEXT(EGLDevice=3): EGL_MESA_device_software EGL_EXT_device_drm_render_node
eglQueryDeviceAttribEXT(): eglQueryDeviceAttribEXT
Platform::WindowlessEglApplication::tryCreateContext(): unable to find EGL device for CUDA device 0
WindowlessContext: Unable to create windowless context
aclegg3 commented 1 month ago

@0mdc thoughts?

nicklhy commented 1 month ago

Same problem here.