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

start rviz2 failed in the docker container for jetson agx xavier

asked 2021-11-17 01:16:12 -0500

rcj gravatar image

updated 2021-11-17 01:19:18 -0500

create a container,as follows:

docker run -it --rm \ --user=$(id -u $USER):$(id -g $USER) \ --workdir="/home/$USER/" \ --volume="/home/$USER:/home/$USER" \ --volume="/etc/group:/etc/group:ro" \ --volume="/etc/passwd:/etc/passwd:ro" \ --volume="/etc/shadow:/etc/shadow:ro" \ --volume="/etc/sudoers.d:/etc/sudoers.d:ro" \ --volume="/dev/shm:/dev/shm" \ --net=host \ --gpus=all \ -e DISPLAY \ -e QT_X11_NO_MITSHM=1 \ -e XAUTHORITY=/tmp/.docker.xauth \ -v /tmp/.docker.xauth:/tmp/.docker.xauth \ -v /tmp/.X11-unix:/tmp/.X11-unix \ image_name

after entering the container ,run rviz2 in a terminator,there is a error that:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-cookoo' qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<qsurfaceformat::formatoption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<qsurfaceformat::formatoption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) Falling back to using screens root_visual. Segmentation fault (core dumped)

How should i solved it?

edit retag flag offensive close merge delete

Comments

Did you solve this? I have the same issue

Jenzaah gravatar image Jenzaah  ( 2022-01-03 02:37:05 -0500 )edit

I have the same issue

AGE_CPH gravatar image AGE_CPH  ( 2022-02-03 05:24:52 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-06 03:02:53 -0500

I had the same issue. If you adding the user to a video group may solve this issue.

in container:

$ sudo adduser <Username> video

another terminal:

$ docker run -it <container_name> /bin/bash
$ source /opt/ros/<dist>/setup.bash
$ rviz2
edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-11-17 01:16:12 -0500

Seen: 417 times

Last updated: Sep 06 '22