Skip to content

Crash: java.lang.ArrayIndexOutOfBoundsException in VoxelNeighborhoodState during block update #1484

Description

@Roostyk

Context

Description:
The game crashes during world tick when a block state changes, throwing an ArrayIndexOutOfBoundsException in VoxelNeighborhoodState.
Crash Report Snippet:

Time: 2026-08-18 11:50:19
Description: Exception ticking world
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1025
	at MC-BOOTSTRAP/it.unimi.dsi.fastutil@8.5.12/it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.rehash(Int2BooleanOpenHashMap.java:1335)
	at MC-BOOTSTRAP/it.unimi.dsi.fastutil@8.5.12/it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.insert(Int2BooleanOpenHashMap.java:257)
	at MC-BOOTSTRAP/it.unimi.dsi.fastutil@8.5.12/it.unimi.dsi.fastutil.ints.Int2BooleanOpenHashMap.computeIfAbsent(Int2BooleanOpenHashMap.java:456)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState$1.apply(VoxelNeighborhoodState.java:31)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState$1.apply(VoxelNeighborhoodState.java:26)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState.isSolid(VoxelNeighborhoodState.java:66)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.physics.chunk.VoxelNeighborhoodState.getState(VoxelNeighborhoodState.java:84)
	at TRANSFORMER/sable_rapier@1.21.1-2.0.3/dev.ryanhcode.sable.physics.impl.rapier.RapierPhysicsPipeline.handleBlockChange(RapierPhysicsPipeline.java:402)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.sublevel.system.SubLevelPhysicsSystem.handleBlockChange(SubLevelPhysicsSystem.java:472)
	at TRANSFORMER/sable@2.0.3/dev.ryanhcode.sable.SableCommonEvents.handleBlockChange(SableCommonEvents.java:91)
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.chunk.LevelChunk.wrapOperation$ikc000$sable$setBlockState(LevelChunk.java:5802)
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.chunk.LevelChunk.setBlockState(LevelChunk.java:249)
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.Level.setBlock(Level.java:236)
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.Level.setBlock(Level.java:212)
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.block.FireBlock.tick(FireBlock.java:174)```

[crash-2026-08-18_11.50.19-server.txt](https://github.com/user-attachments/files/31172704/crash-2026-08-18_11.50.19-server.txt)

### Crash Report

https://mclo.gs/fig0Qnz

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