habitat-sim
habitat-sim copied to clipboard
tryCreateContext(): unable to find CUDA device 0 among 3 EGL devices in total
Hi there,
I'm trying to set up habitat-sim on a Ubuntu 22.04 machine. At first I was able to run the demo, but cv2.imshow reported an error during the visualization process, so I reinstalled opencv manually, added some soft links to the libxx.so file during the process, and then reported this error when I ran the demo again. Very annoyed, wondering if anyone knows what I should do?
The error information is: Platform::WindowlessEglApplication::tryCreateContext(): unable to find CUDA device 0 among 3 EGL devices in total WindowlessContext: Unable to create windowless context
Hey @HusterYoung
Not sure why this would happen. Looks like device 0 is not a CUDA device maybe? If you can list the devices you could check. Does nvidia-smi
report index 0?
Longshot, but sometimes the import order can cause the wrong driver versions to link. E.g. you import cv2 pulling in graphics drivers or dependencies and then import habitat_sim and/or magnum which depends on different versions causing errors.