View Issue Details

IDProjectCategoryView StatusLast Update
0003762Dwarf FortressTrueTypepublic2012-03-17 07:11
Reportercptjoker Assigned ToBaughn  
PrioritynormalSeveritycrashReproducibilitysometimes
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS VersionXP & Vista
Product Version0.31.18 
Fixed in Version0.34.01 
Summary0003762: Crash on moving (k) cursor over certain spatters with TrueType (long names?)
DescriptionAfter 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.
Steps To ReproduceKill 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.
Additional InformationRunning Ironhand v0.494 tileset.
TagsNo tags attached.

Relationships

has duplicate 0003821 resolveduser6 Crash after killing Forgotten Beast and looking at ground near the corpse 
has duplicate 0003381 resolveduser11 Crash when viewing item name that is too long to display on screen 
has duplicate 0003944 resolvedLogical2u Complete crash when using K (look around) on dropped megabeast items 
has duplicate 0004059 resolveduser11 Crashing at random, mostly on unit inventory 
has duplicate 0003373 resolveduser11 Animal Inventory crash 
has duplicate 0003747 resolveduser11 crash upon inventory opening of Soldier (cannot follow orders) 
has duplicate 0004104 resolveduser11 Bugged item selection 
has duplicate 0003385 resolveduser11 artifact list crashes when TrueType font used 
has duplicate 0004369 resolveduser6 Blood Spatter Causing Crashes 
has duplicate 0004383 resolveduser11 Crash on selecting barracks with TrueType 
has duplicate 0004485 resolveduser6 Game crashes when using expanded menu to place statues 
has duplicate 0004571 resolvedLogical2u Crash when viewing inventories of blood-splattered creatures 
has duplicate 0004699 resolveduser11 Game crashes when looking at bed 
has duplicate 0004643 resolveduser11 Viewing A Unit With Blood Spatter Kills Game 
has duplicate 0004576 resolveduser11 Game crashes when attempting to view inventory of some military dwarves. 
has duplicate 0004598 resolveduser11 Game crash when viewing units items or ground items (often after invasion) 
has duplicate 0004749 resolveduser11 Everytime i kill a minotaur the game crashes and closes 
has duplicate 0004754 resolveduser11 Any time a specific dwarf dies, the game crashes 
has duplicate 0004781 resolvedLogical2u Forgotten Beast makes DF crashes after killed. 
has duplicate 0004837 resolveduser11 Using "k" on a specific tile results always to crash 
has duplicate 0004887 resolveduser11 Crashing in Unit View 
has duplicate 0004891 resolveduser11 Game crash when scrolling over a bed using the Q selection 
has duplicate 0004896 resolveduser1294 Crash on viewing giantess blood 
has duplicate 0004629 resolvedLogical2u Crash on second spout of dragonfire 
has duplicate 0003249 resolveduser6 Crash using zoom to site feature in adventure mode quest screen. 
has duplicate 0005008 resolveduser6 100% reproducible CTD when viewing inventory of dwarves 
has duplicate 0003483 resolveduser6 Certain crash when using "v" key to view certain creatures inventory. 
has duplicate 0004961 resolveduser6 freeze/crash by overload of blood splatter in inventory on wardogs 
has duplicate 0005026 resolveduser6 Game crashes when going into inventory 
has duplicate 0004879 resolveduser6 Attempt to view 'z' of war dog caused segmentation fault in Linux 
related to 0003246 resolvedBaughn TrueType: Some dwarves' names are cut off at diacritics, other diacritics are turned into blocks 
related to 0003713 resolvedBaughn DF crashes when attempting to use Aimed attacks when using truetype display in Linux 
related to 0002750 resolvedBaughn Crash when zooming in Windowed mode (TrueType related) 
related to 0003229 resolveduser6 Crash when navigating over a particular region of the world in preparation for embarking (TrueType) 
related to 0005446 resolvedBaughn Crash when using TrueType, always happens when text runs off the screen. 

Activities

user6

2010-11-30 18:49

  ~0014327

Last edited: 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?

cptjoker

2010-12-01 07:03

reporter   ~0014341

Yes, I have been using TrueType; and no, the bug does not occur in a vanilla install of DF v31.18.

user6

2010-12-01 08:30

  ~0014342

Hmm, does it still crash if you just disable TrueType in your custom install?

cptjoker

2010-12-01 08:38

reporter   ~0014344

Nope, turning TT off seems to fix the bug.

user6

2010-12-01 08:44

  ~0014346

Thanks for investigating. Does the minotaur have an unusually long name or anything like that?

cptjoker

2010-12-01 08:51

reporter   ~0014347

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.

hyperactiveChipmunk

2010-12-10 07:54

reporter   ~0014499

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.

ShunterAlhena

2010-12-18 07:34

reporter   ~0014620

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.

bloodtoes

2011-02-20 00:20

reporter   ~0015296

Last edited: 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)"

Niveras

2011-02-23 08:25

reporter   ~0015422

Last edited: 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.

user6

2011-03-22 15:46

  ~0016484

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

user11

2011-03-25 22:28

  ~0016610

Save from 0003385 with TrueType crash on the artifact list:
http://dffd.wimbli.com/file.php?id=3235

user11

2011-03-29 13:47

  ~0016774

Save from 0004383 with TrueType crash on selection 'q' of barracks:
http://dffd.wimbli.com/file.php?id=4073

Baughn

2011-05-23 05:25

manager   ~0017825

I fixed this some time ago; it was a case of signed (char) overflow in array dereferencing. It'll be fine next release.

user6

2012-02-02 09:15

  ~0019454

Reminder sent to: Quietust

I've changed the status on this bug to allow you to post the binary patch info.

Quietust

2012-02-02 11:31

reporter   ~0019455

Last edited: 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

Issue History

Date Modified Username Field Change
2010-11-30 17:51 cptjoker New Issue
2010-11-30 18:49 user6 Category Dwarf Mode -- Interface, Main View => Contaminants/Spatter
2010-11-30 18:49 user6 Summary CTD on moving (k) cursor near body of minotaur => Crash on moving (k) cursor over minotaur blood
2010-11-30 18:49 user6 Note Added: 0014327
2010-11-30 18:49 user6 Note Edited: 0014327
2010-12-01 07:03 cptjoker Note Added: 0014341
2010-12-01 08:30 user6 Note Added: 0014342
2010-12-01 08:38 cptjoker Note Added: 0014344
2010-12-01 08:42 user6 Category Contaminants/Spatter => TrueType
2010-12-01 08:43 user6 Summary Crash on moving (k) cursor over minotaur blood => Crash on moving (k) cursor over minotaur blood with TrueType
2010-12-01 08:44 user6 Note Added: 0014346
2010-12-01 08:51 cptjoker Note Added: 0014347
2010-12-01 09:27 user6 Summary Crash 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:54 hyperactiveChipmunk Note Added: 0014499
2010-12-11 09:26 user6 Relationship added related to 0003806
2010-12-16 15:48 user6 Relationship added has duplicate 0003821
2010-12-18 07:34 ShunterAlhena Note Added: 0014620
2011-02-04 08:02 user11 Relationship added has duplicate 0003381
2011-02-11 08:34 user6 Relationship added has duplicate 0003944
2011-02-20 00:20 bloodtoes Note Added: 0015296
2011-02-20 00:22 bloodtoes Note Edited: 0015296
2011-02-20 00:28 bloodtoes Note Edited: 0015296
2011-02-23 08:25 Niveras Note Added: 0015422
2011-02-23 08:48 user6 Relationship added has duplicate 0004059
2011-02-23 09:14 Niveras Note Edited: 0015422
2011-02-26 08:41 user11 Relationship added has duplicate 0003373
2011-02-26 21:03 user11 Relationship added has duplicate 0003747
2011-03-01 22:39 user11 Relationship added has duplicate 0004104
2011-03-01 23:42 user6 Sticky Issue No => Yes
2011-03-22 10:13 user6 Relationship added related to 0003246
2011-03-22 15:46 user6 Note Added: 0016484
2011-03-25 22:27 user11 Relationship added has duplicate 0003385
2011-03-25 22:28 user11 Note Added: 0016610
2011-03-28 01:20 user6 Relationship added has duplicate 0004369
2011-03-28 23:28 user6 Relationship added related to 0003713
2011-03-29 13:06 user6 Relationship added related to 0004383
2011-03-29 13:45 user11 Relationship replaced has duplicate 0004383
2011-03-29 13:47 user11 Note Added: 0016774
2011-04-07 13:28 user6 Relationship added related to 0004461
2011-04-09 12:15 user6 Relationship added parent of 0004485
2011-05-15 14:48 Logical2u Relationship added has duplicate 0004571
2011-05-23 05:25 Baughn Note Added: 0017825
2011-05-23 05:25 Baughn Status new => resolved
2011-05-23 05:25 Baughn Fixed in Version => Next Version
2011-05-23 05:25 Baughn Resolution open => fixed
2011-05-23 05:25 Baughn Assigned To => Baughn
2011-06-13 13:46 user11 Relationship added has duplicate 0004699
2011-06-28 13:39 user11 Relationship added has duplicate 0004643
2011-06-28 14:31 user11 Relationship added has duplicate 0004576
2011-07-08 22:51 user11 Relationship added has duplicate 0004598
2011-07-12 18:43 user11 Relationship added has duplicate 0004749
2011-07-28 09:42 user6 Relationship added related to 0004754
2011-07-28 09:51 user6 Relationship added related to 0004781
2011-08-17 01:41 user11 Relationship added has duplicate 0004837
2011-09-10 08:27 Logical2u Relationship added related to 0004887
2011-09-12 00:39 user11 Relationship added has duplicate 0004891
2011-09-13 14:21 user1294 Relationship added has duplicate 0004896
2011-11-29 12:20 user6 Relationship added related to 0004972
2011-11-29 12:26 user6 Relationship added related to 0004961
2011-12-10 09:35 Logical2u Relationship added related to 0002750
2011-12-10 09:36 Logical2u Relationship added has duplicate 0004629
2011-12-10 09:37 Logical2u Relationship replaced has duplicate 0004781
2011-12-11 09:32 user11 Relationship replaced has duplicate 0004887
2011-12-11 16:00 user11 Relationship added related to 0003249
2012-01-06 18:35 user6 Relationship added has duplicate 0005008
2012-01-07 23:03 user11 Relationship added parent of 0003229
2012-01-07 23:03 user11 Relationship replaced related to 0003229
2012-01-20 10:40 user6 Relationship added related to 0003483
2012-01-20 10:40 user6 Relationship deleted related to 0004961
2012-01-20 10:42 user6 Relationship deleted related to 0003806
2012-01-20 10:42 user6 Relationship replaced related to 0004485
2012-01-20 10:43 user6 Relationship replaced has duplicate 0004754
2012-01-20 10:43 user6 Relationship deleted related to 0004461
2012-02-02 09:14 user6 Status resolved => assigned
2012-02-02 09:15 user6 Note Added: 0019454
2012-02-02 11:31 Quietust Note Added: 0019455
2012-02-02 11:43 Quietust Note Edited: 0019455
2012-02-06 08:07 user6 Status assigned => resolved
2012-02-14 17:05 user6 Relationship replaced has duplicate 0003249
2012-02-19 15:52 user6 Relationship replaced has duplicate 0003483
2012-02-19 15:53 user6 Relationship added has duplicate 0004961
2012-02-19 15:53 user6 Relationship added has duplicate 0005026
2012-02-28 07:25 user6 Relationship added related to 0005446
2012-03-17 07:11 user11 Sticky Issue Yes => No
2012-03-30 06:50 user6 Relationship replaced has duplicate 0004485
2014-07-22 10:53 user6 Relationship deleted related to 0004972
2015-01-06 12:00 user6 Relationship added has duplicate 0004879