Skip to content

Fabric 1.21.1 crash when felling larger branching trees (FallingTreeEntityModelFabric#getBottomRingQuads ArrayIndexOutOfBoundsException) #1172

@mhildom

Description

@mhildom

I am consistently able to reproduce a crash on a completely fresh Fabric 1.21.1 instance using only Dynamic Trees and its required dependencies.

The crash appears to happen specifically when felling larger trees that begin generating thicker/branching trunk structures.

Environment
Minecraft: 1.21.1
Loader: Fabric

Dynamic Trees: 1.7.0-BETA1
Forge Config API Port: 21.1.6

No other gameplay/content mods installed

Reproduction

  1. Create a fresh Fabric 1.21.1 instance
  2. Install:
  • Dynamic Trees Fabric 1.7.0-BETA1
  • Forge Config API Port
  1. Generate/load a world
  2. Find or grow a larger Dynamic Trees tree (especially ones with visible trunk branching/root structures)
  3. Fell the tree

Result

Game crashes during rendering of the falling tree entity.

Crash log:
[mclo.gs crash log]
https://mclo.gs/f4MYyz5

Relevant section:

Description: Rendering entity in world

java.lang.ArrayIndexOutOfBoundsException: Index 10 out of bounds for length 8

at com.dtteam.dynamictrees.model.FallingTreeEntityModelFabric.getBottomRingQuads

The crashing entity is:

Entity Type: dynamictrees:falling_tree
Notes
I initially encountered this while developing a separate addon mod, but reproduced it on a completely clean instance with no addon mods installed.
Smaller trees seem fine most of the time.
Larger trees with branching/thicker bases appear much more likely to trigger the issue.

Example of the type of tree structure that tends to cause it:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions