View Issue Details

IDProjectCategoryView StatusLast Update
0006856Dwarf FortressDwarf Mode -- Embark/Setuppublic2014-07-26 00:55
ReporterFayceless Assigned Touser6 
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
Product Version0.40.01 
Summary0006856: Frequent crashes while preparing carefully
DescriptionGame crashes sometimes when pressing "v" to view or "c" to customize a dwarf.
Steps To ReproduceEnter and exit view and customize menus repeatedly - eventually it will crash.
Additional InformationI haven't been able to get an embark set up yet. I like to assign my roles carefully.
TagsNo tags attached.

Activities

Fayceless

2014-07-13 15:33

reporter   ~0026216

Last edited: 2014-07-13 15:33

This seems to be related to the turning on/off of the music. With sound disabled, the game does not crash. When it's enabled, every time you enter 'v'iew, the music turns on. This seems to randomly crash the game.

user6

2014-07-13 15:54

  ~0026223

Are you using SDL or Legacy? Does switching help?

Fayceless

2014-07-13 19:53

reporter   ~0026261

SDL, and yes, switching to Legacy prevented the crash. Playing SDL without sound also fixed it.

thewonderidiot

2014-07-26 00:55

reporter   ~0027577

Last edited: 2014-07-27 15:18

I've been having the same issue with 40.04 (SDL). Crashed three times while preparing carefully for a new fort, didn't crash after I turned off the sound.

EDIT: I've been poking at this one a bit. I can confirm that it's a null pointer dereference in fmodex.dll, from calling playSound() when (v)iewing a dwarf.

E2: corrected some info

E3: So I've spent some more time trying to track this one down. The game doesn't always crash with a null pointer; sometimes it simply locks up. When it does crash, the null pointer issue seems to move around... I've seen it happen in 4 or 5 different places. I have what seems to be the most frequent spot pretty heavily instrumented, so I can hopefully figure out where they're coming from, but at this point it's looking more and more like memory corruption (perhaps something writing over bits of the Sound, Channel, or System objects). Will update if I can catch anything in the act...

Add Note

Note

Issue History

Date Modified Username Field Change
2014-07-09 12:17 Fayceless New Issue
2014-07-13 15:33 Fayceless Note Added: 0026216
2014-07-13 15:33 Fayceless Note Edited: 0026216
2014-07-13 15:54 user6 Note Added: 0026223
2014-07-13 15:54 user6 Assigned To => user6
2014-07-13 15:54 user6 Status new => feedback
2014-07-13 19:53 Fayceless Note Added: 0026261
2014-07-13 19:53 Fayceless Status feedback => assigned
2014-07-26 00:55 thewonderidiot Note Added: 0027577
2014-07-26 11:44 thewonderidiot Note Edited: 0027577
2014-07-26 13:29 thewonderidiot Note Edited: 0027577
2014-07-27 15:18 thewonderidiot Note Edited: 0027577