build-16 Failed to initialize SDL, no valid video driver

Bug #775132 reported by Nathan Peters
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

I get the following output after compiling build-16 on freeBSD 8.2-RELEASE.

-----------------------------------------------------------------------------------------------------------------------
%./widelands
Set home directory: /home/tom/.widelands
No version file found
Adding directory:./.
Version file found with id "build-16" (real "build-16" )
No version file found
Adding directory:/usr/share/games/widelands
Adding directory:.
Version file found with id "build-16" (real "build-16" )
No version file found
Widelands executable directory:
localedir: locale
selected language: (system language)
SDL_VIDEODRIVER=&

Caught exception (of type '11_wexception') in outermost handler!
The exception said: [/usr/home/tom/builds/widelands-build16-src/src/wlapplication.cc:999] Failed to initialize SDL, no valid video driver:

This should not happen. Please file a bug report on version build-16(Release).
and remember to specify your operating system.

--------------------------------------------------------------
A workaround is to specify the video driver in the environment, e.g.
SDL_VIDEODRIVER=x11 ./widelands

Tags: sdl driver video
Revision history for this message
Nathan Peters (nathanpeters) wrote :
Revision history for this message
Nicolai Hähnle (nha) wrote :

Thank you for the patch, but could you please clean it up so that files from your build do not appear in it?

As for the other problem, that seems like a FreeBSD-specific issue of SDL. What about other games using SDL, do they show the same problem? And if not, can you perhaps try to figure out what they do differently? SDL is supposed to select the video output method automatically.

Revision history for this message
Nathan Peters (nathanpeters) wrote :

I tried two other SDL games (all built and tested in the same environment) and they do not have this problem. I'll try to figure out what's different.

The patch for building is fixed.

Revision history for this message
Nathan Peters (nathanpeters) wrote :
Revision history for this message
Nathan Peters (nathanpeters) wrote :

I think it's completely fixed with this last patch.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Welcome to Launchpad, Nathan. :)

Changed in widelands:
importance: Undecided → Medium
Revision history for this message
SirVer (sirver) wrote :

I appled your last patch in r 5914. I assume it contained all the prior patches in a cleaned up manner. Was this correct? I also added your name to the list of developers.

Thanks for contributing!

Changed in widelands:
status: New → Fix Committed
Changed in widelands:
milestone: none → build17-rc1
Revision history for this message
SirVer (sirver) wrote :

Released in build17-rc1.

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.