Funwayguy / OreExcavation

Ore Excavation issue tracker
5 stars 0 forks source link

[1.16.5] Multiplayer Server Pinging not working when mod is installed. (Error encoding packet) #11

Closed Gbergz closed 3 years ago

Gbergz commented 3 years ago

What's Happening

Title ^ When this mod is installed on the server and when the IP is added to the Multiplayer List, server doesn't ping when you click refresh. The main error seems to be "Error encoding packet", "io.netty.handler.codec.EncoderException: String too big (was 32839 bytes encoded, max 32767)" Logs below.

image

Though the server is on and working. Removing the this mod (Ore Excavation) makes the pinging work again and the server is displayed like normal. image

Versions

Minecraft: 1.16.5 Forge: 36.1.2 Ore Excavation: 1.8.155

Logs when refreshing server list 3 times: https://gist.github.com/Gbergz/fb1e8f90cadba61ea67f2a9a34ba3b67

Funwayguy commented 3 years ago

This isn't an issue with Ore Excavation. The mod doesn't even touch server status networking.

What I can only guess is the issue is that you have so many mods installed on the server that Forge failed to mash all that info into the 32767 (2\^15 - 1) character limit forced by Mojang (yet not enforced on send because reasons?). Removing other mods would likely 'fix' the issue similarly.

Gbergz commented 3 years ago

Hm weird. I've added and removed lots of other mods and no other mod breaks the server pinging. Only breaks when Ore Excacation is present.

Edit: I've tried multiple things now. Removing about 50 mods. Adding 10 more. Only thing that solves it is removing this mod. Really annoying issue.

Funwayguy commented 3 years ago

Quick update, someone ran into a similar issue and suggested this mod to fix it: https://www.curseforge.com/minecraft/mc-mods/xl-packets

Turns out the issue you're having happens in vanilla too: https://bugs.mojang.com/browse/MC-185901

Gbergz commented 3 years ago

Hey thanks for reply, tried it and it didn't work unfortunately. Still the same error in console upon refreshing the Multiplayer list. (Server is ofcourse still joinable it's just the pinging that is not working as explained originally.)

Edit: Also probably already had that fix. It's already included in the mod "RandomPatches".

Gbergz commented 3 years ago

Update: Found an issue over at Enigmatica 6's issue tracker with the same issue. Looks like its tied to the server-icon for some weird reason.

Something about the filesize being too large. Changed the file size on it from 5.1kb down to 2.4kb also changed some properties of the file and now the pinging issues are gone. And the server is pinging like normal.

Or this is just a coincidence. Who knows.

Funwayguy commented 3 years ago

Good to know for future reference I guess. Glad you got everything working again.