Failed to encode packet error preventing world load
Moobien opened this issue ยท 6 comments
Describe the bug
Was playing fine last night, woke up this morning and loaded up minecraft. when I tried to load into my world I got the following error. [10Mar2025 10:57:21.171] [Render thread/WARN] [net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl/]: Client disconnected with reason: Internal Exception: io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:update_recipes'
Removal of refinedstorage-jei-integration-neoforge-0.7.0 / refinedstorage-mekanism-integration-0.3.0 / refinedstorage-neoforge-2.0.0-milestone.4.14 allowed the world to load fine. This is the second world this has happened to.
How can we reproduce this bug or crash?
Not sure on reproduction steps as this issue seems to randomly happen but it does seem to happen once you have some autocrafting set up.
What Minecraft version is this happening on?
Minecraft 1.21.1
What NeoForge or Fabric version is this happening on?
21.1.123
What Refined Storage version is this happening on?
refinedstorage-neoforge-2.0.0-milestone.4.14
Relevant log output
https://gist.github.com/Moobien/3e25a095ef9d8efbb3e870c72baeb545
this is an earlier log from the previous world that had this issue. https://gist.github.com/Moobien/9da4fd6768cc8296810557562e59fd5bSorry, but I need better reproduction steps. Especially at this stage of the project.
Sorry, but I need better reproduction steps. Especially at this stage of the project.
yeah that is the hard part. I had been playing for 6 hours and slowly building up my RS network and ended up stopping for the night to go to bed, woke up and got that issue when I tried to play the next day. I removed the 3 RS mods I had installed and was able to get into the world but having them installed I would get that error.
What am I supposed to do with this test world? Like I said earlier, I need clear reproduction steps and need to know what to do.
What am I supposed to do with this test world? Like I said earlier, I need clear reproduction steps and need to know what to do.
No need to worry anymore. I managed to find the problem with the help of @uecasm. He looked at the log and pointed out the Prefab mod had an 'Empty ItemStack' Seems this issue was raised on their discord 3 weeks ago. I thought it was RS because the world seemed to work again after disabling RS but ultimately it is Prefab with the issue.
I made a test world to try to replicated it.
I had a couple of mekanism digital miners to bring in ores and ran a basic ore processing setup to turn the ores into ingots. This included the use of constructors and destructors for some of the ores.
exited the world and rejoined fine.
I had a storage drawers draw controller connected to an external storage to store the ingots in compacting drawers.
a couple of draws were given the creative vending upgrade for the purpose of testing autocrafting (this revealed a bug)
exited the world and rejoined fine
I set up autocrafting to be able to craft 64k storage parts. (2 mek ultimate smelters and crushers) and crafted a 64k storage part.
exited the world and got the bug for this issue.
All up it took about 3 hours for this to happen and I had numerous exits and rejoins in the process. I found also a bug where quartz in a compacting drawer that had a vending upgrade made the quartz unusable by the RS system. It could not withdraw anything.
I HOPE this helps somewhat Raoul. It happened to me again yesterday in another play world that had 8 hours worth of progress and that had had numerous exits and rejoins and the RS setup was a lot more complex than the simple one I just made.
My debug.log may be useful to you, but it IS a 110mb file. and seems to only cover the last 3 minutes of play.
(https://drive.google.com/file/d/1dQrJtAzngOskJhnKsMggEQEv1TeQkF0c/view?usp=sharing)