Does not start (could not set video mode) using too large resolution in fullscreen mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When starting the game from terminal (with external screen connected) it fails, stating that it is unable to set window mode.
My guess is that I have played the game at 1366x768 before (on the laptops own screen), but currently only my external 1280x1024 screen is active, and therefore no 1366x768 mode is available to the x-server at the moment. My operating system is debian squeeze with widelands 15RC1.
I would expect the game to fallback to some lower resolution, but instead it just refuses to start. After I edit the config-file and change xres and yres from 1366/768 to 1280/1024, the game starts without problems.
The output when attempting to start with bad resolution set is:
-------
johan@johan-
Adding directory:
Version file found with id "Build15RC1" (real "Build15RC1" )
No version file found
Adding directory:
Version file found with id "Build15RC1" (real "Build15RC1" )
No version file found
Adding directory:.
No version file found
Set home directory: /home/johan/
No version file found
LANG en, LANGUAGE en:en
textdomain widelands @ share/games/
using locale en
SDL_VIDEODRIVER=&
Graphics: Trying Video driver: 0 x11 SDL_VIDEODRIVER=x11
Graphics: Trying FULLSCREEN
Caught exception (of type '11_wexception') in outermost handler!
The exception said: [/build/
This should not happen. Please file a bug report on version Build15RC1(
and remember to specify your operating system.
johan@johan-
-------
Related branches
- SirVer: Approve
- Jens Beyer: Needs Resubmitting
-
Diff: 47 lines (+16/-4)2 files modifiedsrc/constants.h (+4/-0)
src/graphic/graphic.cc (+12/-4)
Changed in widelands: | |
status: | Confirmed → Fix Committed |
milestone: | none → build18-rc1 |
Thanks for reporting this issue. user/widelands/ src/graphic/ graphic. cc:143] Graphics: could not set video mode: No video mode large enough for 1366x768
I see the same on Ubuntu 10.10 with Widelands bzr r5801. I get the following error:
Graphics: Trying FULLSCREEN
Graphics: Try to set Videomode 1366x768 32Bit
terminate called after throwing an instance of '_wexception'
what(): [/home/
Avbrutt (SIGABRT)
What I did to provoke this was to edit the resolution in ~/.widelands/config to a bigger resolution than my screen can handle. The interesting part is that it only crashes if the game is set to fullscreen as well. When running the game in windowed mode it ran fine.