astei / krypton

A Fabric mod that optimizes the Minecraft networking stack and entity tracker.
GNU Lesser General Public License v3.0
367 stars 34 forks source link

Crash on 1.20.2 #108

Closed sternschnaube closed 11 months ago

sternschnaube commented 11 months ago

An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. io.netty.channel.ChannelPipelineException: me.steinborn.krypton.mod.shared.network.compression.MinecraftCompressDecoder.handlerRemoved() has thrown an exception. at io.netty.channel.DefaultChannelPipeline.callHandlerRemoved0(DefaultChannelPipeline.java:640) at io.netty.channel.DefaultChannelPipeline.destroyDown(DefaultChannelPipeline.java:876) at io.netty.channel.DefaultChannelPipeline.destroyUp(DefaultChannelPipeline.java:844) at io.netty.channel.DefaultChannelPipeline.destroy(DefaultChannelPipeline.java:836) at io.netty.channel.DefaultChannelPipeline.access$700(DefaultChannelPipeline.java:46) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelUnregistered(DefaultChannelPipeline.java:1392) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelUnregistered(AbstractChannelHandlerContext.java:215) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelUnregistered(AbstractChannelHandlerContext.java:195) at io.netty.channel.DefaultChannelPipeline.fireChannelUnregistered(DefaultChannelPipeline.java:821) at io.netty.channel.AbstractChannel$AbstractUnsafe$7.run(AbstractChannel.java:821) at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:566) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1 at io.netty.util.internal.ReferenceCountUpdater.toLiveRealRefCnt(ReferenceCountUpdater.java:83) at io.netty.util.internal.ReferenceCountUpdater.release(ReferenceCountUpdater.java:148) at io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:101) at io.netty.handler.codec.ByteToMessageDecoder.handlerRemoved(ByteToMessageDecoder.java:269) at io.netty.channel.AbstractChannelHandlerContext.callHandlerRemoved(AbstractChannelHandlerContext.java:1122) at io.netty.channel.DefaultChannelPipeline.callHandlerRemoved0(DefaultChannelPipeline.java:637) ... 17 more

If one player connects, a other player gets kicked.

astei commented 11 months ago

Do you have a list of mods you use? Can you try to reproduce this issue solely with Krypton installed?

sternschnaube commented 11 months ago

Maybe it was a issue with Female Gender Mod.

I will activate the mod again on server-side and look if it occurs again. Client side is still present. Maybe the mod is relevant too: https://www.curseforge.com/minecraft/mc-mods/connectivity

astei commented 11 months ago

It's probably "Connectivity" which probably mucks with the Netty pipeline and does some unsafe crap with it. No source code so I can't even try to figure out what it does exactly.

sternschnaube commented 11 months ago

Thanks for letting me know. I try to avoid this mod from now on then. If I encounter something again, you hear from me.

Thanks for the fast answering 😊