[Bug]: 1.18.2 JEI not showing crafting recipes after updating mods in a server
WFPhantom opened this issue · 38 comments
Steps to Reproduce the Bug
Im not really sure if its JEI's fault or I'm just having a very unfortunate and specific bug.
- Make a server
- Update mods
- JEI doesn't show recipes I'm
Expected Behavior
Actual Behavior
Mod Pack URL (Optional)
No response
Mod Pack Version (Optional)
No response
Extra Notes (Optional)
Updated mods in a server and jei won't show recipes. Recipes are still shown in single player. Recipes work in the server as in I can perform them, they are just not shown.
If this is not JEI's fault sorry for wasting your time and just close this
Debug: https://gist.github.com/WFPhantom/2a8124cdc83dd498976391600b6f59aa
latest.log
https://gist.github.com/WFPhantom/4fe6ade3d60a3d6578059015038eb1f2
Steps to Reproduce the Bug
Im not really sure if its JEI's fault or I'm just having a very unfortunate and specific bug.
- Make a server
- Update mods
- JEI doesn't show recipes I'm
Expected Behavior
Actual Behavior
Mod Pack URL (Optional)
No response
Mod Pack Version (Optional)
No response
Extra Notes (Optional)
Updated mods in a server and jei won't show recipes. Recipes are still shown in single player. Recipes work in the server as in I can perform them, they are just not shown. If this is not JEI's fault sorry for wasting your time and just close this Debug: https://gist.github.com/WFPhantom/2a8124cdc83dd498976391600b6f59aa
latest.log
https://gist.github.com/WFPhantom/4fe6ade3d60a3d6578059015038eb1f2
You're not the only one having this issue I'm afraid. Been trying to narrow down what could cause the issue but everything points back to JEI.
It's not just JEI that's being affected, any documentation using Patchouli is also failing, because they load the same source. If you check the client-side logs, there's an error being thrown when recipe data is being sent over:
[00:52:06] [Render thread/ERROR] [minecraft/BlockableEventLoop]: Error executing task on Client
io.netty.handler.codec.EncoderException: java.io.UTFDataFormatException: malformed input around byte 2
at net.minecraft.network.FriendlyByteBuf.m_130081_(FriendlyByteBuf.java:436) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,re:classloading}
at net.minecraft.network.FriendlyByteBuf.m_130260_(FriendlyByteBuf.java:416) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,re:classloading}
at net.minecraft.network.FriendlyByteBuf.m_130267_(FriendlyByteBuf.java:476) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,re:classloading}
at net.minecraft.world.item.crafting.Ingredient.lambda$fromNetwork$4(Ingredient.java:192) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:AccessorIngredient,pl:mixin:APP:crafttweaker.mixins.json:common.access.item.AccessIngredient,pl:mixin:A}
at java.util.stream.StreamSpliterators$InfiniteSupplyingSpliterator$OfRef.tryAdvance(StreamSpliterators.java:1358) ~[?:?] {}
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129) ~[?:?] {}
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527) ~[?:?] {}
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513) ~[?:?] {}
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] {}
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?] {}
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?] {}
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?] {}
at net.minecraft.world.item.crafting.Ingredient.<init>(Ingredient.java:47) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:AccessorIngredient,pl:mixin:APP:crafttweaker.mixins.json:common.access.item.AccessIngredient,pl:mixin:A}
at net.minecraft.world.item.crafting.Ingredient.m_43938_(Ingredient.java:163) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:AccessorIngredient,pl:mixin:APP:crafttweaker.mixins.json:common.access.item.AccessIngredient,pl:mixin:A}
at net.minecraft.world.item.crafting.Ingredient.m_43940_(Ingredient.java:192) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:botania_xplat.mixins.json:AccessorIngredient,pl:mixin:APP:crafttweaker.mixins.json:common.access.item.AccessIngredient,pl:mixin:A}
at net.minecraft.world.item.crafting.SimpleCookingSerializer.m_8005_(SimpleCookingSerializer.java:42) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.world.item.crafting.SimpleCookingSerializer.m_8005_(SimpleCookingSerializer.java:11) ~[client-1.18.2-20220404.173914-srg.jar%23337!/:?] {re:classloading,pl:accesstransformer:B}
So something is corrupting the transfer from server to client.
I am also having this issue, I've tried removing many mods but nothing seems to fix it :(
I'm also having this issue. Can anyone else affected share their modlist? Here's mine.
I have noticed that specifically anvil recipes and alchemy recipes from the blue skies mod are unaffected.
Here is my modlist:
https://pastebin.com/g1ReKiUB
Ok not only was that the reason JEI was not working it was also the reason REI was not working
Someone opened an issue on quark's github saying it was happening with quark but fine without quark (issue 3722) can anyone test removing quark?
Not sure the problem is related to the corrupted data being sent to the client or not. @Sqalmals is running a supposedly affected version but I am not, and removing Quark on my end didnt fix anything.
EDIT: for clarity, I mean Im not sure Quark is responsible for the corrupted data.
Thanks for the report!
Could someone post their client's latest.log? The one linked by OP is a server log.
I might be able to help identify the mod that is causing the issue.
latest.log
heres my clint log i think im having the same issue as everyone here.
https://pastebin.com/M7N0riuc my modlist
i think this is the same issue im having at first i was running REI but it would not show in game on multiplayer i was using sense i was running Pmmo in my pack but i switched to JEI and dropped both rei and pmmo now im having this issue not sure if the two are related
wish there was a fast easy way to compare modlists if everyone here is having the same issue then it has to be a mod that we all are using other then jei of Course that would then the lists of possible suspects.
modlist: https://pastebin.com/RPTwXeAs
but after deleting pneumatic craft it suddenly works? though I'm not sure if the issue was pneumatic craft
After Testing all night i found the mod thats doing it OreBerries-Replanted-1.18.2-0.1.6 adding it stops jei recipes from loading can some one here confirm? also it could be something in the mod devs code so i suggest checking to see if you have any mods in your packs made by Mrbysco. anyway i need some sleep ill report it when i wake up
I dont have OreBerries but i do have Just Enough Professions and Roots Classic where he is marked as a contributor, but my recipes work with these mods so for me the problem was pneumatic craft I guess
@IchigoGames I can confirm this. Remove the mod and JEI works fine
I think this is a bunch of different issues with the same symptoms, all caused by non-JEI mods. My issue was the "Roasted" marshmallow mod. After disabling it, recipes work again.
@IchigoGames from your log, I can confirm you have a very similar issue, but not exactly the same cause.
Like Magiwarriorx, you have something breaking the Recipe Update packet, but it is breaking in a different way.
By some luck, your error happens to show which mod may be involved:
net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: L??d�minecraft:crafting_shaped'immersiveengineering:crafting/h
Try removing immersiveengineering
to see if it is the cause of your issues.
edit: sorry looks like you already figured it out, maybe oreberries has a conflict with immersiveengineering? weird.
@Magiwarriorx for your specific case, from your log,
[30Apr2022 19:13:48.497] [Render thread/ERROR] [net.minecraft.util.thread.BlockableEventLoop/FATAL]: Error executing task on Client
io.netty.handler.codec.EncoderException: java.io.UTFDataFormatException: malformed input around byte 70
at net.minecraft.network.FriendlyByteBuf.m_130081_(FriendlyByteBuf.java:436) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.FriendlyByteBuf.m_130260_(FriendlyByteBuf.java:416) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.FriendlyByteBuf.m_130267_(FriendlyByteBuf.java:476) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.world.item.crafting.ShapedRecipe$Serializer.m_8005_(ShapedRecipe.java:308) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.world.item.crafting.ShapedRecipe$Serializer.m_8005_(ShapedRecipe.java:285) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket.m_133647_(ClientboundUpdateRecipesPacket.java:45) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.FriendlyByteBuf.m_178371_(FriendlyByteBuf.java:119) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.FriendlyByteBuf.m_178366_(FriendlyByteBuf.java:135) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket.<init>(ClientboundUpdateRecipesPacket.java:22) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.ConnectionProtocol$PacketSet.m_178327_(ConnectionProtocol.java:419) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.ConnectionProtocol.m_178321_(ConnectionProtocol.java:471) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraftforge.network.filters.VanillaPacketSplitter.onClientPacket(VanillaPacketSplitter.java:146) ~[forge-1.18.2-40.1.0-universal.jar%23340!/:?]
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%2336!/:?]
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%2336!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%2336!/:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%2336!/:?]
at net.minecraftforge.network.NetworkInstance.dispatch(NetworkInstance.java:68) ~[forge-1.18.2-40.1.0-universal.jar%23340!/:?]
at net.minecraftforge.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:75) ~[forge-1.18.2-40.1.0-universal.jar%23340!/:?]
at java.util.Optional.map(Optional.java:260) ~[?:?]
at net.minecraftforge.network.NetworkHooks.onCustomPayload(NetworkHooks.java:75) ~[forge-1.18.2-40.1.0-universal.jar%23340!/:?]
at net.minecraft.client.multiplayer.ClientPacketListener.m_7413_(ClientPacketListener.java:1824) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.protocol.game.ClientboundCustomPayloadPacket.m_5797_(ClientboundCustomPayloadPacket.java:57) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.protocol.game.ClientboundCustomPayloadPacket.m_5797_(ClientboundCustomPayloadPacket.java:7) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:116) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1013) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.client.main.Main.main(Main.java:205) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:577) ~[?:?]
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) ~[fmlloader-1.18.2-40.1.0.jar%2350!/:?]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%2339!/:?]
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:577) ~[?:?]
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) [ForgeWrapper-mmc3.jar:mmc3]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:577) ~[?:?]
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?]
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?]
at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
Caused by: java.io.UTFDataFormatException: malformed input around byte 70
at java.io.DataInputStream.readUTF(DataInputStream.java:639) ~[?:?]
at io.netty.buffer.ByteBufInputStream.readUTF(ByteBufInputStream.java:301) ~[netty-all-4.1.68.Final.jar%2316!/:4.1.68.Final]
at net.minecraft.nbt.NbtIo.m_128930_(NbtIo.java:275) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.nbt.NbtIo.m_128934_(NbtIo.java:225) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
at net.minecraft.network.FriendlyByteBuf.m_130081_(FriendlyByteBuf.java:434) ~[client-1.18.2-20220404.173914-srg.jar%23336!/:?]
... 50 more
It looks like something has corrupted the ClientboundUpdateRecipesPacket
on the server-side, and the client is crashing when trying to decode it.
Unfortunately it is not possible to see which mod is adding the bad data to the packet on the server.
The general issue here is that JEI waits for this specific "Recipe Update" packet (coming from the server) to be processed on the client before JEI starts. When the packet is broken by another mod, JEI will not know to start.
For everyone here, I have added a workaround for this type of issue so that even if this packet is broken, JEI will always start the first time you open a GUI. This fix is in the latest versions of JEI for 1.18, so please make sure to update.
Unfortunately even with my workaround for JEI, the rest of the game can still be pretty broken if you don't receive the recipe update from the server, because crafting may not work correctly.
For this reason, it's still important to track down which mods are breaking this packet and report the issue to them so that they can fix it.
I think a fix for debugging this could be added to Forge, it might be helpful if it had a way to validate the packet on the server when it is created.
For now JEI does almost exactly what you describe. When a GUI is opened and JEI hasn't seen the events it requires, it will go ahead and start, using the client recipe values, and print this error message:
A Screen is opening but JEI hasn't started yet.
Normally, JEI is started after ClientPlayerNetworkEvent.LoggedInEvent, TagsUpdatedEvent, and RecipesUpdatedEvent.
Something has caused one or more of these events to fail, so JEI is starting very late.
@IchigoGames from your log, I can confirm you have a very similar issue, but not exactly the same cause. Like Magiwarriorx, you have something breaking the Recipe Update packet, but it is breaking in a different way.
By some luck, your error happens to show which mod may be involved:
net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: L??d�minecraft:crafting_shaped'immersiveengineering:crafting/h
Try removing
immersiveengineering
to see if it is the cause of your issues.edit: sorry looks like you already figured it out, maybe oreberries has a conflict with immersiveengineering? weird.
I'm thinking the L??d�
is the trailing end of the previous recipe. Either way, glad that got sorted.
Whoops, I had messed up my recipe serializer
But it's fixed in 0.1.7 of OreBerries Replanted
[Render thread/ERROR]: Error executing task on Client
net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: L??d�minecraft:crafting_shapeless"create:cut_crimsite_slab_rec
I had this problem that when I would click on the item it did not automatically show what is need to craft it - popup. It started when I removed/deleted some of the Key Binds that were RED, conflicting with other mods key binds. I noticed that I could hold "r" down to show recipe I was hovering over. Once I reset all the Key Binds back to what they were the problem went away.
i am having a similar problem jei just wont load its in the mod folder but not even in the mod part of the main minecraft menu it wont aper there, i have tryed to reinstal jei didn't work tryed forcing it to load didn't work tryed unistaling every mod didnt work not even just jei on 1.18.2 i didnt even load in with no other mods i don't know what to do to fix it at this point so if anyone knows how to fix it pls tell me.
i have tryed a diferent ting had i have found that jei version 10.1.0.223 works on 1.18.2 the newest version for some reason doesnt load on 1.18.2 if newest version wont load for you try 10.1.0.223 it worked for me
This has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.