Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section on troubleshooting Gazebo on Wayland #356

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 29, 2023

Related issue: gazebosim/gz-sim#1934

Running Gazebo on Wayland may result in a crash with an error msg about missing current gl context. Updated the troubleshooting guide with a section on Wayland with the solution mentioned in gazebosim/gz-sim#1934 (comment) about unsetting the WAYLAND_DISPLAY env var and making gz use XWayland

Signed-off-by: Ian Chen <ichen@openrobotics.org>
@mabelzhang
Copy link
Contributor

Oh this is interesting. @clalancette was testing Gazebo with Wayland, but in Docker. We ended up using xhost + local: before docker run. Maybe this is different, or maybe it's a less permissive way?

@iche033
Copy link
Contributor Author

iche033 commented Mar 29, 2023

hmm I think the xhost cmd allows docker container to access X on host. It probably means the docker args for passing the DISPLAY, xauth, etc didn't work? I've done the xhost cmd before but saw that it's not safe according to http://wiki.ros.org/docker/Tutorials/GUI

@mabelzhang
Copy link
Contributor

It probably means the docker args for passing the DISPLAY, xauth, etc didn't work? I've done the xhost cmd before but saw that it's not safe according to http://wiki.ros.org/docker/Tutorials/GUI

🤔 Yeah... it's not safe. Will look into it... Thanks!

@iche033 iche033 merged commit 5558ac5 into master Aug 15, 2023
@iche033 iche033 deleted the wayland_troubleshooting branch August 15, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress 🌱 garden Gazebo Garden 🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants