Skip to content

Infinite queue loop stalling the server process. #962

@palmmc

Description

@palmmc

Description

While developing an addon mod for Sable, I encountered this issue. I did my best to confirm that this is indeed an issue with Sable, but I'm still pretty new to mod development, so a second opinion would be welcome.

"Server thread" #167 [150966] prio=8 os_prio=0 cpu=179065.60ms elapsed=196.17s tid=0x000079f353eabf10 nid=150966 runnable  [0x000079f1400fd000]
   java.lang.Thread.State: RUNNABLE
        at java.util.concurrent.ConcurrentLinkedDeque.updateTail(java.base@21.0.10/Native Method)
        at java.util.concurrent.ConcurrentLinkedDeque.unlinkLast(java.base@21.0.10/ConcurrentLinkedDeque.java:540)
        at java.util.concurrent.ConcurrentLinkedDeque.unlink(java.base@21.0.10/ConcurrentLinkedDeque.java:391)
        at java.util.concurrent.ConcurrentLinkedDeque.pollFirst(java.base@21.0.10/ConcurrentLinkedDeque.java:921)
        at java.util.concurrent.ConcurrentLinkedDeque.poll(java.base@21.0.10/ConcurrentLinkedDeque.java:994)
        at net.minecraft.server.level.ChunkMap.processUnloads(minecraft@1.21.1/ChunkMap.java:517)
        at net.minecraft.server.level.ChunkMap.tick(minecraft@1.21.1/ChunkMap.java:475)
        at net.minecraft.server.level.ServerChunkCache.tick(minecraft@1.21.1/ServerChunkCache.java:329)
        at net.minecraft.server.MinecraftServer.stopServer(minecraft@1.21.1/MinecraftServer.java:619)
        at net.minecraft.client.server.IntegratedServer.stopServer(minecraft@1.21.1/IntegratedServer.java:227)
        at net.minecraft.server.MinecraftServer.runServer(minecraft@1.21.1/MinecraftServer.java:748)
        at net.minecraft.server.MinecraftServer.lambda$spin$2(minecraft@1.21.1/MinecraftServer.java:267)
        at net.minecraft.server.MinecraftServer$$Lambda/0x000079f2ddb54f98.run(minecraft@1.21.1/Unknown Source)
        at java.lang.Thread.runWith(java.base@21.0.10/Thread.java:1596)
        at java.lang.Thread.run(java.base@21.0.10/Thread.java:1583)

The issue occurred when executing specific actions that changed a block's state that work fine outside of a Sable sublevel, but cause this issue when done inside of one.

Thank you for your time!

Game Log

https://mclo.gs/fMjq4wb

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions