Panels in ROS Noetic Docker Container Rendering Issue
ijnek opened this issue ยท 6 comments
When switching / dragging panels around in rviz in a noetic docker container, the rendering acts up strange.
I have not been able to reproduce this on:
- a locally installed ROS Noetic installation
- ros-melodic-full docker container
but have managed to reproduce it using the same docker container across two machines with different gpus (integrated and nvidia).
docker run --rm -it --privileged --net=host --ipc=host \
--device=/dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
-v $HOME/.Xauthority:/home/$(id -un)/.Xauthority -e XAUTHORITY=/home/$(id -un)/.Xauthority \
-e ROS_IP=127.0.0.1 \
osrf/ros:noetic-desktop
Your environment
- OS Version: Ubuntu 22.04 (running ros-noetic-desktop docker image)
- ROS Distro: Noetic
- RViz, Qt, OGRE, OpenGl version as printed by rviz:
[ INFO] [1675829167.064978650]: rviz version 1.14.19 [ INFO] [1675829167.065029626]: compiled against Qt version 5.12.8 [ INFO] [1675829167.065041080]: compiled against OGRE version 1.9.0 (Ghadamon) [ INFO] [1675829167.075989223]: Forcing OpenGl version 0. [ INFO] [1675829167.159583133]: Stereo is NOT SUPPORTED [ INFO] [1675829167.159629826]: OpenGL device: Mesa Intel(R) Graphics (ADL GT2) [ INFO] [1675829167.159641504]: OpenGl version: 4.6 (GLSL 4.6) limited to GLSL 1.4 on Mesa system.
Looks more like a Qt than an rviz issue. How do other Qt apps behave that have similar panels?
Thanks for the quick response @rhaschke, I haven't been able to reproduce this with rqt when I drag panels around.
We have the same issue.
More details about our case:
UserA created the container. UserA is starting rviz in the container without problems. UserB is starting rviz as UserA and sees issues.
Rqt is working without issues (except rviz plugin - it is the same).
[rviz, qt, ogre versions are the same]
Hey, I think I found the workaround.
The problem in the qt. And here is the bug https://bugreports.qt.io/browse/QTBUG-81723
I upgraded the qt to 5.12.10 with the next steps:
sudo add-apt-repository ppa:beineri/opt-qt-5.12.10-focal
sudo apt-get update
sudo apt-get install qt512charts-no-lgpl qt512svg qt512xmlpatterns qt512tools qt512translations qt512graphicaleffects qt512quickcontrols2 qt512wayland qt512websockets qt512serialbus qt512serialport qt512location qt512imageformats qt512script qt512scxml qt512gamepad qt5123d
source /opt/qt512/bin/qt512-env.sh
Then cloned rviz to catkin_ws/src and built with 'catkin build rviz'.
After that rviz is working.
one more thing.
We found that it is not needed to rebuild the rviz. Only install and source qt.