Description of problem: Xvfb does not have proper GLX support. glxgears and glxinfo both fail to run. Version-Release number of selected component (if applicable): How reproducible: Every time Steps to Reproduce: 1.xvfb-run glxinfo Actual results: Error: couldn't find RGB GLX visual or fbconfig Expected results: glxinfo list of framebuffer details and available visuals i.e. name of display: :99.0 display: :99 screen: 0 direct rendering: Yes ... client glx vendor string: Mesa Project and SGI client glx version string: 1.4 Additional info: this makes all of the 'image based' regression tests in OpenSCAD fail, not to mention invalidating dozens of tutorials and 'howtos' on the web about running OpenGL programs on headless servers.
I can confirm this problem, it's the same problem in Rhel 6.4. Following patch resolves the issue, tested and confirmed. http://cgit.freedesktop.org/xorg/xserver/patch/?id=65642ccb78aa2d4c4e17b9ac42e4ef625c4a6e8b
While the referenced patch is already included in Fedora 20, I still cannot use this. $ LIBGL_DEBUG=verbose xvfb-run glxinfo name of display: :99 libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so libGL: Can't open configuration file /home/churchyard/.drirc: No such file or directory. libGL error: failed to load driver: swrast Error: couldn't find RGB GLX visual or fbconfig Error: couldn't find RGB GLX visual or fbconfig 180 GLXFBConfigs: visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat ---------------------------------------------------------------------------- 0x049 0 tc 0 32 0 r . . 8 8 8 8 . . 0 0 0 0 0 0 0 0 0 None <snip> The referenced files are there, but it fails to load the driver. This bug still bothers me.
$ LIBGL_DEBUG=verbose xvfb-run glxgears libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so libGL: Can't open configuration file /home/churchyard/.drirc: No such file or directory. libGL error: failed to load driver: swrast Error: couldn't get an RGB, Double-buffered visual
If you don't specify, Xvfb starts at 8bpp, and there's no GLX support for 8bpp anymore.
Thanks for that info. So apparently, `xvfb-run -s "-screen 0 640x480x24" glxinfo` runs fine, but doesn't work in mock. <mock-chroot>[root@x230 /]# xvfb-run -s "-screen 0 640x480x24" glxinfo name of display: :99 Error: couldn't find RGB GLX visual or fbconfig Error: couldn't find RGB GLX visual or fbconfig <mock-chroot>[root@x230 /]# xvfb-run -s "-screen 0 640x480x24" glxgears Error: couldn't get an RGB, Double-buffered visual Am I missing something obvious? Should I continue the discussion here or should I open another bug?
(In reply to Miro Hrončok from comment #5) > Thanks for that info. > > So apparently, `xvfb-run -s "-screen 0 640x480x24" glxinfo` runs fine, but > doesn't work in mock. > > <mock-chroot>[root@x230 /]# xvfb-run -s "-screen 0 640x480x24" glxinfo > name of display: :99 > Error: couldn't find RGB GLX visual or fbconfig > Error: couldn't find RGB GLX visual or fbconfig > > <mock-chroot>[root@x230 /]# xvfb-run -s "-screen 0 640x480x24" glxgears > Error: couldn't get an RGB, Double-buffered visual > > Am I missing something obvious? I think you also won't get GLX if you don't have mesa-dri-drivers installed in the chroot.
Thanks. That helped.
*** Bug 1413238 has been marked as a duplicate of this bug. ***