gazebosim / docs

High-level Gazebo documentation that gets published to https://gazebosim.org/docs/
https://gazebosim.org/docs
44 stars 81 forks source link

Add section on troubleshooting Gazebo on Wayland #356

Closed iche033 closed 10 months ago

iche033 commented 1 year ago

Related issue: https://github.com/gazebosim/gz-sim/issues/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 https://github.com/gazebosim/gz-sim/issues/1934#issuecomment-1487694481 about unsetting the WAYLAND_DISPLAY env var and making gz use XWayland

mabelzhang commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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!