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

Piston move block may cause ghost block on Folia 1.21.3 #302

Open
xuancat0208 opened this issue Dec 1, 2024 · 6 comments
Open

Piston move block may cause ghost block on Folia 1.21.3 #302

xuancat0208 opened this issue Dec 1, 2024 · 6 comments

Comments

@xuancat0208
Copy link

Stack trace

[05:57:39] [Region Scheduler Thread #8/ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Region Scheduler Thread #8 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.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[?:?]
	at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:146) ~[?:?]
	at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:289) ~[?:?]
	at net.minecraft.world.level.Level.getChunk(Level.java:1094) ~[?:?]
	at net.minecraft.world.level.Level.getBlockState(Level.java:1395) ~[?:?]
	at net.minecraft.world.entity.Entity.checkInsideBlocks(Entity.java:1754) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1367) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1354) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveEntityByPiston(PistonMovingBlockEntity.java:206) ~[?:?]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveCollidedEntities(PistonMovingBlockEntity.java:186) ~[?:?]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.tick(PistonMovingBlockEntity.java:339) ~[?:?]
	at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.tick(LevelChunk.java:1087) ~[?:?]
	at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.tick(LevelChunk.java:1030) ~[?:?]
	at net.minecraft.world.level.Level.tickBlockEntities(Level.java:1520) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:844) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1981) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1803) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[05:57:39] [Region Scheduler Thread #8/ERROR]: BlockEntity threw exception at world:-21964,74,-18774
java.lang.IllegalStateException: Cannot asynchronously load chunks
	at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:52) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.server.level.ServerChunkCache.syncLoad(ServerChunkCache.java:100) ~[?:?]
	at net.minecraft.server.level.ServerChunkCache.getChunkFallback(ServerChunkCache.java:146) ~[?:?]
	at net.minecraft.server.level.ServerChunkCache.getChunk(ServerChunkCache.java:289) ~[?:?]
	at net.minecraft.world.level.Level.getChunk(Level.java:1094) ~[?:?]
	at net.minecraft.world.level.Level.getBlockState(Level.java:1395) ~[?:?]
	at net.minecraft.world.entity.Entity.checkInsideBlocks(Entity.java:1754) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1367) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.entity.Entity.applyEffectsFromBlocks(Entity.java:1354) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveEntityByPiston(PistonMovingBlockEntity.java:206) ~[?:?]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.moveCollidedEntities(PistonMovingBlockEntity.java:186) ~[?:?]
	at net.minecraft.world.level.block.piston.PistonMovingBlockEntity.tick(PistonMovingBlockEntity.java:339) ~[?:?]
	at net.minecraft.world.level.chunk.LevelChunk$BoundTickingBlockEntity.tick(LevelChunk.java:1087) ~[?:?]
	at net.minecraft.world.level.chunk.LevelChunk$RebindableTickingBlockEntityWrapper.tick(LevelChunk.java:1030) ~[?:?]
	at net.minecraft.world.level.Level.tickBlockEntities(Level.java:1520) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:844) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1981) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1803) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[folia-1.21.3.jar:1.21.3-DEV-c937c72]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Plugin and Datapack List

none

Actions to reproduce (if known)



It's less likely to happen.

Folia version

[08:40:15 INFO]: This server is running Folia version 1.21.3-DEV-dev/1.21.3@c937c72 (2024-11-30T21:50:31Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.3-DEV-88f8af4 (MC: 1.21.3)

Other

This doesn't happen before Folia 1.21.1.

Spottedleaf added a commit that referenced this issue Dec 8, 2024
This will fix any problems accessing the old position, which
may be outside of the current region.

This might be a fix for #302
@Spottedleaf
Copy link
Member

This may be a fix on 1.21.4: 94d65c3

If it still happens, please provide the world data

@MrHua269
Copy link

This may be a fix on 1.21.4: 94d65c3

If it still happens, please provide the world data

Still happening

@ocelotpotpie
Copy link

Still happening

As asked, please provide a download of the world data so we can test/verify.

@MrHua269
Copy link

Still happening

As asked, please provide a download of the world data so we can test/verify.

world.zip

@MsEDok
Copy link

MsEDok commented Dec 15, 2024

I did have this problem i tested with fresh folia server no problem even when apply my server settings to it no problem.

The cause that i have kinda found to make that happen 100% all the time is that have the
Gamerule spawnChunkRadius 0

When set it to 0 and you fly away unloading the chunk with piston and the fly back to it and console spam with that error and it cause ghost block

When set the spawnchunk back to default 2 (i think) this problem havent happen again.

@MrHua269
Copy link

I did have this problem i tested with fresh folia server no problem even when apply my server settings to it no problem.

The cause that i have kinda found to make that happen 100% all the time is that have the
Gamerule spawnChunkRadius 0

When set it to 0 and you fly away unloading the chunk with piston and the fly back to it and console spam with that error and it cause ghost block

When set the spawnchunk back to default 2 (i think) this problem havent happen again.

I have tested but it is still happening when using the default gamerules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants