Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0002328Dwarf FortressDwarf Mode -- Moodspublic2010-06-14 13:572010-06-15 08:59
SeveQ 
Footkerchief 
normalcrashhave not tried
resolvedduplicate 
x64Windows 7Professional
0.31.06 
 
0002328: Crash when looking into dwarf's mind
Yesterday I experienced a crash while I was trying to read a dwarf's mind, e.g. looking at his thoughts.
Don't know... haven't tried to reproduce yet. Hadn't got the time.
He was a miner. I designated a mine shaft to be dug out (down stairs, up/down stairs, up/down stairs and so on to a level far beneath the surface). He only dug one level and stopped working. Looking at the job list he had No Job assigned. I wanted to know what might have caused that by taking a look into his brain and the game crashed.
thoughts
duplicate of 0002215resolved Toady One Viewing a dwarf's Thoughts and Preferences causes a crash when viewed with the window maximized 
Issue History
2010-06-14 13:57SeveQNew Issue
2010-06-14 14:12FootkerchiefNote Added: 0008430
2010-06-14 14:12smjjamesTag Attached: thoughts
2010-06-14 15:11Logical2uRelationship addedrelated to 0000726
2010-06-15 08:52SeveQNote Added: 0008509
2010-06-15 08:58FootkerchiefNote Added: 0008513
2010-06-15 08:58FootkerchiefRelationship addedduplicate of 0002215
2010-06-15 08:58FootkerchiefStatusnew => resolved
2010-06-15 08:58FootkerchiefResolutionopen => duplicate
2010-06-15 08:58FootkerchiefAssigned To => Footkerchief
2010-06-15 08:59FootkerchiefRelationship deletedrelated to 0000726
2010-06-15 08:59FootkerchiefNote Edited: 0008513bug_revision_view_page.php?bugnote_id=0008513#r3256
2010-06-15 08:59FootkerchiefNote Edited: 0008513bug_revision_view_page.php?bugnote_id=0008513#r3257
2010-06-15 09:00FootkerchiefNote Edited: 0008513bug_revision_view_page.php?bugnote_id=0008513#r3258
2010-06-15 09:00FootkerchiefNote Edited: 0008513bug_revision_view_page.php?bugnote_id=0008513#r3259

Notes
(0008430)
Footkerchief   
2010-06-14 14:12   
What screen resolution and tile size are you using? If the game window is more than 200 tiles wide, it'll crash on that screen -- see 0002215.
(0008509)
SeveQ   
2010-06-15 08:52   
Ah, okay. I don't know exactly what resolution I use but it's definitely wider than 200 tiles. So that's indeed related to 0000726. But it's strange. How can a crash appearing in a certain in-game situation be related to the screen resolution? Shouldn't these two things be totally independent? Well... who am I to think about Toady's programming skills. :)
(0008513)
Footkerchief   
2010-06-15 08:58   
(edited on: 2010-06-15 09:00)
The menus are supposed to limit themselves to 200 tiles, but some of them evidently failed to enforce this, instead depending on another part of the program to enforce it. In the pre-SDL versions it was enforced by the init parser, I think, but the new auto-resizing circumvents that, so there were no safeguards. Most likely this caused an array-out-of-bounds crash.

Anyway, as noted at 0002215, it should be fixed for the upcoming release.