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