Package: widelands
Version: build9half-2
Severity: normal

Hi,

It's possible to crash widelands the following way:

1. start from empty configuration (eg. rm -rf ~/.widelands)
2. go to options menu
3. select full screen
  - do not select an "in-game resolution"; none is selected by default
4. click apply
5. proceed to start game

The bug is in that the resolution is saved to g_options in the options
dialog even when not set. "xres" and "yres" are therefore set to bogus
values which are later fetched when starting a game. Any bogus in-game
resolution may thus appear, possibly crashing the game. (see
fullscreen_menu_options.cc:202-203)

The fix would probably be to make one of the in-game resolutions
selected by default in the options dialog or to make it return
sensible values for xres and yres in some other way even when no
in-game resolution is selected.

        Sami


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages widelands depends on:
ii  libc6                       2.3.5-11     GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.2-6    GCC support library
ii  libpng12-0                  1.2.8rel-5   PNG library - runtime
ii  libsdl-image1.2             1.2.4-1      image loading library for Simple D
ii  libsdl-mixer1.2             1.2.6-1.1    mixer library for Simple DirectMed
ii  libsdl-net1.2               1.2.5-5      network library for Simple DirectM
ii  libsdl-ttf2.0-0             2.0.7-1      ttf library for Simple DirectMedia
ii  libsdl1.2debian             1.2.9-0.0    Simple DirectMedia Layer
ii  libstdc++6                  4.0.2-6      The GNU Standard C++ Library v3
ii  widelands-data              build9half-2 fantasy real-time strategy game (d
ii  zlib1g                      1:1.2.3-9    compression library - runtime

widelands recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to