View Issue Details

IDProjectCategoryView StatusLast Update
0012813Dwarf FortressTechnical -- Saving/Loadingpublic2024-08-22 22:20
ReporterCelarious Assigned To 
PriorityhighSeveritycrashReproducibilitysometimes
Status newResolutionopen 
PlatformPCOSWindowsOS VersionWindows 10
Product Version51.01-beta 
Summary0012813: (v51.01 b13) [Adv Mode] Occasional game hang when using "Quit without saving"
DescriptionOn the latest Beta, within Adventure Mode, sometimes the game full-hangs when using the Quit without saving function.

The graphics unload and become black, but the interface completely freezes, the game stops responding to inputs, and never returns to the main menu. Sounds continue playing. This hang is permanent, and the game process must be killed from Task Manager to close it in this state. Because of this, I have set the severity to crash.

I created a dump file of the process while it was hanging. The important lines are:

00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!NtWaitForAlertByThreadId+0x14
00007ff6`449c6af8 00007ff6`449c6aa8 00007ff6`449c6aa8 00007ffd`e0e827ac : ntdll!RtlSleepConditionVariableSRW+0x131
00000000`c00000bb 00000000`00000000 00001ac2`bc2a0202 00007ff6`449c6a30 : KERNELBASE!SleepConditionVariableSRW+0x29
00007ff6`449c6920 00007ff6`449c6920 00000007`0df6f7b9 00007ff6`449c6aa8 : msvcp140!_Cnd_wait+0x2d
00000007`0df6f7b9 00007ff6`449c6920 00007ff6`449c6920 00000000`00000000 : Dwarf_Fortress!std::_Init_locks::operator=+0x76ff69
00000001`00000002 00000000`00000001 00007ff6`449c6920 00000000`001c411a : Dwarf_Fortress!std::_Init_locks::operator=+0x7706dc
00000000`00000000 00000000`00000000 00000000`0000000b 00007ff6`43edce60 : Dwarf_Fortress!std::_Init_locks::operator=+0x770e90
00000000`00000001 00000196`00000000 7fffffff`ffffffff 00000000`00000000 : Dwarf_Fortress!std::_Init_locks::operator=+0x771468
00000196`d3eb9468 00000000`00000050 00000196`d3eb9468 00000000`00000000 : Dwarf_Fortress!std::_Init_locks::operator=+0x771c9b
00000000`00000001 00000000`0000b680 00000000`0000000a 00000196`d3d00000 : Dwarf_Fortress!std::_Init_locks::operator=+0x12be782
00000000`00000000 00000000`00000000 00000000`00000000 00007ffd`c0d10000 : Dwarf_Fortress!std::_Init_locks::operator=+0x12bde4e
00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21

Here is a related screenshot of the different threads within the file: https://i.imgur.com/N8GVJiu.png

I can also upload the DMP file if necessary. It is 2.5GB because it is a full process dump.
Steps To Reproduce1. Load into an existing adventure mode character.
2. Immediately select "Quit without saving"
3. Done
Tagsadventure mode, beta, crash, hang, load, save

Activities

Celarious

2024-04-21 15:34

reporter   ~0042183

Just wanted to add that this just happened again: https://i.imgur.com/OoeXh2w.png

This seems to be be caused by frequently quitting/loading a save, AKA when you savescum and reload a lot, as that's when I've seen it happen most

Because the game technically never fully crashes, it just hangs, there's no crashlog.txt I can provide. I hope the lines from the dump file is enough

Celarious

2024-04-23 15:50

reporter   ~0042192

So this just happened to me again but this time it fully crashed the game, here is the crashlog.txt:

0> Dwarf_Fortress!std::_Init_locks::operator=+0x93F536
1> Dwarf_Fortress!std::_Init_locks::operator=+0x93F6A9
2> KERNELBASE!UnhandledExceptionFilter+0x1E7
3> ntdll!memset+0x13B0
4> ntdll!_C_specific_handler+0x96
5> ntdll!_chkstk+0x11F
6> ntdll!RtlRaiseException+0x484
7> ntdll!RtlRaiseException+0x1D7
8> KERNELBASE!RaiseException+0x69
9> VCRUNTIME140!CxxThrowException+0x97
10> Dwarf_Fortress!std::_Init_locks::operator=+0x12C04E7
11> Dwarf_Fortress!std::_Init_locks::operator=+0x12BF525
12> Dwarf_Fortress!std::_Init_locks::operator=+0x1FE
13> Dwarf_Fortress!std::_Init_locks::operator=+0x3F7067
14> Dwarf_Fortress!std::_Init_locks::operator=+0x3F900E
15> Dwarf_Fortress!std::_Init_locks::operator=+0x6A610D
16> Dwarf_Fortress!std::_Init_locks::operator=+0xA500DB
17> Dwarf_Fortress!std::_Init_locks::operator=+0x772334
18> Dwarf_Fortress!std::_Init_locks::operator=+0x773669
19> SDL2!SDL_DYNAPI_entry+0x799D7
20> SDL2!SDL_DYNAPI_entry+0x12EEDE
21> ucrtbase!configthreadlocale+0x92
22> KERNEL32!BaseThreadInitThunk+0x14
23> ntdll!RtlUserThreadStart+0x21

Add Note

Note

Issue History

Date Modified Username Field Change
2024-04-21 12:12 Celarious New Issue
2024-04-21 12:12 Celarious Tag Attached: adventure mode
2024-04-21 12:12 Celarious Tag Attached: beta
2024-04-21 12:12 Celarious Tag Attached: crash
2024-04-21 12:12 Celarious Tag Attached: hang
2024-04-21 12:12 Celarious Tag Attached: load
2024-04-21 12:12 Celarious Tag Attached: save
2024-04-21 15:34 Celarious Note Added: 0042183
2024-04-23 15:50 Celarious Note Added: 0042192
2024-08-22 22:20 lethosor Product Version 50.11 => 51.01-beta