Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Debugging tips for crashing saves?  (Read 1087 times)

salajander

  • Bay Watcher
    • View Profile
Debugging tips for crashing saves?
« on: November 12, 2018, 01:06:18 pm »

I have a bugged save here http://dffd.bay12games.com/file.php?id=14079 that crashes after 2 minutes. I added it in a comment on http://www.bay12games.com/dwarves/mantisbt/view.php?id=10880.

Are there any standard debugging tips to try to work around crashes? I saw somewhere someone suggested forbidding everything; I tried that, crash still occurred.

Are there other things to try? Is there a general list of debugging steps somewhere?

Thanks!
Logged

sketchesofpayne

  • Bay Watcher
    • View Profile
Re: Debugging tips for crashing saves?
« Reply #1 on: November 12, 2018, 08:18:27 pm »

Set Print Mode:2D
Save starts on 138-06-12 and usually crashes on 138-06-14
I tried each of these individually and each still resulted in a crash:

  • cancel all job manager jobs
  • Dwarf Therapist disable all labors for all dwarves
  • disable invaders
  • disable artifacts/moods
  • Set population max to 125 and children to 0:0
  • Set visitor cap 0
  • DFhack clean all; clean map item
  • DFhack autodump destroy (all the 6153 stone)
  • DFhack exterminate forgotten_beast_124
  • DFhack exterminate human
  • DFhack migrants-now
  • DFhack autodump destroy (all 17121 items in stocks)

Then I tried:
DFhack exterminate dwarf
Ran for a while.  Goblin siege arrived on 138-07-04 crashed on 138-07-08.

Next I tried:
Set visitor cap 0
Dfhack exterminate forgotten beast, dwarf, elf, goblin.
138-07-04 Goblin siege arrived. 
138-07-13 Ineth Rithtathtat transformed into a weregecko.
138-07-15 turned back into a dwarf.
138-07-28 game crashed.

Finally I tried:
Retire fortress (for the time being)
Reclaim/unretire
138-06-26  (Exterminated the bronze colossus, couldn't be bothered to deal with it.)
No siege came
No weregecko because Ineth was killed by the bronze colossus at the start.
138-08-10 game is still running.

edit:
138-10-04 game is still running.
« Last Edit: November 12, 2018, 09:14:05 pm by sketchesofpayne »
Logged

salajander

  • Bay Watcher
    • View Profile
Re: Debugging tips for crashing saves?
« Reply #2 on: November 14, 2018, 03:41:16 pm »

Thanks! I wonder what retire/reclaim fixes.
Logged