Description
When opening the DimensionsCraftGUI (from Beyond Dimensions mod) or any GUI that triggers item tooltip rendering, the game crashes with ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 129.
The crash occurs inside SableMassViewClient.onItemTooltip while trying to get the mass of a block via PhysicsBlockPropertyHelper.getMass. The method is called with what appears to be an air block or an invalid block state, causing the physics helper to use an index of -1 in an internal hash map.
Stack trace (excerpt):
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.config.block_properties.PhysicsBlockPropertyHelper.getMass(...)
at com.sable.massview.SableMassViewClient.onItemTooltip(...)
Environment:
Minecraft: 1.21.1
Mod Loader: NeoForge 21.1.228
Sable: 1.2.2
SableMassView: 1.0.0
Beyond Dimensions: 0.7.16
Additional information:
The crash happens instantly when the Beyond Dimensions crafting GUI is opened (even without hovering over any item).
Game Log
Sorry, the log has been replaced by something new. I don't have the time to try again now.
Description
When opening the DimensionsCraftGUI (from Beyond Dimensions mod) or any GUI that triggers item tooltip rendering, the game crashes with ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 129.
The crash occurs inside SableMassViewClient.onItemTooltip while trying to get the mass of a block via PhysicsBlockPropertyHelper.getMass. The method is called with what appears to be an air block or an invalid block state, causing the physics helper to use an index of -1 in an internal hash map.
Stack trace (excerpt):
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.config.block_properties.PhysicsBlockPropertyHelper.getMass(...)
at com.sable.massview.SableMassViewClient.onItemTooltip(...)
Environment:
Minecraft: 1.21.1
Mod Loader: NeoForge 21.1.228
Sable: 1.2.2
SableMassView: 1.0.0
Beyond Dimensions: 0.7.16
Additional information:
The crash happens instantly when the Beyond Dimensions crafting GUI is opened (even without hovering over any item).
Game Log
Sorry, the log has been replaced by something new. I don't have the time to try again now.