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

Cannot asynchronously load chunks0 when leaving chunk by teleport. #312

Closed
ColdeZhang opened this issue Dec 16, 2024 · 0 comments
Closed
Labels
status: needs triage type: bug Something doesn't work as it was intended to.

Comments

@ColdeZhang
Copy link

Expected behavior

no errors

Observed/Actual behavior

[13:49:51 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #1 failed main thread check: Cannot asynchronously load chunks
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:51) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:153) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:296) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.getChunk(Level.java:1095) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.getBlockState(Level.java:1396) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.checkInsideBlocks(Entity.java:1770) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1384) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1368) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveEntityByPiston(PistonMovingBlockEntity.java:206) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveCollidedEntities(PistonMovingBlockEntity.java:186) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.tick(PistonMovingBlockEntity.java:339) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.tick(LevelChunk.java:1095) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.tick(LevelChunk.java:1038) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.tickBlockEntities(Level.java:1521) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:846) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1982) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1804) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:436) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        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:1583) ~[?:?]
[13:49:51 ERROR]: BlockEntity threw exception at world:2459,125,-1292
java.lang.IllegalStateException: Cannot asynchronously load chunks
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:52) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:153) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:296) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.getChunk(Level.java:1095) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.getBlockState(Level.java:1396) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.checkInsideBlocks(Entity.java:1770) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1384) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1368) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveEntityByPiston(PistonMovingBlockEntity.java:206) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveCollidedEntities(PistonMovingBlockEntity.java:186) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.tick(PistonMovingBlockEntity.java:339) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.tick(LevelChunk.java:1095) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.tick(LevelChunk.java:1038) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.world.level.Level.tickBlockEntities(Level.java:1521) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:846) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1982) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1804) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:436) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[Folia-1.21.4.jar:1.21.4-DEV-1c0ecd3]
        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:1583) ~[?:?]

The position world:2459,125,-1292 was the chunk which player is leaving.

Steps/models to reproduce

Accoding to the stacktrace, maybe caused by piston?

Plugin and Datapack List

[14:06:21 INFO]: Server Plugins (11):
[14:06:21 INFO]: Bukkit Plugins:
[14:06:21 INFO]: - BlueMap, ColorfulMap, CoreProtect, Dominion, EssentialsD, LagrangeMC, LiteWorldEdit, LuckPerms, MiniPlayerTitle, PlaceholderAPI
[14:06:21 INFO]: Plan

Folia version

git: 1c0ecd3

Other

No response

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

1 participant