habitat-sim icon indicating copy to clipboard operation
habitat-sim copied to clipboard

tryCreateContext(): unable to find CUDA device 0 among 3 EGL devices in total

Open HusterYoung opened this issue 1 year ago • 1 comments

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

HusterYoung avatar Aug 10 '23 12:08 HusterYoung

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.

aclegg3 avatar Sep 06 '23 23:09 aclegg3