[vo/opengl] Selected GLX FB config has no associated X visual
Hi,
"opengl" and "opengl-hq" video output driver don't work since I have updated my graphic driver a few days ago (my friend has the same issue). It plays audio but without creating a window.
The error is: [vo/opengl] Selected GLX FB config has no associated X visual [vo/opengl] OpenGL context creation failed! Error opening/initializing the selected video_out (-vo) device.
mpv version I tested is: mpv b'0.3.3' (C) 2000-2013 mpv/MPlayer/mplayer2 projects built on 2014-01-16T09:46:50
and the newest: mpv b'git-63a76b3' (C) 2000-2014 mpv/MPlayer/mplayer2 projects built on 2014-01-21T19:11:22 ffmpeg library versions: libavutil 52.48.101 libavcodec 55.39.101 libavformat 55.19.104 libswscale 2.5.101 libavfilter 3.90.100 libavresample 1.1.0
I don't know my prev. graphic driver versions but they were not so old. I use arch-linux (64 bit) and I use open-source ati driver: ati-dri 10.0.2-1 mesa 10.0.2-1 mesa-libgl 10.0.2-1 xf86-video-ati 1:7.2.0-2 libx11 1.6.2-1 xorg-server 1.15.0-5 xorg-server-common 1.15.0-5 xorg-server-utils 7.6-3
At the moment I use vo=xv without problems.
Any ideas? Is this even a mpv issue? I'm not sure but everything works fine (opengl games and so on) besides mpv with vo=opengl(-hq) option.
Is this even a mpv issue?
Probably not, but since you say opengl games work fine, there might be an issue. Can you paste the output of glxinfo? Also, the output of mpv -v trying to run something.
I'm now sure how ppl post code here, so I did it with pastebin.com.
mpv with -v option: http://de.pastebin.de/39079 glxinfo: http://pastebin.de/39080
btw, I just downloaded the newest mplayer and mplayer2:
mplayer and mplayer2 with the "-vo gl" option both work with almost the same output: [gl] GLX chose visual with ID 0x228 [gl] Running on OpenGL 'Gallium 0.4 on AMD CYPRESS' by 'X.Org', version '3.0 Mesa 10.0.2'
My friend is using the same graphic driver and he has the same problem. So I assume it really is a mpv problem.
I'd be inclined to claim that this is a Mesa bug. Specifically, glXGetVisualFromFBConfig() returns NULL, even though we request a FB config with GLX_X_RENDERABLE set to True. This shouldn't happen: fb configs that don't have GLX_X_RENDERABLE should't be returned.
I implemented a workaround for this in the branch glx_workaround. You can try it if you want.
I'd rather not merge it before I know what's wrong, though.
thanks, the workaround is working :) it seems to be the same way mplayer2 does this.
Here is the opengl part from -v:
[vo/opengl] Selected GLX FB config has no associated X visual [vo/opengl] GLX chose visual with ID 0x228 [vo/opengl] Detected OpenGL 3.0. [vo/opengl] GL_VENDOR='X.Org' [vo/opengl] GL_RENDERER='Gallium 0.4 on AMD CYPRESS' [vo/opengl] GL_VERSION='3.0 Mesa 10.0.2' [vo/opengl] GL_SHADING_LANGUAGE_VERSION='1.30' [vo/opengl] OpenGL legacy compat. found. [vo/opengl] Detected OpenGL features: [Basic OpenGL] [Legacy OpenGL] [OpenGL 2.0] [OpenGL 2.1] [OpenGL 3.0] [Framebuffers] [VAOs] [sRGB textures] [sRGB framebuffers] [Float textures] [RG textures] [NO_SW] [vo/opengl] Testing user-set FBO format [vo/opengl] Create FBO: 16x16 [vo/opengl] 8-bit precision: 0x0p+0 [vo/opengl] 16-bit precision: 0x1.0001p-9 [vo/opengl] full float: 0x1.01p-9 [vo/opengl] out of range value (2): 0x1p+0 [vo/opengl] Display depth: R=5, G=6, B=5 [vo/opengl] Testing user-set FBO format [vo/opengl] Create FBO: 16x16 [vo/opengl] 8-bit precision: 0x0p+0 [vo/opengl] 16-bit precision: 0x1.0001p-9 [vo/opengl] full float: 0x1.01p-9 [vo/opengl] out of range value (2): 0x1p+0 [vo/opengl] Reinit rendering.
Not sure if this will be fixed on the mesa-side or the mpv-side but I hope I don't need to compile it every time :D Anyway thanks for your time.
Btw., which version of that branch did you try - 2b5956bb603c or ccdf9ba7f674e? mpv -V should tell you.
[cplayer] mpv git-2b5956b
[cplayer] mpv git-ccdf9ba is working too, but with the same output ("[vo/opengl] Selected GLX FB config has no associated X visual" is still showing.)
I'm also using the same setup and have the same problem. I think it was triggered by this update a bit over a week ago:
- linux (3.12.7-1 -> 3.12.7-2)
- xf86-video-ati (1:7.2.0-1 -> 1:7.2.0-2)
- xorg-server-common (1.14.5-2 -> 1.15.0-5)
- xorg-server (1.14.5-2 -> 1.15.0-5)
The problem persists the whole X session, though restarting the session 1-3 times has been enough to get rid of it.
[PACMAN] upgraded glamor-egl (0.5.1.r258-1 -> 0.6.0-1)
I think this is what fixed it for me (without tweaking mpv).
https://projects.archlinux.org/svntogit/packages.git/log/trunk?h=packages/glamor-egl
[PACMAN] upgraded glamor-egl (0.5.1.r258-1 -> 0.6.0-1)
I think this is what fixed it for me (without tweaking mpv).
https://projects.archlinux.org/svntogit/packages.git/log/trunk?h=packages/glamor-egl
Nope, I have glamor-egl and still have this problem. Sometimes it works and sometimes it doesn't. But i can't be bothered to look into the issue as long as vo_vdpau works.
Issue persists on updated Arch laptop with mpv 0.3.4.
0.3.4 doesn't include anything to fix it. Currently I'm assuming it's a Mesa bug, although there's a chance that it isn't.
If vdpau performed as well as opengl on my netbook I wouldn't even care about this issue. Are there any logs or info I could send to lend a helping hand, or can you reproduce the problem?
I can't reproduce it, mainly because I'm using nvidia binary drivers.
Maybe you can test the glx_test2 branch: https://github.com/mpv-player/mpv/tree/glx_test2 I don't think it helps in any way, just making sure I didn't miss something obvious.
I've made a test program which dumps some GLX stuff to the terminal output. If you try it, please paste its output: http://sprunge.us/YVeK
(Compile with c++ -o glx glx.cpp -lGL -lX11 then run with ./glx)
Also, as said above, this branch provides a workaround: https://github.com/mpv-player/mpv/tree/glx_workaround
I get this problem too (on random startups, it's weird), and using the branch glx_workaround does work-around the problem for me.
I ran your glx test program on a bootup which exhibited the problem with vanilla mpv, and my output is http://pastebin.com/B0N4xmFp
I can test the glx_test2 branch as well?
glx_test2 seems to fix the issue for me.
I ran your glx test program on a bootup which exhibited the problem with vanilla mpv, and my output is http://pastebin.com/B0N4xmFp
Can you run glxinfo as well on the same system? (Or maybe re-run the test program and paste that together with glxinfo output.)
I can test the glx_test2 branch as well?
Yes please.
glx_test2 seems to fix the issue for me.
That's unexpected.
OK, well the glx_test2 branch seems to workaround this issue for me too. I'll keep testing and edit this post if it happens to break later on.