Entity moves to position outside of region, throwing exception #199

Open
opened 2024-02-16 14:11:33 +01:00 by Netherwhal · 0 comments
Netherwhal commented 2024-02-16 14:11:33 +01:00 (Migrated from github.com)

Expected behavior

No crash

Observed/Actual behavior

12:47:58] [Region Scheduler Thread #2/ERROR]: Thread Region Scheduler Thread #2 failed main thread check: Cannot move entity off-main
java.lang.Throwable: null
	at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.chunk.system.entity.EntityLookup.moveEntity(EntityLookup.java:526) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.chunk.system.entity.EntityLookup$EntityCallback.a(EntityLookup.java:893) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.world.entity.Entity.setPosRaw(Entity.java:5457) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.world.entity.Entity.setPos(Entity.java:770) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.world.entity.Entity.absMoveTo(Entity.java:2031) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.world.entity.Entity.absMoveTo(Entity.java:2016) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.server.level.ServerPlayer.tick(ServerPlayer.java:847) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1558) ~[?:?]
	at net.minecraft.world.level.Level.guardEntityTick(Level.java:1360) ~[?:?]
	at net.minecraft.server.level.ServerLevel.lambda$tick$8(ServerLevel.java:1011) ~[?:?]
	at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:613) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:990) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1812) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.4.jar:git-Folia-33]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1651) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.20.4.jar:git-Folia-33]
	at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-33]
	at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-33]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]

Steps/models to reproduce

n/a

Plugin and Datapack List

This server is running Folia version git-Folia-33 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 8939611 on HEAD)

Folia version

[13:09:44 INFO]: Paper Plugins:
[13:09:44 INFO]:  - MiniPlaceholders, MiniPlaceholders-Player-Expansion
[13:09:44 INFO]: Bukkit Plugins:
[13:09:44 INFO]:  - CMILib, DiscordSRV, MobFarmManager, NoIllegals, NoPluginsCommand, PlaceholderAPI, SimplyAdmin, SimplyChat, SimplyHeightLimit, SimplyNicks
[13:09:44 INFO]:  SimplyRank, SimplyVotifier, TAB, ViaBackwards, ViaVersion, voicechat, VotingPlugin

Other

There are a couple of accepted but also prematurely closed bug-reports. So this might still be a valid bug in current HEAD.

### Expected behavior No crash ### Observed/Actual behavior ``` 12:47:58] [Region Scheduler Thread #2/ERROR]: Thread Region Scheduler Thread #2 failed main thread check: Cannot move entity off-main java.lang.Throwable: null at io.papermc.paper.util.TickThread.ensureTickThread(TickThread.java:71) ~[folia-1.20.4.jar:git-Folia-33] at io.papermc.paper.chunk.system.entity.EntityLookup.moveEntity(EntityLookup.java:526) ~[folia-1.20.4.jar:git-Folia-33] at io.papermc.paper.chunk.system.entity.EntityLookup$EntityCallback.a(EntityLookup.java:893) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.world.entity.Entity.setPosRaw(Entity.java:5457) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.world.entity.Entity.setPos(Entity.java:770) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.world.entity.Entity.absMoveTo(Entity.java:2031) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.world.entity.Entity.absMoveTo(Entity.java:2016) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.server.level.ServerPlayer.tick(ServerPlayer.java:847) ~[?:?] at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1558) ~[?:?] at net.minecraft.world.level.Level.guardEntityTick(Level.java:1360) ~[?:?] at net.minecraft.server.level.ServerLevel.lambda$tick$8(ServerLevel.java:1011) ~[?:?] at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:613) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:990) ~[?:?] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1812) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.20.4.jar:git-Folia-33] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1651) ~[folia-1.20.4.jar:git-Folia-33] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.20.4.jar:git-Folia-33] at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:404) ~[folia-1.20.4.jar:git-Folia-33] at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.4.jar:git-Folia-33] at java.lang.Thread.run(Thread.java:840) ~[?:?] ``` ### Steps/models to reproduce n/a ### Plugin and Datapack List ``` This server is running Folia version git-Folia-33 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 8939611 on HEAD) ``` ### Folia version ``` [13:09:44 INFO]: Paper Plugins: [13:09:44 INFO]: - MiniPlaceholders, MiniPlaceholders-Player-Expansion [13:09:44 INFO]: Bukkit Plugins: [13:09:44 INFO]: - CMILib, DiscordSRV, MobFarmManager, NoIllegals, NoPluginsCommand, PlaceholderAPI, SimplyAdmin, SimplyChat, SimplyHeightLimit, SimplyNicks [13:09:44 INFO]: SimplyRank, SimplyVotifier, TAB, ViaBackwards, ViaVersion, voicechat, VotingPlugin ``` ### Other There are a couple of accepted but also prematurely closed bug-reports. So this might still be a valid bug in current HEAD.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Minecraft/Folia#199
No description provided.