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

libGL error: No matching fbConfigs or visuals found #2

Open
akhilesh17 opened this issue Dec 17, 2018 · 3 comments
Open

libGL error: No matching fbConfigs or visuals found #2

akhilesh17 opened this issue Dec 17, 2018 · 3 comments

Comments

@akhilesh17
Copy link

akhilesh17 commented Dec 17, 2018

$ docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v $(pwd)/test:/app -e DISPLAY=$DISPLAY -u qtuser fadawar/docker-pyqt5-qml python3 /app/hello.py
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-qtuser'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX

Any solution for this?

EDIT:

It tried -v ~/.Xauthority:/home/qtuser/.Xauthority also but the same error.

$ docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.Xauthority:/home/qtuser/.Xauthority -v $(pwd)/test:/app -e DISPLAY=$DISPLAY -u qtuser fadawar/docker-pyqt5-qml python3 /app/hello.py
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-qtuser'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize GLX
@jozo
Copy link
Owner

jozo commented Dec 20, 2018

Which OS do you use?

@akhilesh17
Copy link
Author

@jozo , Sorry for the delayed reply. I am using Ubuntu 16.04 LTS.

@jozo jozo changed the title QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-qtuser' libGL error: No matching fbConfigs or visuals found Jan 24, 2019
@jozo
Copy link
Owner

jozo commented Jan 24, 2019

So today I tried run the command in Ubuntu 16.04.5 in VirtualBox. I also got the warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-qtuser'

However, it run without problem. The problem in your case will be in next lines about libGL error. It's hard to help you because I can't reproduce the problem. Maybe you can look at this issue to find some help: jessfraz/dockerfiles#253
If you find solution please share it here. 🤔

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