Skip to content

IllegalArgumentException in VoxelNeighborhoodState during vanilla leaf decay (server crash) #1475

Description

@ButcherKA

Context

Environment

  • Minecraft: 1.21.1
  • Mod Loader: NeoForge
  • Sable: 2.0.3

Issue
Server crashes with "Exception ticking world" when a leaf block decays/disappears near a player, shortly after that area/chunk was freshly loaded (e.g. right after a player logs in or walks into a new area). Ran fine for several hours in one session before this occurred; recurred again the next day shortly after login.

Crash trace:
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 129
at it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.rehash
at it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.insert
at it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.computeIfAbsent
at dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState$1.apply
at dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState.isSolid
at dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState.getState
at dev.ryanhcode.sable.physics.impl.rapier.RapierPhysicsPipeline.handleBlockChange
at dev.ryanhcode.sable.sublevel.system.SubLevelPhysicsSystem.handleBlockChange
at dev.ryanhcode.sable.SableCommonEvents.handleBlockChange
...caused by net.minecraft.world.level.block.LeavesBlock.tick -> Level.setBlock

Full crash report attached.

Crash Report

https://mclo.gs/XUXwnm3

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: crashSomething crashes my game

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions