Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread Region Scheduler Thread #1 failed main thread check: Cannot update owner state asynchronously #315

Open
BackSam6348 opened this issue Jan 10, 2025 · 1 comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to.

Comments

@BackSam6348
Copy link

Expected behavior

Nothing happened

Observed/Actual behavior

[10:16:55 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #1 failed main thread check: Cannot update owner state asynchronously
java.lang.Throwable: null
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:58) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.getOwnerRaw(Projectile.java:99) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.getOwner(Projectile.java:92) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrownEnderpearl.deregisterFromCurrentOwner(ThrownEnderpearl.java:69) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrownEnderpearl.setOwnerThroughUUID(ThrownEnderpearl.java:56) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.readAdditionalSaveData(Projectile.java:152) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrowableItemProjectile.readAdditionalSaveData(ThrowableItemProjectile.java:61) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.load(Entity.java:2803) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.restoreFrom(Entity.java:3937) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.restoreFrom(Projectile.java:175) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.transformForAsyncTeleport(Entity.java:4262) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.portalToAsync(Entity.java:4652) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.netherPortalLogicAsync(Entity.java:4406) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.level.block.NetherPortalBlock.portalAsync(NetherPortalBlock.java:191) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.PortalProcessor.portalAsync(PortalProcessor.java:38) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.handlePortal(Entity.java:3491) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1384) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:1539) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:836) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:600) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:817) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1982) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1804) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.2.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1575) ~[?:?]
[10:16:55 ERROR]: Entity threw exception at world:845.8986873826847,68.28081608305203,1019.5194383503873
net.minecraft.ReportedException: Loading entity NBT
at net.minecraft.world.entity.Entity.load(Entity.java:2884) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.restoreFrom(Entity.java:3937) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.restoreFrom(Projectile.java:175) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.transformForAsyncTeleport(Entity.java:4262) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.portalToAsync(Entity.java:4652) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.netherPortalLogicAsync(Entity.java:4406) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.level.block.NetherPortalBlock.portalAsync(NetherPortalBlock.java:191) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.PortalProcessor.portalAsync(PortalProcessor.java:38) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.handlePortal(Entity.java:3491) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1384) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.level.Level.guardEntityTick(Level.java:1539) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:836) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:600) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:817) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1982) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1804) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.2.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1575) ~[?:?]
Caused by: java.lang.IllegalStateException: Cannot update owner state asynchronously
at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:59) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.getOwnerRaw(Projectile.java:99) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.getOwner(Projectile.java:92) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrownEnderpearl.deregisterFromCurrentOwner(ThrownEnderpearl.java:69) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrownEnderpearl.setOwnerThroughUUID(ThrownEnderpearl.java:56) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.Projectile.readAdditionalSaveData(Projectile.java:152) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.projectile.ThrowableItemProjectile.readAdditionalSaveData(ThrowableItemProjectile.java:61) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
at net.minecraft.world.entity.Entity.load(Entity.java:2803) ~[folia-1.21.4.jar:1.21.4-DEV-8af1aef]
... 19 more

Steps/models to reproduce

Do nothing

Plugin and Datapack List

[12:16:57 INFO]: Server Plugins (15):
[12:16:57 INFO]: Bukkit Plugins:
[12:16:57 INFO]: - Chunky, Essentials, EssentialsChat, EssentialsDiscord, floodgate, FreedomChat, InvSeePlusPlus, LuckPerms, PlasmoVoice, ProtocolLib
[12:16:57 INFO]: TAB, Vault, ViaBackwards, ViaVersion, voicechat

Datapack not used

Folia version

[12:17:41 INFO]: Checking version, please wait...
[12:17:41 INFO]: This server is running Folia version 1.21.4-DEV-master@8af1aef (2025-01-08T09:53:37Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version

Other

No response

@BackSam6348 BackSam6348 added status: needs triage type: bug Something doesn't work as it was intended to. labels Jan 10, 2025
@TechnicallyCoded
Copy link

An ender pearl was thrown through a nether portal. That's not nothing =p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something doesn't work as it was intended to.
Projects
None yet
Development

No branches or pull requests

2 participants