Skip to content

Commit bfdc977

Browse files
authored
Add tip for using Gazebo with Wayland (#468)
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent b7a35fa commit bfdc977

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

harmonic/troubleshooting.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,27 @@ If that loads, you can continue to use Gazebo with Ogre 1, just use the
169169
170170
### Wayland issues
171171
172-
For users on Wayland, you will need to make sure Gazebo is launched with
173-
XWayland.
174-
175-
If you see an error message like the one below:
172+
There's an issue with the interaction of Ogre and Qt in Gazebo that prevents wayland from
173+
working properly. You might see an error message like the one below:
176174
177175
```
178176
Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): currentGLContext was specified with no current GL context in GLXWindow::create at ./RenderSystems/GL3Plus/src/windowing/GLX/OgreGLXWindow.cpp (line 165)
179177
```
180178
181-
try unsetting the `WAYLAND_DISPLAY` environment variable, e.g.
179+
A workaround is to set `QT_QPA_PLATFORM=xcb`. e.g.:
180+
181+
```
182+
QT_QPA_PLATFORM=xcb gz sim -v 4 shapes.sdf
183+
```
184+
185+
Another workaround to try is to make sure Gazebo is launched with
186+
XWayland by unsetting the `WAYLAND_DISPLAY` environment variable, e.g.
182187
183188
```sh
184189
env -u WAYLAND_DISPLAY gz sim -v 4 shapes.sdf
185190
```
186191
192+
187193
## Windows
188194
189195
### VisualStudioVersion is not set, please run within a Visual Studio Command Prompt.

0 commit comments

Comments
 (0)