View Issue Details

IDProjectCategoryView StatusLast Update
0010419Dwarf FortressVegetationpublic2018-12-21 20:30
ReporterCalmBit Assigned ToLoci  
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
OSArch Linux 
Product Version0.44.02 
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.

Activities

Loci

2017-12-06 13:36

viewer   ~0037241

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.

CalmBit

2017-12-06 22:09

reporter   ~0037253

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...

CalmBit

2017-12-06 22:22

reporter   ~0037254

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

Destragon

2018-12-21 20:30

reporter   ~0039036

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.

Add Note

Note

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
2018-12-21 20:30 Destragon Note Added: 0039036