
Every time a player presses the space bar the server gives an error
Teri-IM opened this issue ยท 0 comments
[18:07:06 ERROR]: Error executing task on Server
java.lang.IndexOutOfBoundsException: readerIndex(2) + length(4) exceeds writerIndex(3): PooledUnsafeDirectByteBuf(ridx: 2, widx: 3, cap: 3)
at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442) ~[netty-all-4.1.68.Final.jar%2354!/:4.1.68.Final]
at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:809) ~[netty-all-4.1.68.Final.jar%2354!/:4.1.68.Final]
at net.minecraft.network.FriendlyByteBuf.readInt(FriendlyByteBuf.java:959) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at se.mickelus.mutil.data.AbstractUpdateDataPacket.fromBytes(AbstractUpdateDataPacket.java:43) ~[mutil-1.18.2-4.5.0.jar%23177!/:4.5.0]
at se.mickelus.mutil.network.PacketHandler.lambda$registerPacket$1(PacketHandler.java:62) ~[mutil-1.18.2-4.5.0.jar%23177!/:4.5.0]
at net.minecraftforge.network.simple.IndexedMessageCodec.lambda$tryDecode$0(IndexedMessageCodec.java:107) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraftforge.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:107) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at net.minecraftforge.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:153) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at net.minecraftforge.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:72) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?]
at net.minecraftforge.network.NetworkInstance.dispatch(NetworkInstance.java:68) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at net.minecraftforge.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:79) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraftforge.network.NetworkHooks.onCustomPayload(NetworkHooks.java:79) ~[forge-1.18.2-40.2.10-universal.jar%23240!/:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.m_7423_(ServerGamePacketListenerImpl.java:2428) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:35) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:8) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:24) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:920) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:167) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:903) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:897) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:140) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:883) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:791) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:286) ~[server-1.18.2-20220404.173914-srg.jar%23235!/:?]
at java.lang.Thread.run(Thread.java:833) [?:?]