Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gazebo does not launch ([RenderEngine.cc:749] Can't open display)

I try to use gazebo or gazebo with ROS noetic in WSL2 (Ubuntu 20.04.2 LTS, Windows 10) using VcWsrv. However, during launching Gazebo gazebo --verbose I got errors:

Gazebo multi-robot simulator, version 11.6.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.6.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: 127.0.0.1
[Err] [RenderEngine.cc:749] Can't open display: 192.168.0.1
8.8.8.8
8.8.4.4:0
[Wrn] [RenderEngine.cc:89] Unable to create X window. Rendering will be disabled
[Wrn] [RenderEngine.cc:292] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.
[Msg] Loading world file [/usr/share/gazebo-11/worlds/empty.world]
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 127.0.0.1
[Err] [RenderEngine.cc:749] Can't open display: 192.168.0.1
8.8.8.8
8.8.4.4:0
[Wrn] [RenderEngine.cc:89] Unable to create X window. Rendering will be disabled
[Wrn] [RenderEngine.cc:292] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.
[Wrn] [GuiIface.cc:120] could not connect to display 192.168.0.1
8.8.8.8
8.8.4.4:0
[Msg] Could not load the Qt platform plugin "xcb" in "" even though it was found.
[Err] [GuiIface.cc:124] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

VcWsrv was adjusted in accordance with the following video: https://www.youtube.com/watch?v=DW7l9... I found mention (https://stackoverflow.com/questions/29405689/qt-5-4-1-this-application-failed-to-start-because-it-could-not-find-or-load-th) about path changing to Qt, but I don't know how to find path to Qt and where I should change it.

If I use command roslaunch gazebo_ros empty_world.launch, I get th following error:

... logging to /home/grigoriy/.ros/log/894f1d32-d5d3-11eb-ba89-002b67ca0075/roslaunch-LAPTOP-TKEJQDSK-174.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://LAPTOP-TKEJQDSK:54542/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /rosdistro: noetic
 * /rosversion: 1.15.11
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)

auto-starting new master
process[master]: started with pid [182]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 894f1d32-d5d3-11eb-ba89-002b67ca0075
process[rosout-1]: started with pid [194]
started core service [/rosout]
process[gazebo-2]: started with pid [197]
process[gazebo_gui-3]: started with pid [208]
[ INFO] [1624639010.785908000]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1624639010.788617300]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1624639010.821470400]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[ INFO] [1624639010.824336900]: Finished loading Gazebo ROS API Plugin.
Aborted (core dumped)
[gazebo_gui-3] process has died [pid 208, exit code 134, cmd /opt/ros/noetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/grigoriy/.ros/log/894f1d32-d5d3-11eb-ba89-002b67ca0075/gazebo_gui-3.log].
log file: /home/grigoriy/.ros/log/894f1d32-d5d3-11eb-ba89-002b67ca0075/gazebo_gui-3*.log
[ INFO] [1624639011.033313600]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1624639011.095428400, 0.039000000]: Physics dynamic reconfigure ready.
Exception sending a multicast message:Invalid argument

I spent several days to search solution, but it didn't help me. Could anyone help me with it?