Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

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

Closed
wzdev-ci opened this issue Jul 14, 2011 · 4 comments
Closed

Comments

@wzdev-ci
Copy link
Contributor

resolution_fixed type_bug | by glogow@...


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.


Issue migrated from trac:2822 at 2022-04-16 08:28:46 -0700

@wzdev-ci
Copy link
Contributor Author

glogow@... uploaded file use_sane_default_config_resolution.diff (0.7 KiB)

Set default config resolution to 640x480

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen commented


Always set a sane default size for game window. Patch by glogow@fbihome.de, closes #2822

@wzdev-ci
Copy link
Contributor Author

Per Inge Mathisen changed status from new to closed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant