Rviz in Docker OpenGL 1.5 not supported

asked 2020-11-13 18:42:38 -0500

mjwhite gravatar image

I'm running a Docker image for ROS2 on a Macbook. Everything seems to work ok except for Rviz. The error I'm getting is:

[rviz2]: RenderingAPIException: OpenGL 1.5 is not supported in GLRenderSystem: initializeContext.

Here's how I'm starting the container:

docker run -it \
  --net=host \
  --env="DISPLAY=host.docker.internal:0 \
  --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
  --volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
rosplanning/navigation2:main.release

rqt runs successfully so I believe that I have the XWindowing system setup correctly. Has anyone got RViz working with a Docker image on a Macbook?

Thank you.

edit retag flag offensive close merge delete

Comments

Can you run any other OpenGL based application from your Docker container?

gvdhoorn gravatar image gvdhoorn  ( 2020-11-14 07:32:53 -0500 )edit

I tried to run gazebo and that gives the following error and then just hangs:

libGL error: No matching fbConfigs or visuals found

Could you suggest another OpenGL application that is in the official ros2 docker image that I could run?

mjwhite gravatar image mjwhite  ( 2020-11-14 23:07:17 -0500 )edit

The image that I'm running is:

docker pull rosplanning/navigation2:main.release

mjwhite gravatar image mjwhite  ( 2020-11-14 23:13:58 -0500 )edit