Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0003762Dwarf FortressTrueTypepublic2010-11-30 17:512012-03-17 07:11
cptjoker 
Baughn 
normalcrashsometimes
resolvedfixed 
PCWindowsXP & Vista
0.31.18 
0.34.01 
0003762: Crash on moving (k) cursor over certain spatters with TrueType (long names?)
After killing a large uninvited guest like a minotaur, the game crashes whenever I use the main cursor (k) to look at a certain tile around the corpse, usually drenched in the creature's blood (although even when the blood disappears the bug still remains.) This happened twice with minotaurs, and once with an outside-wandering spider creature that I can't remember the name of. The game carries on fine as long as I don't move the (k) cursor over that tile. After a while the bug seems to go away (long after the corpse has disappeared.) I'm also using Ironhand's v0.494 tileset.
Kill uninvited guest like a minotaur. Move (k) cursor over one of the 8 tiles surrounding the corpse, one causes CTD. Using Ironhand v0.494 tileset.
Running Ironhand v0.494 tileset.
No tags attached.
has duplicate 0003821resolved Footkerchief Crash after killing Forgotten Beast and looking at ground near the corpse 
has duplicate 0003381resolved Dwarfu Crash when viewing item name that is too long to display on screen 
has duplicate 0003944resolved Logical2u Complete crash when using K (look around) on dropped megabeast items 
has duplicate 0004059resolved Dwarfu Crashing at random, mostly on unit inventory 
has duplicate 0003373resolved Dwarfu Animal Inventory crash 
has duplicate 0003747resolved Dwarfu crash upon inventory opening of Soldier (cannot follow orders) 
has duplicate 0004104resolved Dwarfu Bugged item selection 
has duplicate 0003385resolved Dwarfu artifact list crashes when TrueType font used 
has duplicate 0004369resolved Footkerchief Blood Spatter Causing Crashes 
has duplicate 0004383resolved Dwarfu Crash on selecting barracks with TrueType 
has duplicate 0004485resolved Footkerchief Game crashes when using expanded menu to place statues 
has duplicate 0004571resolved Logical2u Crash when viewing inventories of blood-splattered creatures 
has duplicate 0004699resolved Dwarfu Game crashes when looking at bed 
has duplicate 0004643resolved Dwarfu Viewing A Unit With Blood Spatter Kills Game 
has duplicate 0004576resolved Dwarfu Game crashes when attempting to view inventory of some military dwarves. 
has duplicate 0004598resolved Dwarfu Game crash when viewing units items or ground items (often after invasion) 
has duplicate 0004749resolved Dwarfu Everytime i kill a minotaur the game crashes and closes 
has duplicate 0004754resolved Dwarfu Any time a specific dwarf dies, the game crashes 
has duplicate 0004781resolved Logical2u Forgotten Beast makes DF crashes after killed. 
has duplicate 0004837resolved Dwarfu Using "k" on a specific tile results always to crash 
has duplicate 0004887resolved Dwarfu Crashing in Unit View 
has duplicate 0004891resolved Dwarfu Game crash when scrolling over a bed using the Q selection 
has duplicate 0004896resolved Knight Otu Crash on viewing giantess blood 
has duplicate 0004629resolved Logical2u Crash on second spout of dragonfire 
has duplicate 0003249resolved Footkerchief Crash using zoom to site feature in adventure mode quest screen. 
has duplicate 0005008resolved Footkerchief 100% reproducible CTD when viewing inventory of dwarves 
has duplicate 0003483resolved Footkerchief Certain crash when using "v" key to view certain creatures inventory. 
has duplicate 0004961resolved Footkerchief freeze/crash by overload of blood splatter in inventory on wardogs 
has duplicate 0005026resolved Footkerchief Game crashes when going into inventory 
has duplicate 0004879resolved Footkerchief Attempt to view 'z' of war dog caused segmentation fault in Linux 
related to 0003246resolved Baughn TrueType: Some dwarves' names are cut off at diacritics, other diacritics are turned into blocks 
related to 0003713resolved Baughn DF crashes when attempting to use Aimed attacks when using truetype display in Linux 
related to 0002750resolved Baughn Crash when zooming in Windowed mode (TrueType related) 
related to 0003229resolved Footkerchief Crash when navigating over a particular region of the world in preparation for embarking (TrueType) 
related to 0005446resolved Baughn Crash when using TrueType, always happens when text runs off the screen. 
Issue History
2010-11-30 17:51cptjokerNew Issue
2010-11-30 18:49FootkerchiefCategoryDwarf Mode -- Interface, Main View => Contaminants/Spatter
2010-11-30 18:49FootkerchiefSummaryCTD on moving (k) cursor near body of minotaur => Crash on moving (k) cursor over minotaur blood
2010-11-30 18:49FootkerchiefNote Added: 0014327
2010-11-30 18:49FootkerchiefNote Edited: 0014327bug_revision_view_page.php?bugnote_id=0014327#r5457
2010-12-01 07:03cptjokerNote Added: 0014341
2010-12-01 08:30FootkerchiefNote Added: 0014342
2010-12-01 08:38cptjokerNote Added: 0014344
2010-12-01 08:42FootkerchiefCategoryContaminants/Spatter => TrueType
2010-12-01 08:43FootkerchiefSummaryCrash on moving (k) cursor over minotaur blood => Crash on moving (k) cursor over minotaur blood with TrueType
2010-12-01 08:44FootkerchiefNote Added: 0014346
2010-12-01 08:51cptjokerNote Added: 0014347
2010-12-01 09:27FootkerchiefSummaryCrash on moving (k) cursor over minotaur blood with TrueType => Crash on moving (k) cursor over certain spatters with TrueType (long names?)
2010-12-10 07:54hyperactiveChipmunkNote Added: 0014499
2010-12-11 09:26FootkerchiefRelationship addedrelated to 0003806
2010-12-16 15:48FootkerchiefRelationship addedhas duplicate 0003821
2010-12-18 07:34ShunterAlhenaNote Added: 0014620
2011-02-04 08:02DwarfuRelationship addedhas duplicate 0003381
2011-02-11 08:34FootkerchiefRelationship addedhas duplicate 0003944
2011-02-11 09:04Logical2uIssue Monitored: neilarm
2011-02-20 00:20bloodtoesNote Added: 0015296
2011-02-20 00:22bloodtoesNote Edited: 0015296bug_revision_view_page.php?bugnote_id=0015296#r5787
2011-02-20 00:28bloodtoesNote Edited: 0015296bug_revision_view_page.php?bugnote_id=0015296#r5788
2011-02-23 08:25NiverasNote Added: 0015422
2011-02-23 08:48FootkerchiefRelationship addedhas duplicate 0004059
2011-02-23 09:11NiverasIssue Monitored: Niveras
2011-02-23 09:14NiverasNote Edited: 0015422bug_revision_view_page.php?bugnote_id=0015422#r5823
2011-02-26 08:41DwarfuRelationship addedhas duplicate 0003373
2011-02-26 08:41DwarfuIssue Monitored: Noctune
2011-02-26 21:03DwarfuRelationship addedhas duplicate 0003747
2011-03-01 22:39DwarfuRelationship addedhas duplicate 0004104
2011-03-01 23:42FootkerchiefSticky IssueNo => Yes
2011-03-22 10:13FootkerchiefRelationship addedrelated to 0003246
2011-03-22 15:46FootkerchiefNote Added: 0016484
2011-03-25 22:27DwarfuRelationship addedhas duplicate 0003385
2011-03-25 22:28DwarfuNote Added: 0016610
2011-03-28 01:20FootkerchiefRelationship addedhas duplicate 0004369
2011-03-28 01:20FootkerchiefIssue Monitored: dieffenbachj
2011-03-28 23:28FootkerchiefRelationship addedrelated to 0003713
2011-03-29 13:06FootkerchiefRelationship addedrelated to 0004383
2011-03-29 13:45DwarfuRelationship replacedhas duplicate 0004383
2011-03-29 13:45DwarfuIssue Monitored: agatharchides
2011-03-29 13:47DwarfuNote Added: 0016774
2011-04-07 13:28FootkerchiefRelationship addedrelated to 0004461
2011-04-09 12:15FootkerchiefRelationship addedparent of 0004485
2011-05-15 14:48Logical2uRelationship addedhas duplicate 0004571
2011-05-23 05:25BaughnNote Added: 0017825
2011-05-23 05:25BaughnStatusnew => resolved
2011-05-23 05:25BaughnFixed in Version => Next Version
2011-05-23 05:25BaughnResolutionopen => fixed
2011-05-23 05:25BaughnAssigned To => Baughn
2011-06-13 13:46DwarfuRelationship addedhas duplicate 0004699
2011-06-28 13:39DwarfuRelationship addedhas duplicate 0004643
2011-06-28 14:31DwarfuRelationship addedhas duplicate 0004576
2011-06-28 14:31DwarfuIssue Monitored: Ghosti
2011-07-08 22:51DwarfuRelationship addedhas duplicate 0004598
2011-07-12 18:43DwarfuRelationship addedhas duplicate 0004749
2011-07-28 09:42FootkerchiefRelationship addedrelated to 0004754
2011-07-28 09:51FootkerchiefRelationship addedrelated to 0004781
2011-08-17 01:41DwarfuRelationship addedhas duplicate 0004837
2011-09-10 08:27Logical2uRelationship addedrelated to 0004887
2011-09-12 00:39DwarfuRelationship addedhas duplicate 0004891
2011-09-13 14:21Knight OtuRelationship addedhas duplicate 0004896
2011-11-29 12:20FootkerchiefRelationship addedrelated to 0004972
2011-11-29 12:26FootkerchiefRelationship addedrelated to 0004961
2011-12-10 09:35Logical2uRelationship addedrelated to 0002750
2011-12-10 09:36Logical2uRelationship addedhas duplicate 0004629
2011-12-10 09:37Logical2uRelationship replacedhas duplicate 0004781
2011-12-11 09:32DwarfuRelationship replacedhas duplicate 0004887
2011-12-11 09:32DwarfuIssue Monitored: nDomenique
2011-12-11 16:00DwarfuRelationship addedrelated to 0003249
2012-01-06 18:35FootkerchiefRelationship addedhas duplicate 0005008
2012-01-07 23:03DwarfuRelationship addedparent of 0003229
2012-01-07 23:03DwarfuRelationship replacedrelated to 0003229
2012-01-20 10:40FootkerchiefRelationship addedrelated to 0003483
2012-01-20 10:40FootkerchiefRelationship deletedrelated to 0004961
2012-01-20 10:42FootkerchiefRelationship deletedrelated to 0003806
2012-01-20 10:42FootkerchiefRelationship replacedrelated to 0004485
2012-01-20 10:43FootkerchiefRelationship replacedhas duplicate 0004754
2012-01-20 10:43FootkerchiefRelationship deletedrelated to 0004461
2012-02-02 09:14FootkerchiefStatusresolved => assigned
2012-02-02 09:15FootkerchiefIssue Monitored: Quietust
2012-02-02 09:15FootkerchiefNote Added: 0019454
2012-02-02 11:31QuietustNote Added: 0019455
2012-02-02 11:43QuietustNote Edited: 0019455bug_revision_view_page.php?bugnote_id=0019455#r7291
2012-02-02 17:17QuietustIssue End Monitor: Quietust
2012-02-06 08:07FootkerchiefStatusassigned => resolved
2012-02-14 17:05FootkerchiefRelationship replacedhas duplicate 0003249
2012-02-19 15:52FootkerchiefRelationship replacedhas duplicate 0003483
2012-02-19 15:52FootkerchiefIssue Monitored: Knight Otu
2012-02-19 15:53FootkerchiefRelationship addedhas duplicate 0004961
2012-02-19 15:53FootkerchiefRelationship addedhas duplicate 0005026
2012-02-19 15:53FootkerchiefIssue Monitored: Durithill
2012-02-28 07:25FootkerchiefRelationship addedrelated to 0005446
2012-03-17 07:11DwarfuSticky IssueYes => No
2012-03-30 06:50FootkerchiefRelationship replacedhas duplicate 0004485
2014-07-22 10:53FootkerchiefRelationship deletedrelated to 0004972
2015-01-06 12:00FootkerchiefRelationship addedhas duplicate 0004879
2015-01-06 12:00FootkerchiefIssue Monitored: rawrmage

Notes
(0014327)
Footkerchief   
2010-11-30 18:49   
Are you using TrueType? Does the crash still occur if you move the save into a vanilla install of DF?

(0014341)
cptjoker   
2010-12-01 07:03   
Yes, I have been using TrueType; and no, the bug does not occur in a vanilla install of DF v31.18.
(0014342)
Footkerchief   
2010-12-01 08:30   
Hmm, does it still crash if you just disable TrueType in your custom install?
(0014344)
cptjoker   
2010-12-01 08:38   
Nope, turning TT off seems to fix the bug.
(0014346)
Footkerchief   
2010-12-01 08:44   
Thanks for investigating. Does the minotaur have an unusually long name or anything like that?
(0014347)
cptjoker   
2010-12-01 08:51   
No, I don't think so. And I don't think it's limited to minotaur blood, as I originally thought, since I just had a battle with goblins and trolls and some of their bloody remains are also causing tiles to CTD - but there's nothing really consistent about which blood spatters or smears cause it. The only thing I can really observe is that the tiles seem to have five or six different blood spatters on them, and the blood owners (mostly dwarven) appear to have rather long names.
(0014499)
hyperactiveChipmunk   
2010-12-10 07:54   
I notice this happening with what seems to be certain diacritic characters, depending on the font used. The problem is associated with viewing blood spatters most often, but that's only because that's the only time during normal run-of-play in which the game is asked to render the individual names of certain creatures with TrueType fonts.

With respect to this, I have found the open-source Gentium font best for handling nearly all the characters that it's asked to display, with only very few characters that trigger the "Nonexistent texture data" crash. However, there is still at least one character that even it crashes with, which I can narrow down to a certain page on the list of blood attached to a tame hoary marmot in my fortress. I'll attach a screenshot of the non-TrueType version as soon as I'm able.
(0014620)
ShunterAlhena   
2010-12-18 07:34   
I also have this issue. Fresh DF, fresh world, Ironhand charset (current newest), and using "k" while in run-mode (as opposed to being paused) causes reproducible instant crash.

Turning off TrueType fixes the issue.
(0015296)
bloodtoes   
2011-02-20 00:20   
(edited on: 2011-02-20 00:28)
I am adding this for the sole purpose of contributing more info since in my case, the crash occurred with (v) view unit, rather than (k) look around.

I received this crash with 31.18 and .19, on mac and windows. It happens immediately upon viewing the inventory of a specific dwarf. Turning off TTF resolved it. The font I was using was Anonymous Pro Bold Italic from http://www.ms-studio.com/FontSales/anonymouspro.html [^] (it's a free font).

The dwarf's inventory:

(warthog leather trousers), Lower body
(giant cave spider silk dress), Upper body
(elk bird leather robe), Upper body
(pig tail fiber cloak), Upper body
(cat leather cap), Head
(pig tail fiber hood), Head
(cheetah leather left glove), Left hand
(leopard leather left glove), Left hand
(pig tail fiber left mitten), Left hand
(cheetah leather right glove), Right hand
(cheetah leather right glove), Right hand
(pig tail fiber right mitten), Right hand
*spiny dogfish leather waterskin*, (giant cave spider

In vanilla, the display cuts off there.

ETA: The above mentioned Genitum font allowed me to view the inventory without crash, and the complete text of the final entry is "*spiny dogfish leather waterskin*, (giant cave spider silk dress)"

(0015422)
Niveras   
2011-02-23 08:25   
(edited on: 2011-02-23 09:14)
I am experiencing a crash when attempting to loo'k' at a huge pool of contaminants. Some blood pools belong to dwarves with titles awarded by kills, making them a few characters longer than the rest. The crash also occurs intermittently when attempting to 'v'iew certain dwarves, though I am not certain if that is also due to contaminants or, as bloodtoes shows, simply a long entry due to stacked equipment.

My initial belief is that it was caused purely by fixed width fonts. This held true when using AnonymousPro-Bold (linked by bloodtoes), my default CourierNew-Bold, and additionally FixedSys provided by default in Windows. It did not crash when using Ironhand's Liberation, DF's original Droid, or Ebrima (a random non-fixed width provided by Windows). However, I found that I could view the pool of contaminants even with the fixed width fonts if I did not maximize the DF window (through double clicking the title bar). Testing further, I found that if I left DF to determine the size of the window (WINDOWED:YES, GRAPHICS_WINDOWEDX:0, GRAPHICS_WINDOWEDY:0), I could view the pool with any kind of font. If I resized the window in any way (manually dragging the borders, WINDOWED:NO, GRAPHICS_WINDOWEDX:80, GRAPHICS_WINDOWEDY:64, maximizing the window via title bar), viewing the pool with a fixed width font would cause a crash. Turning off graphics (but leaving TTF enabled and using any kind of font) would allow me to loo'k' at the pool without crashing, even if I changed the size of the game window.

(0016484)
Footkerchief   
2011-03-22 15:46   
Saves:
0003381: http://dl.dropbox.com/u/877292/region1.zip [^]
0003373: http://www.mediafire.com/?bfdbmwgsjxstwbw [^]
0003747: http://dffd.wimbli.com/file.php?id=3493 [^]
0004104: http://dffd.wimbli.com/file.php?id=3877 [^]
(0016610)
Dwarfu   
2011-03-25 22:28   
Save from 0003385 with TrueType crash on the artifact list:
http://dffd.wimbli.com/file.php?id=3235 [^]
(0016774)
Dwarfu   
2011-03-29 13:47   
Save from 0004383 with TrueType crash on selection 'q' of barracks:
http://dffd.wimbli.com/file.php?id=4073 [^]
(0017825)
Baughn   
2011-05-23 05:25   
I fixed this some time ago; it was a case of signed (char) overflow in array dereferencing. It'll be fine next release.
(0019454)
Footkerchief   
2012-02-02 09:15   
Reminder sent to: Quietust

I've changed the status on this bug to allow you to post the binary patch info.
(0019455)
Quietust   
2012-02-02 11:31   
(edited on: 2012-02-02 11:43)
Binary patch for Win32 DF 0.31.25 SDL:
2F063F : BE -> B6
2F07DD : BE -> B6

Binary patch for Linux DF 0.31.25 (libgraphics.so):
EB641 : BE -> B6
EBE51 : BE -> B6