ROS & Docker: Unable to get rqt to start

asked 2020-05-12 02:02:15 -0500

ea-testing gravatar image


Every time I try to start rqt or rviz I get the following string of errors:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
dbus[1795]: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
  D-Bus not built with -rdynamic so unable to print a backtrace
zsh: abort (core dumped)  rqt

The docker container is given as

sudo docker run -it --env "DISPLAY" --env="QT_X11_NO_MITSHM=1" --device=/dev/dri:/dev/dri --net=host --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --name ros_main_test ros:melodic-ros-core-bionic

I started roscore.

Installed ros-melodic-desktop-full, Qt5, Qt4, xserver-xorg, and a few other packages

Checked the docs and was following this for intel:

glx gears work fine, but I cannot launch rqt.

Anyone have any ideas on what I can do?

edit retag flag offensive close merge delete


I was able to get rqt working in docker with the docker-nvidia extensions installed. If you have an nvidia card did you also setup those extensions?

guru_florida gravatar image guru_florida  ( 2020-12-04 23:04:20 -0500 )edit

Hi @guru_florida, is it possible to start it without a nvidia card?

snice gravatar image snice  ( 2021-04-26 10:58:56 -0500 )edit

I believe so. If you can run glxinfo and it shows 3D acceleration you should be good to go. In any case, you should be able to run rqt with software acceleration even, you just might have performance trouble in Rviz or Gazebo. Unfortunately, I can't really help here since I'm setup with nvidia.

guru_florida gravatar image guru_florida  ( 2021-04-26 21:28:23 -0500 )edit