cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
703 stars 273 forks source link

Enabling new monitor during gameplay crashes game #5342

Open RoyalFox2140 opened 2 months ago

RoyalFox2140 commented 2 months ago

Describe the bug

On Bazzite linux I started my PC with my second monitor off, and I'm playing Cataclysm in windowed mode with my game maximized to my primary monitor which is my only current monitor, and I turn on my second monitor it leads to a crash. I am guessing it is updating my display/resolution and it causes the game to close. Log is attached

This needs verification on other builds.

Steps To Reproduce

  1. Only have on monitor. Game is in windowed mode and maximized to your monitor.
  2. You're on your world. You now plug in or turn on a second monitor which updates desktop resolution and display settings.
  3. Crash

Screenshots

No response

Versions and configuration

Additional context

crash.log debug.log

RoyalFox2140 commented 2 months ago

I did it again since I had both monitors off for about 5 minutes then turned them back on. crash.log

scarf005 commented 2 months ago

as talked in discord, this may be related: https://github.com/libsdl-org/SDL/issues/10075