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

Running habitat-sim inside GitHub Actions runner

Open tristanls opened this issue 1 year ago • 0 comments

Habitat-Sim version

v0.2.2

❓ Questions and Help

I am attempting to get habitat-sim running in a GitHub Actions runner using ubuntu-latest, which currently maps to ubuntu-24.04.

As expected, without libegl1-mesa-dev installed, running the Habitat simulator fails with the following:

ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directory

With libegl1-mesa-dev installed, running Habitat simulator fails with:

DISPLAY not detected. For headless systems, compile with --headless for EGL support

Installing aihabitat/linux-64::habitat-sim 0.2.2 py3.8_headless_bullet_linux_011191f65f37587f5a5452a93d840b5684593a00 and then running Habitat simulator fails with:

Platform::WindowlessEglApplication::tryCreateContext(): unable to find EGL device for CUDA device 0
WindowlessContext: Unable to create windowless context

Just in case, further installing nvidia-driver-550 and then running the Habitat simulator also fails with:

Platform::WindowlessEglApplication::tryCreateContext(): unable to find EGL device for CUDA device 0
WindowlessContext: Unable to create windowless context

Perhaps related, perhaps not... I am uncertain whether I need to restart the machine after installing libegl1-mesa-dev. I noticed the following after installing it:

...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.8.0-1014-azure
NEEDRESTART-KEXP: 6.8.0-1014-azure
NEEDRESTART-KSTA: 1

I am uncertain how to interpret these "needrestarts." Restarting the runner also does not seem practicable since it would cause me to lose the GitHub Action workflow session.

tristanls avatar Oct 08 '24 21:10 tristanls