Bug 213300 - x11-servers/xorg-vfbserver: Xvfb is missing GLX extension
Summary: x11-servers/xorg-vfbserver: Xvfb is missing GLX extension
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 00:39 UTC by don bright
Modified: 2018-06-10 19:18 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description don bright 2016-10-08 00:39:33 UTC
Xvfb no longer has the GLX extension on FreeBSD 11.0. Trying to run GLX programs on a headless machine fails. This makes the OpenSCAD test suite fail and many "headless OpenGL tutorials" on the web also fail. 

This used to work in older versions of FreeBSD. 

To reproduce:

$ Xvfb :123 -screen 0 800x600x24 &
$ DISPLAY=:123 glxgears
Error: couldn't get an RGB, Double-buffered visual
$ DISPLAY=:123 glxinfo 
name of display: :123
Error: couldn't find RGB GLX visual or fbconfig



[don@noether ~/openscad/tests/bin]$ Xvfb +extension GLX
[mi] Extension "GLX" is not recognized
[mi] Only the following extensions can be run-time enabled:
[mi]    Generic Events
[mi]    Composite
[mi]    DAMAGE
[mi]    DOUBLE-BUFFER
[mi]    DPMS
[mi]    MIT-SHM
[mi]    RANDR
[mi]    RENDER
[mi]    X-Resource
[mi]    XFIXES
[mi]    XINERAMA
[mi]    XTEST
[mi]    XVideo

Thanks for reading.
Comment 1 Arto Pekkanen 2016-10-08 21:11:37 UTC
(In reply to don bright from comment #0)

As a workaround, until Xvfb is fixed, you could try running standard X.org server with the "dummy" video driver.

According to wikipedia it is an alternative to Xvfb: https://en.wikipedia.org/wiki/Xvfb

Here are some pointers on how to configure a dummy X.org:
http://xpra.org/trac/wiki/Xdummy

Here is a very extensive configuration:
http://xpra.org/xorg.conf

That being said, I've not tried this configuration myself. But if the GLX extension is enabled by X.org even with the dummy video driver, things should work just fine.
Comment 2 Walter Schwarzenfeld 2018-02-08 17:39:59 UTC
Is this still relevant?
Comment 3 Niclas Zeising freebsd_committer freebsd_triage 2018-06-10 19:18:02 UTC
Feedback timeout