CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.1k stars 4.1k forks source link

Crash when zooming main view #75039

Closed gileri closed 1 month ago

gileri commented 1 month ago

Describe the bug

When zooming using z or Z, the game crashes when zoom "overflow" and go back to the biggest/smallest scale.

Attach save file

Spawn_no_crash-trimmed.tar.gz

Moved_crash-trimmed.tar.gz

Steps to reproduce

  1. Load save Spawn_no_crash-trimmed.tar.gz
  2. Zoom with z or Z until "overflow"
  3. No crash
  4. Load save Moved_crash-trimmed.tar.gz (I just walked NE a few tile from spawn since previous save)
  5. Zoom (main view, not the map) with z or Z until "overflow"
  6. Crash

Expected behavior

No crash

Screenshots

No response

Versions and configuration

Additional context

debug.log

crash.log

PatrikLundell commented 1 month ago

Failed to repeat with the crash save.

Thus, it might be an OS thing.

gileri commented 1 month ago

You're right @PatrikLundell. This is only triggered if -D_GLIBCXX_ASSERTIONS is in CXXFLAGS, which is the default on some distributions, including Archlinux.