[Bug]: Sometimes lags are produced in the client, and an error appears in the log file.
Lolothepro opened this issue ยท 0 comments
Bug Description
Error executing task on Client
net.minecraft.ReportedException: Main thread packet handler
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:33) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading}
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:146) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,re:computing_frames,re:classloading}
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:120) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:109) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1223) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.modernui-neoforge.json:MixinMinecraft,pl:mixin:APP:mining_helmet.mixins.json:MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:resource_explorer-common.mixins.json:MinecraftClientMixin,pl:mixin:APP:mffs.mixins.json:MinecraftMixin,pl:mixin:APP:sodium.mixins.json:core.MinecraftMixin,pl:mixin:APP:resourcefulconfig.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:the_bumblezone-common.mixins.json:client.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.run(Minecraft.java:818) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:mixins.modernui-neoforge.json:MixinMinecraft,pl:mixin:APP:mining_helmet.mixins.json:MinecraftMixin,pl:mixin:APP:ae2.mixins.json:PickColorMixin,pl:mixin:APP:resource_explorer-common.mixins.json:MinecraftClientMixin,pl:mixin:APP:mffs.mixins.json:MinecraftMixin,pl:mixin:APP:sodium.mixins.json:core.MinecraftMixin,pl:mixin:APP:resourcefulconfig.mixins.json:client.MinecraftMixin,pl:mixin:APP:architectury.mixins.json:MixinMinecraft,pl:mixin:APP:the_bumblezone-common.mixins.json:client.MinecraftMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.client.main.Main.main(Main.java:244) ~[minecraft-1.20.4-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
at net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-2.0.11.jar:2.0] {}
at net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:124) ~[loader-2.0.11.jar:2.0] {}
at net.neoforged.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:24) ~[loader-2.0.11.jar:2.0] {}
at net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-2.0.11.jar:2.0] {}
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] {}
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] {}
at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?] {}
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87) ~[?:?] {}
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130) ~[?:?] {}
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) ~[?:?] {}
Caused by: java.lang.NullPointerException: Cannot invoke "earth.terrarium.adastra.common.blockentities.machines.EtrionicBlastFurnaceBlockEntity.getEnergyStorage()" because "this.entity" is null
at earth.terrarium.adastra.common.menus.machines.EtrionicBlastFurnaceMenu.addConfigSlots(EtrionicBlastFurnaceMenu.java:62) ~[adastra-neoforge-1.20.4-1.16.5.jar%23211!/:?] {re:classloading}
at earth.terrarium.adastra.common.menus.base.BaseConfigurableContainerMenu.<init>(BaseConfigurableContainerMenu.java:20) ~[adastra-neoforge-1.20.4-1.16.5.jar%23211!/:?] {re:classloading}
at earth.terrarium.adastra.common.menus.base.MachineMenu.<init>(MachineMenu.java:17) ~[adastra-neoforge-1.20.4-1.16.5.jar%23211!/:?] {re:classloading}
at earth.terrarium.adastra.common.menus.machines.EtrionicBlastFurnaceMenu.<init>(EtrionicBlastFurnaceMenu.java:15) ~[adastra-neoforge-1.20.4-1.16.5.jar%23211!/:?] {re:classloading}
at earth.terrarium.adastra.common.registry.ModMenus.lambda$createMenuType$15(ModMenus.java:42) ~[adastra-neoforge-1.20.4-1.16.5.jar%23211!/:?] {re:classloading}
at net.neoforged.neoforge.network.IContainerFactory.create(IContainerFactory.java:18) ~[neoforge-20.4.164-beta-universal.jar%23257!/:?] {re:classloading}
at net.minecraft.world.inventory.MenuType.create(MenuType.java:54) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}
at net.minecraft.client.gui.screens.MenuScreens$ScreenConstructor.fromPacket(MenuScreens.java:130) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.gui.screens.MenuScreens.lambda$create$0(MenuScreens.java:44) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {re:mixin}
at net.minecraft.client.gui.screens.MenuScreens.create(MenuScreens.java:44) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.multiplayer.ClientPacketListener.handleOpenScreen(ClientPacketListener.java:1213) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:bagus_lib.mixins.json:client.ClientPacketListenerMixin,pl:mixin:APP:sodium.mixins.json:core.world.map.ClientPacketListenerMixin,pl:mixin:APP:computercraft-client.forge.mixins.json:ClientPacketListenerMixin,pl:mixin:APP:the_bumblezone-common.mixins.json:client.ClientPacketListenerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
at net.minecraft.network.protocol.game.ClientboundOpenScreenPacket.handle(ClientboundOpenScreenPacket.java:37) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading}
at net.minecraft.network.protocol.game.ClientboundOpenScreenPacket.handle(ClientboundOpenScreenPacket.java:11) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading}
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:24) ~[client-1.20.4-20231207.154220-srg.jar%23256!/:?] {re:classloading}
... 27 more
this is printed in the log file
How to Reproduce?
idk
Expected Behavior
No lag, nothing in the log file
Version
1.16.5
Mod Loader Version
20.4.164-beta
Mod Loader
NeoForge
Logs or additional context
No response
Code of Conduct
- I have searched the issue tracker and confirmed that the issue has not been reported
- I have checked the FAQ (if one is present) and my issue is not listed
- I have verified that I am using the latest version of the mod
- I have verified that I have installed all the required dependencies for the mod
- I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.