gramaziokohler / ros_docker

Docker images for ROS master, bridge and nodes
MIT License
76 stars 18 forks source link

black viewport in RViz on noVNC #7

Open aatb-ch opened 2 years ago

aatb-ch commented 2 years ago

When running with the GUI option to have RViz in the browser, I have a black window in the 3d Viewport, can see and interact with the rest of the GUI, just nothing 3D-related. Had this problem on VMs in Parallels and using the LIBGL_ALWAYS_SOFTWARE=1 env variable always solved it. Not this time, cant seem to find a workaround. Wondering if you usually use that GUI mode and if so, if it's a common occurence?

I have tested a different image that also has ROS + RViz and noVNC and it works fine but is based on Ubuntu 20.04 and LXDE (https://hub.docker.com/r/tiryoh/ros-desktop-vnc), will do further testing to compare what seems to let it work, have seen that problem already?

I'm on a Macbook Pro with Intel Graphics, MacOS 12.5.

aatb-ch commented 2 years ago

Just to provide a bit more details, as I've spent quite a lot of time testing what I had available around me:

Macbook Pro and Mac Mini on Intel CPU + integrated graphics, macOS 12.6:

Macbook Air M1, macOS 11.4:

qt.qpa.xcb: could not connect to display ros-gui:0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
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.

I'm not sure what to do next, I was hoping trying a different platfrom from Intel might solve it but also M1 seems broken. Do you have a known working configuration? Are you mostly working on Windows machines?