ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Docker with rqt problem with black dialog/menu/dropdown

asked 2018-10-01 17:08:11 -0500

fehlfarbe gravatar image

updated 2018-10-18 07:32:53 -0500


I created a docker container based on osrf/ros:kinetic-desktop-xenial which runs rqt via XServer ( 1. The simple way). I also made my video card (Intel GPU) available via --device=/dev/dri:/dev/dri ( ) 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?

The content of a QDialog gets visible when I resize the dialog.
Adding --env="QT_X11_NO_MITSHM=1" doesn't fix the problem.

edit retag flag offensive close merge delete


I came here with the same problem and QT_X11_NO_MITSHM=1 seems to solve the problem for me.

martinakos gravatar image martinakos  ( 2020-05-28 04:57:44 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-10-10 18:02:24 -0500

ruffsl gravatar image

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:


edit flag offensive delete link more



I already tried --env="QT_X11_NO_MITSHM=1". When I resize the window the content gets visible.

fehlfarbe gravatar image fehlfarbe  ( 2018-10-18 07:27:02 -0500 )edit

answered 2021-10-19 07:07:26 -0500

Tuebel gravatar image

My most reliable fix, albeit loosing container isolation is adding



edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-01 17:08:11 -0500

Seen: 1,018 times

Last updated: Oct 19 '21