Moulberry / NotEnoughUpdates

http://moulberry.github.io/projects
GNU Lesser General Public License v3.0
472 stars 59 forks source link

[Bug] Game freezes #302

Open DespairScent opened 2 years ago

DespairScent commented 2 years ago

Mod Version: 2.0.0

Description: The game suddenly just freezes, no matter what you do in the game at that moment.

Attachments: I used jstack to get the possible cause, here is the output. Given that there is a stack of this mod, I assumed it was the culprit.

"Client thread" #1 prio=10 os_prio=2 tid=0x0000000002fa3800 nid=0x29e0 runnable [0x0000000002f9b000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Throwable.java:783)
        - locked <0x0000000716f96608> (a java.util.NoSuchElementException)
        at java.lang.Throwable.<init>(Throwable.java:250)
        at java.lang.Exception.<init>(Exception.java:54)
        at java.lang.RuntimeException.<init>(RuntimeException.java:51)
        at java.util.NoSuchElementException.<init>(NoSuchElementException.java:46)
        at java.util.LinkedList.removeFirst(LinkedList.java:270)
        at java.util.LinkedList.pop(LinkedList.java:801)
        at io.github.moulberry.notenoughupdates.auction.APIManager.updatePageTickShort(APIManager.java:344)
        at io.github.moulberry.notenoughupdates.auction.APIManager.tick(APIManager.java:186)
        at io.github.moulberry.notenoughupdates.NEUEventListener.onTick(NEUEventListener.java:391)
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_24_NEUEventListener_onTick_ClientTickEvent.invoke(.dynamic)
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49)
        at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:140)
        at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:331)
        at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1624)
        at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1024)
        at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349)
        at net.minecraft.client.main.Main.main(SourceFile:124)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at gg.essential.loader.stage2.relaunch.Relaunch.relaunch(Relaunch.java:124)
        at gg.essential.loader.stage2.EssentialLoader.preloadEssential(EssentialLoader.java:164)
        at gg.essential.loader.stage2.EssentialLoader.loadPlatform(EssentialLoader.java:110)
        at gg.essential.loader.stage2.EssentialLoaderBase.load(EssentialLoaderBase.java:192)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at gg.essential.loader.stage1.EssentialLoaderBase.load(EssentialLoaderBase.java:110)
        at gg.essential.loader.stage1.EssentialSetupTweaker.<init>(EssentialSetupTweaker.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at gg.essential.loader.stage0.EssentialSetupTweaker.loadStage1(EssentialSetupTweaker.java:111)
        at gg.essential.loader.stage0.EssentialSetupTweaker.<init>(EssentialSetupTweaker.java:34)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at net.minecraft.launchwrapper.Launch.launch(Launch.java:98)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
physanus commented 2 years ago

Maybe related to https://github.com/NotEnoughUpdates/NotEnoughUpdates/issues/159