Blueprint

Blueprint

72M Downloads

Update Entity Data cause crash " Failed decoding custom payload "

Eurym3d0n opened this issue ยท 2 comments

commented

Hello,

When I'm use Bow with enchant " Infinite " my server disconnect me with message: " [02:58:33] [Render thread/WARN] [minecraft/ClientCommonPacketListenerImpl]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:custom_payload' ".

If you look at the logs, you can see that:

  • Caused by: java.lang.RuntimeException: Failed decoding custom payload blueprint:update_entity_data: java.lang.IndexOutOfBoundsException: readerIndex(34) + length(4) exceeds writerIndex(35): PooledUnsafeDirectByteBuf(ridx: 34, widx: 35, cap: 35)
  • Caused by: java.lang.IndexOutOfBoundsException: readerIndex(34) + length(4) exceeds writerIndex(35): PooledUnsafeDirectByteBuf(ridx: 34, widx: 35, cap: 35)

I suspect this file was the cause of the crash: https://github.com/team-abnormals/blueprint/blob/1.21.x/src/main/java/com/teamabnormals/blueprint/common/network/entity/UpdateEntityDataPayload.java

Do you have any idea to fix the problem?

[02:58:32] [Netty Client IO #16/ERROR] [minecraft/Connection]: Exception caught in connection
io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:custom_payload'
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.decode(IdDispatchCodec.java:38) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.decode(IdDispatchCodec.java:14) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.PacketDecoder.decode(PacketDecoder.java:31) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:computing_frames,re:classloading}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.flow.FlowControlHandler.dequeue(FlowControlHandler.java:202) ~[netty-handler-4.1.97.Final.jar%23140!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.flow.FlowControlHandler.channelRead(FlowControlHandler.java:164) ~[netty-handler-4.1.97.Final.jar%23140!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:333) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:454) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {re:computing_frames,re:mixin}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.97.Final.jar%23138!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[netty-handler-4.1.97.Final.jar%23140!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.97.Final.jar%23144!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.97.Final.jar%23139!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.97.Final.jar%23139!/:4.1.97.Final] {}
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}
Caused by: java.lang.RuntimeException: Failed decoding custom payload blueprint:update_entity_data: java.lang.IndexOutOfBoundsException: readerIndex(34) + length(4) exceeds writerIndex(35): PooledUnsafeDirectByteBuf(ridx: 34, widx: 35, cap: 35)
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.common.custom.CustomPacketPayload$1.decode(CustomPacketPayload.java:55) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.common.custom.CustomPacketPayload$1.decode(CustomPacketPayload.java:29) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$4.decode(StreamCodec.java:76) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.decode(StreamCodec.java:91) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.decode(StreamCodec.java:87) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.decode(IdDispatchCodec.java:36) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
... 40 more
Caused by: java.lang.IndexOutOfBoundsException: readerIndex(34) + length(4) exceeds writerIndex(35): PooledUnsafeDirectByteBuf(ridx: 34, widx: 35, cap: 35)
at MC-BOOTSTRAP/[email protected]/io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442) ~[netty-buffer-4.1.97.Final.jar%23137!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:809) ~[netty-buffer-4.1.97.Final.jar%23137!/:4.1.97.Final] {}
at MC-BOOTSTRAP/[email protected]/io.netty.buffer.AbstractByteBuf.readFloat(AbstractByteBuf.java:856) ~[netty-buffer-4.1.97.Final.jar%23137!/:4.1.97.Final] {}
at TRANSFORMER/[email protected]/net.minecraft.network.FriendlyByteBuf.readFloat(FriendlyByteBuf.java:1195) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:mixin,re:classloading,pl:mixin:APP:owo.mixins.json:PacketByteBufMixin from mod owo,pl:mixin:APP:packetfixer.v1_20_5.neoforge.mixins.json:v1_20_5_neoforge.FriendlyByteBufMixin from mod packetfixer,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$8.decode(ByteBufCodecs.java:110) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$8.decode(ByteBufCodecs.java:108) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/com.teamabnormals.blueprint.common.world.storage.tracking.IDataManager$DataEntry.readValue(IDataManager.java:199) ~[blueprint-1.21.1-8.0.5.jar%23627!/:8.0.5] {re:mixin,re:classloading}
at TRANSFORMER/[email protected]/com.teamabnormals.blueprint.common.world.storage.tracking.IDataManager$DataEntry.read(IDataManager.java:110) ~[blueprint-1.21.1-8.0.5.jar%23627!/:8.0.5] {re:mixin,re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$1.decode(StreamCodec.java:20) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$21.decode(ByteBufCodecs.java:364) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.ByteBufCodecs$21.decode(ByteBufCodecs.java:358) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$8.decode(StreamCodec.java:150) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.common.custom.CustomPacketPayload$1.decode(CustomPacketPayload.java:53) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.network.protocol.common.custom.CustomPacketPayload$1.decode(CustomPacketPayload.java:29) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:mixin,re:classloading,pl:mixin:A}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$4.decode(StreamCodec.java:76) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.decode(StreamCodec.java:91) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.StreamCodec$5.decode(StreamCodec.java:87) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
at TRANSFORMER/[email protected]/net.minecraft.network.codec.IdDispatchCodec.decode(IdDispatchCodec.java:36) ~[client-1.21.1-20240808.144430-srg.jar%23572!/:?] {re:classloading}
... 40 more
[02:58:33] [Netty Client IO #16/ERROR] [minecraft/CrashReport]: Negative index in crash report handler (41/45)
[02:58:33] [Netty Client IO #16/FATAL] [ne.ne.ne.co.NeoForgeMod/]: Preparing crash report with UUID f7fdf158-ac73-4af8-8b59-3180e842ced8
[02:58:33] [Render thread/INFO] [me.je.li.st.JeiStarter/]: Stopping JEI
[02:58:33] [Render thread/INFO] [me.je.li.lo.PluginCaller/]: Sending Runtime Unavailable...
[02:58:33] [Render thread/INFO] [me.je.ne.pl.ne.NeoForgeGuiPlugin/]: Stopping JEI GUI
[02:58:33] [Render thread/INFO] [me.je.li.lo.PluginCaller/]: Sending Runtime Unavailable took 2.441 milliseconds
[02:58:33] [Render thread/INFO] [FluxNetworks/]: Released client Flux Networks cache
[02:58:33] [Render thread/INFO] [Framework/]: Unloading synced configs from server
[02:58:33] [Render thread/INFO] [Framework/]: Sending config unload event for refurbished_furniture.server.toml
[02:58:33] [Render thread/INFO] [inventoryhud/]: Curios disabled
[02:58:33] [Render thread/INFO] [ChunkBuilder/]: Stopping worker threads
[02:58:33] [Render thread/WARN] [minecraft/ClientCommonPacketListenerImpl]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:custom_payload'

Thank you so much!

commented

What mods are you using that are dependent on Blueprint?
Try removing groups of those mods and see if the issue goes away. The issue could be caused by a mod that uses Blueprint, not Blueprint itself.