Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The client is utilizing 100% of the CPU and is nearly frozen. #18565

Closed
1 of 3 tasks
paulzzh opened this issue Dec 29, 2024 · 8 comments · Fixed by GTNewHorizons/NotEnoughItems#583
Closed
1 of 3 tasks
Labels
Crash Status: Triage Issue awaiting triage. Remove once this issue is processed

Comments

@paulzzh
Copy link

paulzzh commented Dec 29, 2024

Your GTNH Discord Username

Paulzzh

Your Pack Version

2.7.1

Your Server

private server

Java Version

Java 21

Type of Server

Crucible

Your Actions

Use /home to teleport back and forth between the Twilight Forest and the Overworld.
The game suddenly became extremely laggy, and the system also started lagging badly. Upon checking, I found that javaw.exe was consuming nearly 100% of the CPU.
This has happened many times, but the triggering conditions are unclear.
image

Crash Report

Client threads stack dump
https://mclo.gs/ivQIVAm

"ForkJoinPool.commonPool-worker-38" Id=517 cpuUsage=94.79% deltaTime=203ms time=3240953ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-49" Id=649 cpuUsage=80.21% deltaTime=171ms time=926046ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-50" Id=653 cpuUsage=80.21% deltaTime=171ms time=4710343ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-47" Id=625 cpuUsage=72.91% deltaTime=156ms time=4708296ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"NEI-worker-thread-82" Id=1059 cpuUsage=72.91% deltaTime=156ms time=369593ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//net.moecraft.nechar.NecharTooltipFilter.matches(NecharTooltipFilter.java:22)
    at Launch//codechicken.nei.ItemList$AnyMultiItemFilter.matches(ItemList.java:154)
    at Launch//codechicken.nei.ItemList$AllMultiItemFilter.matches(ItemList.java:129)
    at Launch//codechicken.nei.SearchTokenParser$IsRegisteredItemFilter.matches(SearchTokenParser.java:86)
    at Launch//codechicken.nei.ItemList$AllMultiItemFilter.matches(ItemList.java:129)
    at Launch//codechicken.nei.ItemList$3$$Lambda/0x00000212873f8e20.test(Unknown Source)
    at java.base@21.0.5/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base@21.0.5/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:960)
    at java.base@21.0.5/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:934)
    at java.base@21.0.5/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-51" Id=654 cpuUsage=65.62% deltaTime=140ms time=3228953ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-48" Id=648 cpuUsage=58.33% deltaTime=125ms time=403953ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"ForkJoinPool.commonPool-worker-52" Id=655 cpuUsage=58.33% deltaTime=125ms time=400875ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"NEI populate Tooltip Filter" Id=1091 cpuUsage=51.04% deltaTime=109ms time=717437ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.helpComplete(ForkJoinPool.java:1395)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:2104)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:420)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:668)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
    at java.base@21.0.5/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at java.base@21.0.5/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
    at Launch//codechicken.nei.search.TooltipFilter.lambda$populateSearchMap$0(TooltipFilter.java:32)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ce8.run(Unknown Source)
    at java.base@21.0.5/java.lang.Thread.runWith(Thread.java:1596)
    at java.base@21.0.5/java.lang.Thread.run(Thread.java:1583)


"NEI-worker-thread-88" Id=1111 cpuUsage=51.04% deltaTime=109ms time=363640ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//net.moecraft.nechar.NecharTooltipFilter.matches(NecharTooltipFilter.java:22)
    at Launch//codechicken.nei.ItemList$AnyMultiItemFilter.matches(ItemList.java:154)
    at Launch//codechicken.nei.ItemList$AllMultiItemFilter.matches(ItemList.java:129)
    at Launch//codechicken.nei.SearchTokenParser$IsRegisteredItemFilter.matches(SearchTokenParser.java:86)
    at Launch//codechicken.nei.ItemList$AllMultiItemFilter.matches(ItemList.java:129)
    at Launch//codechicken.nei.ItemList$3$$Lambda/0x00000212873f8e20.test(Unknown Source)
    at java.base@21.0.5/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    at java.base@21.0.5/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:960)
    at java.base@21.0.5/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:934)
    at java.base@21.0.5/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
    at java.base@21.0.5/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)


"NEI populate Tooltip Filter" Id=1159 cpuUsage=51.04% deltaTime=109ms time=359359ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:667)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
    at java.base@21.0.5/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at java.base@21.0.5/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
    at Launch//codechicken.nei.search.TooltipFilter.lambda$populateSearchMap$0(TooltipFilter.java:32)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ce8.run(Unknown Source)
    at java.base@21.0.5/java.lang.Thread.runWith(Thread.java:1596)
    at java.base@21.0.5/java.lang.Thread.run(Thread.java:1583)


"NEI populate Tooltip Filter" Id=1163 cpuUsage=51.04% deltaTime=109ms time=358031ms RUNNABLE
    at java.base@21.0.5/java.util.HashMap$TreeNode.balanceDeletion(HashMap.java:2497)
    at java.base@21.0.5/java.util.HashMap$TreeNode.removeTreeNode(HashMap.java:2271)
    at java.base@21.0.5/java.util.HashMap.removeNode(HashMap.java:846)
    at java.base@21.0.5/java.util.LinkedHashMap.afterNodeInsertion(LinkedHashMap.java:326)
    at java.base@21.0.5/java.util.HashMap.putVal(HashMap.java:670)
    at java.base@21.0.5/java.util.HashMap.put(HashMap.java:618)
    at Launch//codechicken.nei.recipe.StackInfo.getFluid(StackInfo.java:104)
    at Launch//micdoodle8.mods.galacticraft.core.event.EventHandlerGC.onItemTooltipEvent(EventHandlerGC.java:902)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_324_EventHandlerGC_onItemTooltipEvent_ItemTooltipEvent.invoke(.dynamic)
    at Launch//cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at Launch//cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at Launch//net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:169)
    at Launch//net.minecraft.item.ItemStack.func_82840_a(ItemStack.java:626)
    at Launch//codechicken.nei.search.TooltipFilter.getTooltip(TooltipFilter.java:53)
    at Launch//codechicken.nei.search.TooltipFilter.getSearchTooltip(TooltipFilter.java:40)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ef8.accept(Unknown Source)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
    at java.base@21.0.5/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:1024)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
    at java.base@21.0.5/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool$WorkQueue.helpComplete(ForkJoinPool.java:1395)
    at java.base@21.0.5/java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:2104)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:420)
    at java.base@21.0.5/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:668)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
    at java.base@21.0.5/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
    at java.base@21.0.5/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
    at java.base@21.0.5/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
    at java.base@21.0.5/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
    at Launch//codechicken.nei.search.TooltipFilter.lambda$populateSearchMap$0(TooltipFilter.java:32)
    at Launch//codechicken.nei.search.TooltipFilter$$Lambda/0x0000021286c20ce8.run(Unknown Source)
    at java.base@21.0.5/java.lang.Thread.runWith(Thread.java:1596)
    at java.base@21.0.5/java.lang.Thread.run(Thread.java:1583)


"Client thread" Id=1 cpuUsage=7.29% deltaTime=15ms time=5134703ms RUNNABLE
    at java.base@21.0.5/java.lang.Thread.yield0(Native Method)
    at java.base@21.0.5/java.lang.Thread.yield(Thread.java:445)
    at Launch//net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1041)
    at Launch//net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:6110)
    at Launch//net.minecraft.client.main.Main.main(SourceFile:148)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$DMH/0x000002128400c000.invokeStatic(LambdaForm$DMH)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$MH/0x0000021284116c00.invoke(LambdaForm$MH)
    at java.base@21.0.5/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
    at java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:154)
    at java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
    at System//net.minecraft.launchwrapper.Launch.rfb$realLaunch(Launch.java:250)
    at System//net.minecraft.launchwrapper.Launch.launch(Launch.java:35)
    at System//net.minecraft.launchwrapper.Launch.main(Launch.java:60)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$DMH/0x000002128400c000.invokeStatic(LambdaForm$DMH)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$MH/0x0000021284116c00.invoke(LambdaForm$MH)
    at java.base@21.0.5/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder)
    at java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(DirectMethodHandleAccessor.java:154)
    at java.base@21.0.5/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
    at java.base@21.0.5/java.lang.reflect.Method.invoke(Method.java:580)
    at app//com.gtnewhorizons.retrofuturabootstrap.Main.main(Main.java:207)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$DMH/0x000002128400c400.invokeStaticInit(LambdaForm$DMH)
    at java.base@21.0.5/java.lang.invoke.LambdaForm$MH/0x000002128400cc00.invokeExact_MT(LambdaForm$MH)
    at System//org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
    at System//org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
    at System//org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the crash still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this crash consistently by following the exact steps I described above.
  • I have asked other people and they confirm they also crash by following the exact steps I described above.
@paulzzh paulzzh added Crash Status: Triage Issue awaiting triage. Remove once this issue is processed labels Dec 29, 2024
@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

https://github.com/GTNewHorizons/NotEnoughItems/blob/8dd36f1c4ac706947643c4fb32afd44f60313eb3/src/main/java/codechicken/nei/recipe/StackInfo.java#L95-L108

There is a memory leak in fluidcache.put(stack, fluid);, causing the fluidcache to grow larger over time. The fluidcache is not cleared, even after leaving the server and rejoining.
Each time a player teleports to another dimension (whether via a portal or command) or is granted OP and then has OP removed, the fluidcache grows by approximately 56,000 entries.
Eventually, when the fluidcache exceeds approximately 5,600,000 entries, the game freezes for over 3 minutes after each teleport.

[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[54788]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[54791]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[54823]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[112300]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[168852]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[226094]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[284677]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[342212]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[399617]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[455770]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[514498]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[571977]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[629425]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[686921]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[744604]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[802417]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[860243]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[917915]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[975766]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1033422]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1091326]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1149119]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1206984]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1265397]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1323312]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1380803]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1438191]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1495782]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1531607]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1553731]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1611404]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1612108]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1613067]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1613346]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1670901]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1729061]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1787394]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1845509]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1905802]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[1963648]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2021277]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2021277]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2136661]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2309781]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2310046]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2368472]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2619341]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2971586]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[2972835]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[3529945]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[3759866]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[3817536]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[3874838]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[4161712]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5069499]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5756060]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5782509]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5792283]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5801101]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5813767]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5813942]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5813942]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5927908]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5928988]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5929542]
[arthas@5976]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 71def8f8
@Integer[5929983]

@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

image
image

@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

maybe related GTNewHorizons/NotEnoughItems#565

@Caedis
Copy link
Member

Caedis commented Dec 30, 2024

Can you try the latest NEI release?

@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

Can you try the latest NEI release?

NotEnoughItems-2.7.9-GTNH-pre.jar
CodeChickenCore-1.4.0.jar
gtnhlib-0.6.0.jar

After updating to the latest release, fluidcache continues to grow under the following conditions: using a portal to travel to other dimensions, granting and revoking OP permissions, and rejoining the server after exiting. The memory leak persists despite the update.
image

@Caedis
Copy link
Member

Caedis commented Dec 30, 2024

@boubou19 can you recreate this in yourkit on a standard forge setup?

@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

The issue cannot be reproduced in a Java 8 environment with fluid-related mods installed.
@codechicken.nei.recipe.StackInfo@fluidcache is always empty.

Mods:
[✔] +unimixins-all-1.7.10-0.1.19
[✔] CodeChickenCore-1.4.0
[✔] gtnhlib-0.6.0
[✔] Mantle-0.4.2
[✔] NotEnoughItems-2.7.9-GTNH-pre
[✔] TConstruct-1.13.1-GTNH

@paulzzh
Copy link
Author

paulzzh commented Dec 30, 2024

can be reproduced after adding Galacticraft.

Mods:
[✔] +unimixins-all-1.7.10-0.1.19
[✔] CodeChickenCore-1.4.0
[✔] Galacticraft-3.2.8-GTNH
[✔] gtnhlib-0.6.0
[✔] Mantle-0.4.2
[✔] NotEnoughItems-2.7.9-GTNH-pre
[✔] TConstruct-1.13.1-GTNH

[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache' -c 5622fdf
@[
]
[arthas@12400]$ 
[arthas@12400]$ 
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.entrySet().size()' -c 5622fdf
@Integer[18841]
[arthas@12400]$ 
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.entrySet()' -c 5622fdf
@LinkedEntrySet[
]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache' -c 5622fdf
@[
]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[18841]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[21269]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[21269]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[21269]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[21269]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[23708]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[26149]
[arthas@12400]$ ognl '@codechicken.nei.recipe.StackInfo@fluidcache.size()' -c 5622fdf
@Integer[28596]

image
I don't know why the LinkedHashMap has a head that is null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash Status: Triage Issue awaiting triage. Remove once this issue is processed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants