Modify

Ticket #2822 (closed bug: fixed)

Opened 10 months ago

Last modified 10 months ago

Crashes on first start in wrappers.cpp:94 because of 0 resolution (SIGFPE)

Reported by: glogow@… Owned by:
Priority: normal Milestone: unspecified
Component: Engine: Graphics Version: git/master
Keywords: Cc:
Blocked By: Blocking:
Operating System: GNU/Linux 32bit

Description

If the game is started for the first time without a config, the resolution is set to 0 / 0, which will crash the game at @subject because boxHeight will be 0 and causes a SIGFPE (divide by 0).

The attached patch always sets a "sane" default config resolution (640 / 480), so the game won't crash instantly on start.

Attachments

use_sane_default_config_resolution.diff (670 bytes) - added by glogow@… 10 months ago.
Set default config resolution to 640x480

Change History

Changed 10 months ago by glogow@…

Set default config resolution to 640x480

comment:1 Changed 10 months ago by Per Inge Mathisen

  • Status changed from new to closed
  • Resolution set to fixed

Always set a sane default size for game window. Patch by glogow@…, closes ticket:2822

View

Add a comment

Provide an email address (will not be publicly visible) in the Author field or register an account (uses your forum account).

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.