refinedmods / refinedstorage

An elegant solution to your hoarding problem.
https://refinedmods.com/refined-storage
MIT License
362 stars 177 forks source link

Server hangs after booting #3707

Closed evhub closed 4 months ago

evhub commented 4 months ago

Describe the bug

Upon booting up the server, it hangs indefinitely. This is a new issue that appeared without changing any mods; it was previously working fine. Using jstack I have identified the hang as likely due to Refined Storage, though I am not 100% confident. Included log output is jstack output for the main server thread during the hang.

How can we reproduce this bug or crash?

I don't know the exact conditions under which this triggers generally, but currently for me it triggers whenever the server is booted.

What Minecraft version is this happening on?

Minecraft 1.20.1

What Forge version is this happening on?

47.3.0

What Refined Storage version is this happening on?

1.12.4

Relevant log output

"Server thread" #386 [36724] prio=8 os_prio=2 cpu=2296.88ms elapsed=61.55s tid=0x0000028826279130 nid=36724 runnable  [0x000000f1cfcfe000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@21.0.3/Native Method)
        - parking to wait for  <0x00000004d2a1a1b0> (a java.lang.String)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@21.0.3/LockSupport.java:269)
        at net.minecraft.util.thread.BlockableEventLoop.m_5667_(minecraft@1.20.1/BlockableEventLoop.java:521)
        at net.minecraft.util.thread.BlockableEventLoop.m_18701_(minecraft@1.20.1/BlockableEventLoop.java:141)
        at net.minecraft.server.level.ServerChunkCache.getChunkBlocking(minecraft@1.20.1/ServerChunkCache.java:2272)
        at net.minecraft.server.level.ServerChunkCache.m_7587_(minecraft@1.20.1/ServerChunkCache.java:2164)
        at net.minecraft.server.level.ServerChunkCache.md2df3bb$lambda$getChunkOffThread$0$0(minecraft@1.20.1/ServerChunkCache.java:2176)
        at net.minecraft.server.level.ServerChunkCache$$Lambda/0x000002888d89bbf8.get(minecraft@1.20.1/Unknown Source)
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(java.base@21.0.3/CompletableFuture.java:1768)
        at net.minecraft.util.thread.BlockableEventLoop.m_6367_(minecraft@1.20.1/BlockableEventLoop.java:156)
        at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.m_6367_(minecraft@1.20.1/ServerChunkCache.java:541)
        at net.minecraft.util.thread.BlockableEventLoop.m_7245_(minecraft@1.20.1/BlockableEventLoop.java:130)
        at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.m_7245_(minecraft@1.20.1/ServerChunkCache.java:549)
        at net.minecraft.util.thread.BlockableEventLoop.m_18701_(minecraft@1.20.1/BlockableEventLoop.java:139)
        at net.minecraft.server.level.ServerChunkCache.getChunkBlocking(minecraft@1.20.1/ServerChunkCache.java:2272)
        at net.minecraft.server.level.ServerChunkCache.m_7587_(minecraft@1.20.1/ServerChunkCache.java:2164)
        at net.minecraft.world.level.Level.m_6522_(minecraft@1.20.1/Level.java:187)
        at net.minecraft.world.level.Level.m_6325_(minecraft@1.20.1/Level.java:6051)
        at net.minecraft.world.level.Level.m_8055_(minecraft@1.20.1/Level.java:6543)
        at net.minecraft.world.level.SignalGetter.m_277185_(minecraft@1.20.1/SignalGetter.java:66)
        at net.minecraft.world.level.SignalGetter.m_276867_(minecraft@1.20.1/SignalGetter.java:72)
        at com.refinedmods.refinedstorage.apiimpl.network.node.NetworkNode.update(refinedstorage@1.12.4/NetworkNode.java:147)
        at com.refinedmods.refinedstorage.apiimpl.network.NetworkListener.onLevelTick(refinedstorage@1.12.4/NetworkListener.java:25)
        at com.refinedmods.refinedstorage.apiimpl.network.__NetworkListener_onLevelTick_LevelTickEvent.invoke(refinedstorage@1.12.4/.dynamic)
        at net.minecraftforge.eventbus.ASMEventHandler.invoke(net.minecraftforge.eventbus/ASMEventHandler.java:73)
        at net.minecraftforge.eventbus.EventBus$$Lambda/0x0000028881d92b28.invoke(net.minecraftforge.eventbus/Unknown Source)
        at net.minecraftforge.eventbus.EventBus.post(net.minecraftforge.eventbus/EventBus.java:315)
        at net.minecraftforge.eventbus.EventBus.post(net.minecraftforge.eventbus/EventBus.java:296)
        at net.minecraftforge.event.ForgeEventFactory.onPostLevelTick(forge@47.3.0/ForgeEventFactory.java:930)
        at net.minecraft.server.MinecraftServer.m_5703_(minecraft@1.20.1/MinecraftServer.java:899)
        at net.minecraft.server.dedicated.DedicatedServer.m_5703_(minecraft@1.20.1/DedicatedServer.java:283)
        at net.minecraft.server.MinecraftServer.m_5705_(minecraft@1.20.1/MinecraftServer.java:814)
        at net.minecraft.server.MinecraftServer.m_130011_(minecraft@1.20.1/MinecraftServer.java:661)
        at net.minecraft.server.MinecraftServer.m_206580_(minecraft@1.20.1/MinecraftServer.java:251)
        at net.minecraft.server.MinecraftServer$$Lambda/0x000002888d339800.run(minecraft@1.20.1/Unknown Source)
        at java.lang.Thread.runWith(java.base@21.0.3/Thread.java:1596)
        at java.lang.Thread.run(java.base@21.0.3/Thread.java:1583)
evhub commented 4 months ago

Nevermind—for future reference, it turns out this was an issue with Starlight, weirdly enough.