Gazebo | Ignition | Community
Ask Your Question
0

[SOLVED] Gazebo 11 under WSL (Windows Subsystem for Linux)

asked 2020-04-03 15:32:07 -0500

Simone gravatar image

updated 2021-01-11 10:26:57 -0500

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 value localhost: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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2020-12-18 15:41:57 -0500

Simone gravatar image

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.

edit flag offensive delete link more
0

answered 2020-09-25 10:33:58 -0500

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
edit flag offensive delete link more

Comments

Thank you for replying! With the new WSL release, Gazebo seems to run without problems.

Simone gravatar imageSimone ( 2020-12-18 15:32:37 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-04-03 15:32:07 -0500

Seen: 5,753 times

Last updated: Jan 11 '21