Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009855Dwarf FortressTechnical -- Generalpublic2016-06-21 08:562016-07-01 13:19
Witty 
Toady One 
normalcrashrandom
resolvedfixed 
Windows 7
0.43.04 
0.43.05 
0009855: Game doesn't close properly, crashes upon quitting
As of the newest version, the game sometimes doesn't close properly. Upon quitting, the game screen itself successfully manages to close, but the DF directory will still say it's in use if prompted (like moving the directory immediately after closing). This is followed by a crash. Also, the game music will sometimes play a few seconds after closing the game proper before a crash.

Note that this doesn't seem to happen all the time, but rather randomly. I'm not sure if there's anything in particular that's done in-game to trigger the crash - but it's occurring on both my Window 7 machines.
Open Dwarf Fortress

Play around a bit

Quit Dwarf Fortress
Worth noting that this crash doesn't occur on the legacy version at all, so I'm guessing this has something to do with the new compiler/SDL issue that was mentioned in a devlog.
No tags attached.
Issue History
2016-06-21 08:56WittyNew Issue
2016-06-21 09:04chaosvoltNote Added: 0035442
2016-06-21 09:31WittyNote Added: 0035445
2016-06-21 10:40chaosvoltNote Added: 0035447
2016-06-21 10:41chaosvoltNote Added: 0035448
2016-06-21 11:16chaosvoltNote Edited: 0035448bug_revision_view_page.php?bugnote_id=0035448#r14295
2016-06-22 09:57chaosvoltNote Added: 0035469
2016-06-23 18:39WittyNote Added: 0035476
2016-06-29 18:18lethosorNote Added: 0035521
2016-06-29 18:18lethosorAssigned To => lethosor
2016-06-29 18:18lethosorStatusnew => needs feedback
2016-06-29 19:02WittyNote Added: 0035527
2016-06-29 19:02WittyStatusneeds feedback => assigned
2016-07-01 13:19lethosorNote Added: 0035538
2016-07-01 13:19lethosorStatusassigned => resolved
2016-07-01 13:19lethosorFixed in Version => Next Version
2016-07-01 13:19lethosorResolutionopen => fixed
2016-07-01 13:19lethosorAssigned Tolethosor => Toady One

Notes
(0035442)
chaosvolt   
2016-06-21 09:04   
As I've stated before, I've inexplicably encountered this with the SDL version, but not the legacy version. So far, unlike as you've said it happens consistently for me, not at random. I'd use the legacy version, but something about it makes it look hideous at the window/tile settings I normally use. ;w;

Once I'm out and about on the laptop I'll see if the results are the same on it. Both are Windows 7, 32-bit though. Might snag a relative's Vista laptop to try it too, while I'm at it.
(0035445)
Witty   
2016-06-21 09:31   
http://i.imgur.com/JkRYAb6.png [^]

Here's an example of the exact error message Windows gives when the crash occurs, courtesy of Random_Dragon
(0035447)
chaosvolt   
2016-06-21 10:40   
That would be me, yes. Can at least remove it from Dropbox now.
(0035448)
chaosvolt   
2016-06-21 10:41   
(edited on: 2016-06-21 11:16)
And...oh. Dafuq. I said I'd test this on the laptop, and instead I encounter http://www.bay12games.com/dwarves/mantisbt/view.php?id=9854 [^] on it. >.>

EDIT: Easily fixed via the link you provided in that issue. I can now confirm that THIS issue persists on my laptop as well.

(0035469)
chaosvolt   
2016-06-22 09:57   
Here's some more weirdness. I thought previous that it consistently crashed, but the past few times on both desktop and laptop, it hasn't. Increasingly peculiar.
(0035476)
Witty   
2016-06-23 18:39   
This issue seems to have been resolved as of Toady's recent test builds found

http://www.bay12forums.com/smf/index.php?topic=158868.135 [^] <---here

So chances are this'll remain fixed in the next officially released version

Many thanks to NCommander and Quietust for figuring out the issue.
(0035521)
lethosor   
2016-06-29 18:18   
Do the recently-posted test versions at http://www.bay12games.com/dwarves/ [^] fix this?
(0035527)
Witty   
2016-06-29 19:02   
For me at least, yes
(0035538)
lethosor   
2016-07-01 13:19   
I'll mark it as fixed for 0.43.05, then. If the newest test versions don't work for anyone, it would be good to let Toady know in the 0.43.04 thread, or on whatever thread is open at http://www.bay12forums.com/smf/index.php?board=10.0, [^] since that's where a lot of discussion about MSVC 2015 and 64-bit issues has taken place. You should also PM me or other manager(s) on the forum too, to have this ticket reopened.