Gazebo won't show GUI on WSL 2 - Illegal Instruction

asked 2023-05-21 11:52:19 -0500

On WIndows 11, I have WSL 2 with Ubuntu 20.04 installed. VcXsrv is running, Ros noetic.

First, I set DISPLAY first so I don't get a Can't open display: :0 error:

$ export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0

Then I run gazebo and I get no errors, but I don't see the GUI:

$ gazebo --verbose

Gazebo multi-robot simulator, version 11.11.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master.

Gazebo multi-robot simulator, version 11.11.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

[Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 172.23.121.132

$ gzserver --verbose

[Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 172.23.121.132 Illegal instruction

I am guessing the Illegal Instruction error is the problem, but I don't know how to fix it or where to get more feedback.

edit retag flag offensive close merge delete