dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

Low Repro Crash: Minimizing while generating advanced map causes purple screen of death

Open com1clyf3 opened this issue 6 years ago • 4 comments

![image](https://user-images.githubusercontent.com/6562812/47379513-1a21e680-d6c9-11e8-916b-42ebd32bb660.png

Not a traditional crash, but a showstopping bug

I've only been able to get this to repro 2/10 times. Not totally sure the settings have anything to do with repro, but I've been using them, so including them in case they're relevant.

  1. Go to the advanced game generation map while game is in windowed mode
  2. Select very high on all advanced settings, except temp, which should be very low
  3. Make a large territory size and lots of caves
  4. Generate.
  5. Minimize as soon generation begins. Minimize back and forth. If you've triggered the bug, you'll observe the window turning to the purple screen of death, forcing player to quit game.

No crashlog produced.

27c42f81

com1clyf3 avatar Oct 23 '18 18:10 com1clyf3

Ok, the purple screen of death happens whenever the graphics device gets unloaded in a screen other than the main gameplay screen. I haven't done much testing in other game states with minimization, so I wouldn't be surprised if this happens sometime elsewhere, for example while selecting a world to load, or just sitting on the main menu. I doubt that you have to do any of those steps to reproduce it other than just minimizing the game outside of the main game state.

mklingen avatar Oct 23 '18 19:10 mklingen

I figured it was mainly a version of the minimize bug again, yeah, but just in case.

com1clyf3 avatar Oct 23 '18 19:10 com1clyf3

Ok, I've made my best effort to fix the purple screen of death. I followed a procedure similar to how I fixed disappearing dwarf artwork. It was not easy and I may not have gotten everything. Procedure was to make the HOME key trigger a graphics device reset in all game states, and then press HOME key rapidly in each state. This led me to find a multitude of crashes and problems which I have now fixed.

At worst you should see the purple screen flash for about 1 second and the game should come back. There might also be some random artwork in some of the other game states that disappears, but I haven't tracked down all of that yet.

mklingen avatar Oct 24 '18 00:10 mklingen

Fixed MANY more of these issues today.

mklingen avatar Oct 31 '18 01:10 mklingen