AbdElAziz333 / Canary

A performance mod designed to optimize Minecraft's general performance and unofficial fork of Lithium mod for Minecraft Forge.
https://www.curseforge.com/minecraft/mc-mods/canary
GNU Lesser General Public License v3.0
41 stars 3 forks source link

Unknown incompatibility leads to changing piston state crashing the game #168

Open SiverDX opened 1 year ago

SiverDX commented 1 year ago

1.19.2 - 0.2.8

I'm assuming this does not happen on a not-so-modded client If the pistons are already in a activated state it's fine - but changing the state (to either extended or unextended) crashes the game

I did also find this: https://www.reddit.com/r/fabricmc/comments/12vuziu/game_crashes_when_piston_is_activated_due_to/

Deactivating Canary stops the crash from happening

latest.log

(...)
[01Aug2023 02:09:49.587] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception
net.minecraft.ReportedException: Exception ticking world
    at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:870) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:806) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:84) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:654) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:244) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.level.block.piston.PistonMovingBlockEntity
    at net.minecraft.world.level.block.piston.MovingPistonBlock.m_155881_(MovingPistonBlock.java:53) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.world.level.block.piston.PistonBaseBlock.m_8133_(PistonBaseBlock.java:188) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.m_60677_(BlockBehaviour.java:653) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.level.ServerLevel.m_8698_(ServerLevel.java:1034) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.level.ServerLevel.m_8807_(ServerLevel.java:1021) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:287) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:866) ~[client-1.19.2-20220805.130853-srg.jar%23839!/:?]
    ... 5 more

crash-2023-08-01_02.09.49-server.txt

SiverDX commented 1 year ago

After loading into the world:

image

Tried alloc.enum_values.piston_block=false in canary.properties, did not work: [01Aug2023 02:19:21.199] [main/WARN] [CanaryConfig/]: No configuration key exists with name 'alloc.enum_values.piston_block', ignoring

SiverDX commented 1 year ago

Manually removing the entry block.moving_block_shapes.PistonMovingBlockEntityMixin works

Regarding the config - is the syntax I used wrong? block.moving_block_shapes.PistonMovingBlockEntityMixin=false seems to not be correct

SiverDX commented 1 year ago

okay, mixin.block.moving_block_shapes was the correct one