Closed DarthBubi closed 1 year ago
related comment / issue: https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1172201149
Any possible updates on this one?
I think the workaround is to do software rendering by setting the LIBGL_ALWAYS_SOFTWARE=1
env var as suggested in https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1279725124
This also occurs in WSL2 running Ubuntu 22.02 with Gazebo Garden. The error says:
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
LIBGL_ALWAYS_SOFTWARE=1
"works" but is unusably slow. At least for PX4 development you can also do HEADLESS=1
, but that gives you the simulation without the UI.
This will make PX4 development using Garden on Windows impossible.
@iche033 do you think we can either close this one or https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1279725124, to keep just one issue to track Gazebo Sim support on WSL with GPU-accelerated graphics?
@rosiakpiotr @hamishwillee I guess you can check https://github.com/gazebosim/gz-sim/issues/920 for the latest updates on this issue. On WSL2 with GPU support, if anyone is interested in contributing the issue to solve a possible path forward is to use GL_NV_copy_image
instead of GL_ARB_copy_image
, but are some shader compilation problems described in https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1474487588, that unfortunatly I did not had the time to debug.
On a related note, if you are interested on Gazebo Sim support on Windows native (i.e. without WSL), you can also check https://github.com/gazebosim/gz-sim/issues/168 .
Thanks @traversaro ! FWIW Not all that interested in Gazebo Sim support on windows native right now, because the rest of the PX4 Windows toolchain is on WSL2. @bperseghetti suggested Vulkan might work, but there are no obvious setup instructions for WSL and the issues that show up on google search appear to be still open with lots of problem edge cases.
@iche033 do you think we can either close this one or https://github.com/gazebosim/gz-sim/issues/920#issuecomment-1279725124, to keep just one issue to track Gazebo Sim support on WSL with GPU-accelerated graphics?
sounds good. Closing this issue to keep all WSL + GPU support conversations in once place: https://github.com/gazebosim/gz-sim/issues/920.
Gazebo crashes when initialising the rendering while using OGRE2 as a rendering output in WSL2. Changing to OGRE1 works, since Gazebo Classic also uses this engine and works flawlessly. I checked against outdated binary builds by compiling the current code, but the behaviour is the same. It might be a problem in D3D12 kernel driver or in the way OGRE2 uses OpenGL, but since I'm no expert, I didn't dig too deep. The same behaviour might also apply to a WSL2 environment on Windows 10, but I have to test that.
Environment
Description
Steps to reproduce
ign gz --render-engine ogre2 shapes.sdf -v4
in a WSL2(g) environment with a dedicated GPU presentOutput
auto_default.log