Jump to content

[1.18.2] connecting to server after disconnecting for any reason gives error first time then timeouts after


EnderMelody

Recommended Posts

hosting a custom pack server for some people, only me and one other person are getting this problem currently. after disconnecting from the server for any reason, the first reconnect gets as far as "loading world" then displays the error:
"Internal Exception: io.netty.handler.codec.DecoderException: java.lang.NullPointerException: Cannot invoke 'net.minecraft.client.multiplayer.ClientPacketListener.m_6198_()" because the return value of "net.minecraft.client.Minecraft.m_91403_()" is null'
after getting this error, further attempts to connect just result in the connection timing out. the client is able to reconnect after a server restart, but having to restart the server any time i want to reconnect is terrible. restarting the client does not help.
log snip: https://pastebin.com/g4sANJmc

no real idea what mod is causing the problem at this point.

Link to comment
Share on other sites

Please add -Dforge.logging.mojang.level=debug to the JVM arguments of your Launcher.
Launch the game and produce the error, then post debug.log from the logs folder.
Vanilla Laucnher: Launcher -> Installations -> Edit the Forge Profile you are using -> More Options -> Add the Argument to the JVM Arguments

If you using CurseForge you need to enable the debug.log in the settings.

Link to comment
Share on other sites

  • 3 weeks later...

As was said above. The error says one of your mods has badly coded network code.

The error does not say which one.

The only way to find it, is to experiment with removing mods until you find the problem mod. (Backup your world before removing mods).

 

NOTE: I am assuming you are still getting the same error after doing your update, because you don't post an updated log.

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.

Announcements



×
×
  • Create New...

Important Information

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