Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010419Dwarf FortressVegetationpublic2017-12-05 02:052018-12-21 20:30
ReporterCalmBit 
Assigned ToLoci 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSArch LinuxOS Version
Product Version0.44.02 
Target VersionFixed in Version 
Summary0010419: [HEAVY_BRANCH_RADIUS] and [BRANCH_RADIUS] cause crashes with moderate values
DescriptionI tried to create a modded tree with [HEAVY_BRANCH_RADIUS:4] and [BRANCH_RADIUS:6] - basing it off the apple tree raw file so I knew my base was solid. I was getting random crashes at the "Cleaning game objects" stage of saving - the saves stayed intact, but the game window would close, and information about failed memory freeing (in various forms depending on the crash) would be output to stderr. Generated a lot of worlds to make sure it was my tree causing the crash, along with removing the raw file to confirm. After another set of generated worlds and some tweaking, I narrowed it down to both of those lines that seem to cause issues.

The crash, additionally, only seems to happen that one time in fortress mode, with no ill effects, but makes adventure mode all but unusable.
Steps To Reproduce1. Create a custom tree raw with the following lines:

[HEAVY_BRANCH_RADIUS:4]
[BRANCH_RADIUS:6]

2. Generate a new world with the tree on the map.
3. Embark on a tile that is confirmed to have the custom tree (using a custom tile, for example)
4. Save the embark once it loads, and wait for the crash.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0037241)
Loci (manager)
2017-12-06 13:36

Reproduced crash in v0.44.02 by modding larch trees with given values.

It's worth noting that the largest value in vanilla is 3 (for saguaros), with every other plant 0-2. Applying your values to larch trees resulted in comically-deformed trees with solid blocks of heavy branches--perhaps the wiki's explanation of the 'BRANCH_RADIUS' tokens is ... inaccurate.
(0037253)
CalmBit (reporter)
2017-12-06 22:09

Suffice to say, I was really just throwing values against the wall to see what stuck, and encountered the crash in my quest to make weirdly shaped trees. The wiki's explanation is cryptic, to say the least, and indeed doesn't seem to convey the nature of the token's purpose...
(0037254)
CalmBit (reporter)
2017-12-06 22:22
edited on: 2017-12-07 16:58

Also worth noting is that I seem to have hit the upper limit of a tree that _doesn't_ immediately crash the game on embark - [BRANCH_RADIUS:7] seems to insta-crash with a similar memory freeing error.

EDIT: Additionally, if you copy/modify the saguaro raws to make [HEAVY_BRANCH_RADIUS:7], you get no such insta-crash, but the same crash upon saving.

(0039036)
Destragon (reporter)
2018-12-21 20:30

I noticed this, too, on 44.12 with [BRANCH_RADIUS:4]. I put a link to this bug on the wiki entry for the token.

- Issue History
Date Modified Username Field Change
2017-12-05 02:05 CalmBit New Issue
2017-12-06 13:36 Loci Note Added: 0037241
2017-12-06 13:36 Loci Assigned To => Loci
2017-12-06 13:36 Loci Status new => acknowledged
2017-12-06 22:09 CalmBit Note Added: 0037253
2017-12-06 22:22 CalmBit Note Added: 0037254
2017-12-07 16:58 CalmBit Note Edited: 0037254 View Revisions
2018-12-21 20:30 Destragon Note Added: 0039036


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker