6

I would like to run some headless unit tests, my problem can be recreated with just glxinfo. I try to run:

xvfb-run glxinfo

It prints multiple lines about GLX:

Xlib: extension "GLX" missing on display ":99".

If I try to run Xvfb on background:

Xvfb :99 &

It prints list of extensions, GLX is also there:

Initializing built-in extension GLX

But still, running:

DISPLAY=:99 glxinfo

Gives same GLX error.

It happens only when I use nvidia driver (tested on 352 and 340 proprietary from repository). Same command works fine after switch to Nouveau. Is this a nvidia package problem? Is there a better way to run xvfb in this case?

  • What is the exact reason for you to run 'xvfb-run glxinfo'? – Ashu Feb 23 '16 at 20:53
  • I have tests that open some windows. On my CI server, tests run in xvfb. I would like to have the same approach locally. Clicking somewhere (changing focus) can change test results. – Dorian Feb 23 '16 at 21:01
  • 'xvfb-run glxinfo' gives same GLX error as 'xvfb-run my-tests'. – Dorian Feb 23 '16 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.