[SOLVED] Gazebo 11 under WSL (Windows Subsystem for Linux)
Hi there, I've tried to install Gazebo 11 under WSL in Windows 10 build 1903.
Here it is the current status of my installation:
- the official PPA was added inside
/etc/apt/sources.list.d/
- Gazebo 11 package (
gazebo11
) and all its dependencies were installed from APT - the environment variable
DISPLAY
was exported from bashrc, with valuelocalhost:0.0
(also:0
was tried) - XMing graphical server (version 6.9.0.31) was installed on Windows
- the
mesa-utils
package was installed from APT
When I run Gazebo from the command line using gazebo
, the following error appears:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 20
Current serial number in output stream: 20
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 143 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 20
Current serial number in output stream: 20
(in fact it appears twice).
Afterwards, the output stops, but the command does not return; also, no window appears.
Please, can you help me? At least how can I investigate this issue? I have no clue.
Asked by Simone on 2020-04-03 15:32:07 UTC
Answers
I've had the same problem and noticed that I could run gazebo when removed the following environment variable:
LIBGL_ALWAYS_INDIRECT
just run:
unset LIBGL_ALWAYS_INDIRECT
Asked by vespucio on 2020-09-25 10:33:58 UTC
Comments
Thank you for replying! With the new WSL release, Gazebo seems to run without problems.
Asked by Simone on 2020-12-18 16:32:37 UTC
Recently, a new version of WSL has been released, i.e. WLS2, and Gazebo seems to work fine.
I have followed this video on YouTube that shows in detail how to run Gazebo using an X Server.
Please, make sure that in the Windows Defender System control panel, the VcXsrv windows xserver app is enabled by putting a tick on both public and private boxes. Then, by following the instructions of the video step-by-step, Gazebo should work fine.
Asked by Simone on 2020-12-18 16:41:57 UTC
Comments