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

fail to start gazebo inside the container #24

Closed
yangyangcv opened this issue Nov 24, 2017 · 2 comments
Closed

fail to start gazebo inside the container #24

yangyangcv opened this issue Nov 24, 2017 · 2 comments
Assignees

Comments

@yangyangcv
Copy link

I follow the steps in 'Building Docker image' and succeed building the image. Then I create container, build components, all succeed. but when I run Gazebo simulator with 'make posix_sitl_default gazebo' there comes errors. I realize these errors are about gazebo. so i just run 'gazebo' in the terminal inside the container. the terminal outputs:

root@yang-X556UQK:~# gazebo
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 30
Current serial number in output stream: 31
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 30
Current serial number in output stream: 31

I guess it's because gazebo need glx. but according to https://github.com/NVIDIA/nvidia-docker/wiki/Frequently-Asked-Questions#is-opengl-supported opengl+glx is not supported by nvidia docker. so i'm confused about how to run gazebo simulator. confirm my config below:
host computer: Ubuntu 16.04 x64 with Nvidia Geforce 940MX
docker image: nvidia-redtail-sim:kinetic, built according to https://github.com/NVIDIA-Jetson/redtail/wiki/Testing-in-Simulator
gazebo simulator: running inside container with 'make posix_sitl_default gazebo'. should I run this inside the container or just in the host computer?

@Alexey-Kamenev
Copy link
Collaborator

Hello,
We usually run everything, including Gazebo, from Docker. Our simulator Docker image is pretty large so what I recommend is to try running smaller image like the one described here and see if Gazebo works in such configuration. Also, try this (I haven't tried it so I don't know if it's going to work).

@Alexey-Kamenev Alexey-Kamenev self-assigned this Nov 30, 2017
@yangyangcv
Copy link
Author

@Alexey-Kamenev thanks man. problem solved just as you mentioned.

  1. install nvidia driver on the host machine (I just use the graphical Software&Updates->Additional Drivers->choose 'Using NVIDIA binary driver')
  2. ./NVIDIA-DRIVER.run -a -N --ui=none --no-kernel-module inside the docker

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

2 participants