Jump to content

Kicked from server, can't log back in. Happens after randoms actions e.g. eating zombflesh


RitzScythe

Recommended Posts

Running a forge 1.18.2 server on my pc and having troubles (obviously)

 

I made a custom modpack threw together a server with MCSS runs great, but when a player do certain things, they get kicked and cant log back in. I went to "carry on"' a chest and that was when it first happened so i assumed it was that mod, removed tried again. playing, eat some bread, its fine, go to eat zombie flesh, kicked again. Friend ended up getting kicked but I forgot to get his example as I was still trying to troubleshoot my food related kick.

 

The servers logs show nothing wrong, and stay up no issue, and I cant find any info on the conn. lost msg I got, nor can I see anything in the logs that would cause the disconnect. conn lsot msg is

Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(7) = length(4) exceeds writerIndex(7): PooledUnsafeDirectByteBuf(ridx: 7, widx: 7, cap: 7)

client debug.log

 

Link to comment
Share on other sites

One of your mods has broken network code. There is nothing in the log or the error message you show that suggests which one.

Check you have the latest versions of your mods.

You can try adding the following system property to your java/jvm parameters to see if it gives more information in a full stacktrace for that DecoderException

-Dforge.logging.mojang.level=debug

Otherwise you will have to experiment with removing mods or search your mod's issues pages for known issues.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

It is both since we don't know from that error message which side the error occurs.

For the client it depends which launcher you are using. For the vanilla launcher:

Launcher -> Installations -> Edit the Forge Profile you are using -> More Options -> Add the Argument to the JVM Arguments

For curseforge there is an "Additional Arguments" in the minecraft settings.

For the server you put it in the user_jvm_args.txt

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

The stacktrace is 

Caused by: java.lang.IndexOutOfBoundsException: readerIndex(7) + length(4) exceeds writerIndex(7): PooledUnsafeDirectByteBuf(ridx: 7, widx: 7, cap: 7)
	at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442) ~[netty-all-4.1.68.Final.jar%2327!/:4.1.68.Final]
	at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:809) ~[netty-all-4.1.68.Final.jar%2327!/:4.1.68.Final]
	at net.minecraft.network.FriendlyByteBuf.readInt(FriendlyByteBuf.java:949) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket.handler$zpa000$readTail(ClientboundUpdateMobEffectPacket.java:533) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket.<init>(ClientboundUpdateMobEffectPacket.java:51) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at net.minecraft.network.ConnectionProtocol$PacketSet.m_178327_(ConnectionProtocol.java:419) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at net.minecraft.network.ConnectionProtocol.m_178321_(ConnectionProtocol.java:471) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at net.minecraft.network.PacketDecoder.decode(PacketDecoder.java:32) ~[client-1.18.2-20220404.173914-srg.jar%23218!/:?]
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507) ~[netty-all-4.1.68.Final.jar%2327!/:4.1.68.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446) ~[netty-all-4.1.68.Final.jar%2327!/:4.1.68.Final]

Which shows it is a problem with MobEffects.

There is a mixin in that stacktrace modifying the packet handling which appears to be from the potionidpacketfixer mod

Quote

[10Oct2022 15:05:00.112] [Server Pinger #0/DEBUG] [mixin/]: Mixing MixinClientboundUpdateMobEffectPacket from potionidpacketfixer.mixins.json into net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket [10Oct2022 15:05:00.112] [Server Pinger #0/DEBUG] [mixin/]: potionidpacketfixer.mixins.json:MixinClientboundUpdateMobEffectPacket: Class version 61 required is higher than the class version supported by the current version of Mixin (JAVA_8 supports class version 52)

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

  • Thanks 1

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.