Skip to content

Docker container-based simulation fails to run #85

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
ghk-ap opened this issue Mar 12, 2025 · 3 comments
Open

Docker container-based simulation fails to run #85

ghk-ap opened this issue Mar 12, 2025 · 3 comments

Comments

@ghk-ap
Copy link

ghk-ap commented Mar 12, 2025

Following the docker getting started steps and attempting to run the simulation, the error which seems to cause the program to crash is:

[Err] [SDFFeatures.cc:843] The geometry element of collision [collision] couldn't be created

This was after doing these steps:

$ ./run.bash mbari/mbari_wec:latest

(in container)
vvv
$ . setup.bash

$ ./run_simulation.bash

run.txt

@andermi
Copy link
Collaborator

andermi commented Mar 12, 2025

Hi there,
What is your current setup?

From your logs, it looks like it couldn't launch the GUI and crashed. Are you attempting to run this from an ssh or remote desktop session?

[ruby $(which gz) sim-1] No protocol specified
[ruby $(which gz) sim-1] qt.qpa.xcb: could not connect to display :1
[ruby $(which gz) sim-1] qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
[ruby $(which gz) sim-1] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
[ruby $(which gz) sim-1] 
[ruby $(which gz) sim-1] Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

@gorbkeller
Copy link

(same person, different account)
My setup is running the docker container directly on my Ubuntu 20.04 laptop (x86). I followed the docker container's installation steps, including the nvidia driver steps since I have an nvidia gpu installed.

@andermi
Copy link
Collaborator

andermi commented Mar 13, 2025

it seems to be having trouble connecting to your :1 display

on your host machine, what is the output of

$ nvidia-smi

also,

$ sudo apt update && sudo apt install mesa-utils
$ glxinfo | grep "OpenGL"

and then repeat these things inside the docker container

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

No branches or pull requests

3 participants