Zrips / CMI

117 stars 99 forks source link

Entity status error accessed by non-affiliated region threads #8905

Open imfusheng opened 4 months ago

imfusheng commented 4 months ago

Description of Issue

While running the Folia server, an error was encountered regarding access to entity state by a non-affiliated zone thread.

Version Information

[14:18:45 INFO]: CMI version:9.7.4.4 BungeeCordCMIB SqLite
[14:18:45 INFO]: CMILib version:1.5.0.5
[14:18:45 INFO]: Server version:Folia 1.20.4-R0.1-SNAPSHOT-
[14:18:45 INFO]: CMI Economy:DisabledCMI Chat:Enabled
[14:18:45 INFO]: Modules -> 65 Enabled 1 Disabled:votifier
[14:18:45 INFO]: --------------------------------------------------

Errors

[14:15:44 ERROR]: Thread Region Scheduler Thread #0 failed main thread check: Accessing entity state off owning region's thread
java.lang.Throwable: null
        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:78) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftTextDisplay.getHandle(CraftTextDisplay.java:25) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftTextDisplay.getHandle(CraftTextDisplay.java:10) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftDisplay.getTransformation(CraftDisplay.java:35) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at com.Zrips.CMI.Modules.Display.CMIDisplay.getTransformation(CMIDisplay.java:219) ~[CMI-9.7.4.4.jar:?]
        at com.Zrips.CMI.Modules.Chat.CMIChatBubble.generateDisplay(CMIChatBubble.java:182) ~[CMI-9.7.4.4.jar:?]
        at com.Zrips.CMI.Modules.Chat.CMIChatBubble.<init>(CMIChatBubble.java:58) ~[CMI-9.7.4.4.jar:?]
        at com.Zrips.CMI.Modules.Chat.ChatBubbleManager.showBubble(ChatBubbleManager.java:110) ~[CMI-9.7.4.4.jar:?]
        at com.Zrips.CMI.Modules.NickName.NickNameListener.AsyncPlayerChatEventRawConverter(NickNameListener.java:209) ~[CMI-9.7.4.4.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor433.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:85) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2383) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:673) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at com.Zrips.CMI.commands.list.sudo.perform(sudo.java:57) ~[CMI-9.7.4.4.jar:?]
        at com.Zrips.CMI.commands.CommandsHandler.onCommand(CommandsHandler.java:400) ~[CMI-9.7.4.4.jar:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[luminol-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1043) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchServerCommand(CraftServer.java:994) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:503) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:297) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[luminol-1.20.4.jar:git-Luminol-"b22fc1f"]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
[14:15:44 WARN]: java.lang.IllegalStateException: Accessing entity state off owning region's thread
[14:15:44 WARN]:        at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:79)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftTextDisplay.getHandle(CraftTextDisplay.java:25)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftTextDisplay.getHandle(CraftTextDisplay.java:10)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftDisplay.getTransformation(CraftDisplay.java:35)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.Modules.Display.CMIDisplay.getTransformation(CMIDisplay.java:219)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.Modules.Chat.CMIChatBubble.generateDisplay(CMIChatBubble.java:182)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.Modules.Chat.CMIChatBubble.<init>(CMIChatBubble.java:58)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.Modules.Chat.ChatBubbleManager.showBubble(ChatBubbleManager.java:110)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.Modules.NickName.NickNameListener.AsyncPlayerChatEventRawConverter(NickNameListener.java:209)
[14:15:44 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor433.execute(Unknown Source)
[14:15:44 WARN]:        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
[14:15:44 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77)
[14:15:44 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[14:15:44 WARN]:        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[14:15:44 WARN]:        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[14:15:44 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615)
[14:15:44 WARN]:        at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378)
[14:15:44 WARN]:        at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:85)
[14:15:44 WARN]:        at net.minecraft.server.network.PlayerConnection.chat(PlayerConnection.java:2383)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.chat(CraftPlayer.java:673)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.commands.list.sudo.perform(sudo.java:57)
[14:15:44 WARN]:        at CMI-9.7.4.4.jar//com.Zrips.CMI.commands.CommandsHandler.onCommand(CommandsHandler.java:400)
[14:15:44 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[14:15:44 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchCommand(CraftServer.java:1043)
[14:15:44 WARN]:        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.dispatchServerCommand(CraftServer.java:994)
[14:15:44 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.bk(DedicatedServer.java:503)
[14:15:44 WARN]:        at io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:297)
[14:15:44 WARN]:        at io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148)
[14:15:44 WARN]:        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404)
[14:15:44 WARN]:        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525)
[14:15:44 WARN]:        at java.base/java.lang.Thread.run(Thread.java:840)

Relevant Config Sections

none

Relevant Plugins

No response

Agreements

github-actions[bot] commented 3 days ago

This issue has been marked as stale due to inactivity.