mcMMO-Dev / mcMMO

The RPG Lover's Mod!
https://mcmmo.org
GNU General Public License v3.0
1.01k stars 867 forks source link

Bug on Folia - Multiple Skill #5092

Closed Euphillya closed 2 weeks ago

Euphillya commented 2 months ago

spam console :

[20:09:10 WARN]: [mcMMO] Entity task for mcMMO v2.2.018 generated an exception
java.lang.IllegalStateException: Accessing entity state off owning region's thread
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:59) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftPigZombie.getHandle(CraftPigZombie.java:42) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftPigZombie.getHandle(CraftPigZombie.java:7) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftEntity.isInWorld(CraftEntity.java:947) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftEntity.isValid(CraftEntity.java:401) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at mcMMO.jar/com.gmail.nossr50.runnables.skills.RuptureTask.run(RuptureTask.java:45) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.util.CancellableRunnable.accept(CancellableRunnable.java:20) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.util.CancellableRunnable.accept(CancellableRunnable.java:7) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.mcmmo.folialib.impl.FoliaImplementation.lambda$runAtEntityTimer$21(FoliaImplementation.java:342) ~[mcMMO.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:170) ~[bloomexcalia-1.21.1.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:117) ~[bloomexcalia-1.21.1.jar:?]
        at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:181) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:540) ~[folia-1.21.1.jar:1.21.1-26-b440e32]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Euphillya commented 1 month ago
[18:38:31 WARN]: [mcMMO] Entity task for mcMMO v2.2.018 generated an exception
java.lang.IllegalStateException: Accessing entity state off owning region's thread
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:59) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftZombie.getHandle(CraftZombie.java:24) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftZombie.getHandle(CraftZombie.java:9) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at org.bukkit.craftbukkit.entity.CraftLivingEntity.getHealth(CraftLivingEntity.java:100) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at mcMMO.jar/com.gmail.nossr50.runnables.skills.AwardCombatXpTask.run(AwardCombatXpTask.java:30) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.util.CancellableRunnable.accept(CancellableRunnable.java:20) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.util.CancellableRunnable.accept(CancellableRunnable.java:7) ~[mcMMO.jar:?]
        at mcMMO.jar/com.gmail.nossr50.mcmmo.folialib.impl.FoliaImplementation.lambda$runAtEntity$15(FoliaImplementation.java:259) ~[mcMMO.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:170) ~[bloomexcalia-1.21.1.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:117) ~[bloomexcalia-1.21.1.jar:?]
        at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:181) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1711) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:540) ~[bloomexcalia-1.21.1.jar:1.21.1-26-b440e32]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
nossr50 commented 2 weeks ago

Fixed in 2.2.019