-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast #253
Comments
Have a look at http://gernotklingler.com/blog/howto-get-hardware-accelerated-opengl-support-docker/. Using this I was able to get |
Thanks @roytruelove! With your reference I was able to solve by installing nvidia drivers in the container, by running As you mentioned, the drawback is that your container is now host-specific (or at least GPU-specific). |
I can confirm that just
Then
Worked for me, solving the issue for at least glxgears -- and it should work in general too. Although note I'm running mint 18 (based on xenial) as the host as well, and the ubuntu version in docker was xenial too. Key seems to be the changes to the docker options, plus having the same driver installed within the container. (well, host-specific binaries are the price we pay for greater performance). It seems it should be possible to solve this one with a really judicious mount of some sort -- maybe with a symlink -- just to expose the right openGL driver library on the host, although it somewhat breaks the point of docker. |
I think I have a fix. I am working on having Pymol in a container, on a Ubuntu 16.04 VM with an Nvidia GRID K1 attached to it. It is a legacy GPU, so I can only use the nvidia-340 driver. I have tried many solutions that didn't get me far, until I have simply mounted the driver's library folder into the container and it seems like worked fine. This how I executed my container: docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix:rw --privileged -e DISPLAY=unix$DISPLAY -v $HOME/:/home/training/ -v /usr/lib/nvidia-340:/usr/lib/nvidia-340 -v /usr/lib32/nvidia-340:/usr/lib32/nvidia-340 --device /dev/dri --name pymol ebitraining/pymol:alpha As an extra, In my Dockerfile I had this environment variables set. But I am not sure if it does helps: LABEL com.nvidia.volumes.needed="nvidia_driver" |
this should be fixed but let me know if otherwise |
Apologies, is there an official fix for this? The makeshift solution I am using is very limited to my current setup. Ta |
its very specific per graphics driver unfortunately
…On Wed, Jun 6, 2018 at 3:43 PM Mohamed ***@***.***> wrote:
Apologies, is there an official fix for this? The makeshift solution I am
using is very limited to my current setup. Ta
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYNbH16aAnTCtM-n-cEwRWAqQpRjXTbks5t6E0RgaJpZM4M2QVU>
.
--
Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC 511E 18F3 685C 0022 BFF3
pgp.mit.edu <http://pgp.mit.edu/pks/lookup?op=get&search=0x18F3685C0022BFF3>
|
Hi, I'm trying to run an application that uses OpenGL and Cuda 9.0 from a container built with Singularity on a remote machine. The application compiles and works perfectly fine on my local workstation. However, when I log in to the remote machine via SSH with the xserver enabled, I get this error when the said application tries to open images from their GUI:
I've taken care to install the exact same version of the nvidia drivers on the remote and local machines (390.67). Also, OpenGL seems to be working fine (glxgears runs without issues, so does glxinfo). What could possibly be the problem...? Thank you for any pointers! |
This is gonna drive me nuts. Same problem trying to launch rviz and gazebo in subsystem linux for windows 10. I have installed all packages listed here, tried many solutions. The segfault has no lead, it is just a segmentation fault all the way long. |
Running ROS on WSL is a very different game. As the issue is not related to docker, I feel you should ask this in a separate thread/forum. However, I'll share a few links that might be able to help you |
Not sure if it's because I got a Nvidia card but get this error:
The text was updated successfully, but these errors were encountered: