Skip to content

Gazebo Harmonic does not load with NVIDIA #2916

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

Open
javizqh opened this issue Dec 13, 2024 · 8 comments
Open

Gazebo Harmonic does not load with NVIDIA #2916

javizqh opened this issue Dec 13, 2024 · 8 comments
Assignees
Labels
gpu Related to GPU

Comments

@javizqh
Copy link
Collaborator

javizqh commented Dec 13, 2024

Gazebo Harmonic does not load with NVIDIA, it stays in black

@javizqh
Copy link
Collaborator Author

javizqh commented Dec 13, 2024

Can you take a look @dpascualhe ?

@dpascualhe
Copy link
Collaborator

sure! I'll take a look. Just to confirm:

  • Is the same setup working fine for Gazebo classic?
  • Is acceleration with Intel / AMD / CPU working fine?

@javizqh
Copy link
Collaborator Author

javizqh commented Dec 14, 2024

It works fine for Intel and CPU.

@javizqh
Copy link
Collaborator Author

javizqh commented Dec 14, 2024

And launching with NVIDIA works for all the Gazebo Classic exercises

@javizqh
Copy link
Collaborator Author

javizqh commented Dec 14, 2024

To launch it first use:

docker run --hostname my-postgres --name academy_db -d    -e POSTGRES_DB=academy_db     -e POSTGRES_USER=user-dev     -e POSTGRES_PASSWORD=robotics-academy-dev     -e POSTGRES_PORT=5432     -d -p 5432:5432     jderobot/robotics-database:4.7.0-beta

And when it finishes launch:

docker run --rm -it $(nvidia-smi >/dev/null 2>&1 && echo "--gpus all" || echo "") --device /dev/dri -p 6080:6080 -p 1108:1108 -p 7163:7163 -p 7164:7164 --link academy_db jderobot/robotics-academy:4.7.0-beta

@javizqh javizqh added the gpu Related to GPU label Mar 27, 2025
@javizqh
Copy link
Collaborator Author

javizqh commented Mar 28, 2025

The error is
libEGL warning: egl: failed to create dri2 screen

@dpascualhe
Copy link
Collaborator

Hi @javizqh ! I'll try to catch up and take a look at this issue

Are these launch instructions still valid for reproducing the error or should I use a more recent version of the docker images?

To launch it first use:

docker run --hostname my-postgres --name academy_db -d -e POSTGRES_DB=academy_db -e POSTGRES_USER=user-dev -e POSTGRES_PASSWORD=robotics-academy-dev -e POSTGRES_PORT=5432 -d -p 5432:5432 jderobot/robotics-database:4.7.0-beta
And when it finishes launch:

docker run --rm -it $(nvidia-smi >/dev/null 2>&1 && echo "--gpus all" || echo "") --device /dev/dri -p 6080:6080 -p 1108:1108 -p 7163:7163 -p 7164:7164 --link academy_db jderobot/robotics-academy:4.7.0-beta

@javizqh
Copy link
Collaborator Author

javizqh commented Mar 31, 2025

Change the 4.7.0 beta for latest and pull the latest docker image un both of them

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

No branches or pull requests

2 participants