Bug 904851 - xvfb-run glxinfo fails
Summary: xvfb-run glxinfo fails
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-server
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1413238 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-27 21:19 UTC by Don Bright
Modified: 2017-01-16 08:28 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-13 23:14:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1413238 0 unspecified CLOSED pyglet.window import failure 2021-02-22 00:41:40 UTC

Internal Links: 1413238

Description Don Bright 2013-01-27 21:19:17 UTC
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.

Comment 1 Patrik Martinsson 2013-05-15 06:35:33 UTC
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

Comment 2 Miro Hrončok 2013-12-13 21:54:06 UTC
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.

Comment 3 Miro Hrončok 2013-12-13 22:00:51 UTC
$ 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

Comment 4 Adam Jackson 2013-12-13 23:14:29 UTC
If you don't specify, Xvfb starts at 8bpp, and there's no GLX support for 8bpp anymore.

Comment 5 Miro Hrončok 2013-12-13 23:39:35 UTC
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?

Comment 6 Adam Jackson 2013-12-17 18:20:27 UTC
(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.

Comment 7 Miro Hrončok 2013-12-17 20:55:50 UTC
Thanks. That helped.

Comment 8 Petr Viktorin (pviktori) 2017-01-16 08:28:59 UTC
*** Bug 1413238 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.