Currently Online

Latest Posts

Topic: Xvfb or no GUI mode

Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-08-30, 11:07

Hi,

another question. I would like to use Xvfb to get rid of "interferences" when testing on PC - I mean to completely hide game's UI/window from user sitting in front of PC. I am trying to use Xvfg, but I am getting this errors:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
terminate called after throwing an instance of 'WException'
  what():  [/var/widelands/BZR/ai-post-b19/src/graphic/gl/initialize.cc:90] glewInit returns 1: Broken OpenGL installation.

Obviously openGL issue.

But can I circumveit this?

Or perhaps is there a genuine head-less mode available? I saw no hint in help.

Thanks


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2016-08-31, 06:35

Or perhaps is there a genuine head-less mode available? I saw no hint in help.

no, there is not. We use xvfb also on travis to run the game headless.

There, we simply run:

export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start

And that just works - on the server too. I never saw the error you posted there, sorry.


Top Quote