Docker with rqt problem with black dialog/menu/dropdown
Hi,
I created a docker container based on osrf/ros:kinetic-desktop-xenial
which runs rqt via XServer (http://wiki.ros.org/docker/Tutorials/GUI#The_ssh_way 1. The simple way). I also made my video card (Intel GPU) available via --device=/dev/dri:/dev/dri ( http://wiki.ros.org/docker/Tutorials/Hardware%20Acceleration#Intel ) which seems to work because rqt and RViz starts and I don't get OpenGL errors.
But sometimes rqt doesn't render the content of widgets like dialog boxes, menu entries and dropdown lists shows only a black window/widget. It happens on my own rqt plugin but also on the rqt main menu (for example the menu entries for Plugins->Visualization are just a black box). I have the same problem on different computers running Linux Mint 18.2 (Cinnamon) and Intel GPU.
Is this a known bug or is there something wrong with my configuration?
Edit:
The content of a QDialog gets visible when I resize the dialog.
Adding --env="QT_X11_NO_MITSHM=1"
doesn't fix the problem.
Asked by fehlfarbe on 2018-10-01 17:08:11 UTC
Answers
This sounds like a QT issue. Be sure to set the necessary environment variable to force QT to properly render the GUI regardelss of the X server configuration, e.g disabling QT use of MIT Shared Memory Extension:
http://wiki.ros.org/docker/Tutorials/GUI#Troubleshooting
--env="QT_X11_NO_MITSHM=1"
Asked by ruffsl on 2018-10-10 18:02:24 UTC
Comments
I already tried --env="QT_X11_NO_MITSHM=1"
. When I resize the window the content gets visible.
Asked by fehlfarbe on 2018-10-18 07:27:02 UTC
My most reliable fix, albeit loosing container isolation is adding
--ipc=host
Compare https://github.com/jessfraz/dockerfiles/issues/359
Asked by Tuebel on 2021-10-19 07:07:26 UTC
Comments
I came here with the same problem and QT_X11_NO_MITSHM=1 seems to solve the problem for me.
Asked by martinakos on 2020-05-28 04:57:44 UTC