Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix libGL error: MESA-LOADER error when running on Ubuntu 22.04 #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

woensug-choi
Copy link

@woensug-choi woensug-choi commented Nov 29, 2023

This PR will not be necessary if osrf/rocker#258 is merged.
Meanwhile, I am adding this PR for sake of integrity of installation process of Project Dave

On freshly install Ubuntu 22.04 Jammy LTS. Without doing anything,
I've installed rocker with,

pip3 install rocker
pip3 install --force-reinstall git+https://github.com/osrf/rocker.git@main
rocker --version
# rocker 0.2.12

and ran Example in README

rocker --nvidia --x11 osrf/ros:noetic-desktop-full gazebo

and Got error saying

libGL error: MESA-LOADER: failed to retrieve device information

When I built noetic and ran with,

./build.bash noetic
./run.bash dockwater:noetic

It runs ok. but when I try to open gazebo I get the same libGL error as above.

I was able to fix the problem by adding --volume /dev:/dev in rocker argument. which adds -v /dev:/dev to docker argument.

I believe the right position to add -v /dev:/dev is --x11 argument tag since it wouldn't break even if /dev doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant