"java.lang.IllegalStateException: Already sent chunk [x, y] to player ..." - Double sending chunk to a player #45
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stack trace
Plugin and Datapack List
no plugins
Actions to reproduce (if known)
No response
Folia version
version
[16:13:15 INFO]: This server is running Folia version git-Folia-"d34fb87" (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git:
d34fb87)You are 7 version(s) behind
Download the new version at: https://papermc.io/downloads
Previous version: git-Paper-499 (MC: 1.19.4)
Other
No response
please try on latest, with a bit of luck
25e0cbdae4fixed thisThank you, I updated the server and will close the task. If the error reoccurs, I will let you know.
Can reproduce on
41c5548.Context: A player going to the nether, 32 chunks view distance.
kugge put it in https://github.com/PaperMC/Folia/issues/46 (most recent open issue on it)
Unfortunately my stacktrace is not the same as yours:
Caused by: java.lang.IllegalStateException: Illegal recursive processTicketUpdates!Whereas mine is
Caused by: java.lang.IllegalStateException: Already sent chunk [70, 58] to player EntityPlayer<...>which is exactly the same as the authorIt is something related with the player connection, and mainly when respawn, I got it as well with a player known to have some ping issues.
It is important to mention that it stops the server right after (got it twice with same player).
The server was with very low usage, 4 players.
[21:39:16 INFO]: Checking version, please wait...
[21:39:17 INFO]: This server is running Folia version git-Folia-26 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git:
25e0cbd)You are running the latest version
Adding my Stack trace
[23:07:40] [Region Scheduler Thread #0/INFO]: Cogumelo090 fell from a high place
[23:07:42] [Region Scheduler Thread #0/ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #714 centered at chunk [-178, 183] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1716) ~[folia-1.19.4.jar:git-Folia-26]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[folia-1.19.4.jar:git-Folia-26]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1542) ~[folia-1.19.4.jar:git-Folia-26]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:360) ~[folia-1.19.4.jar:git-Folia-26]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[folia-1.19.4.jar:git-Folia-26]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.19.4.jar:git-Folia-26]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: Already sent chunk [-178, 180] to player EntityPlayer['Cogumelo090'/49553, uuid='fd6045ea-5125-3cd7-a337-37b75f051545', l='ServerLevel[world]', x=-2843.50, y=108.00, z=2930.50, cpos=[-178, 183], tl=81841, v=true](Cogumelo090 at -2843.5,108.0,2930.5)
at net.minecraft.server.level.ChunkHolder.addPlayer(ChunkHolder.java:136) ~[?:?]
at net.minecraft.server.level.ChunkTracker.updateChunkTracking(ChunkTracker.java:733) ~[?:?]
at io.papermc.paper.chunk.system.RegionizedPlayerChunkLoader$PlayerChunkLoaderData.sendChunk(RegionizedPlayerChunkLoader.java:485) ~[folia-1.19.4.jar:git-Folia-26]
at io.papermc.paper.chunk.system.RegionizedPlayerChunkLoader$PlayerChunkLoaderData.updateQueues(RegionizedPlayerChunkLoader.java:860) ~[folia-1.19.4.jar:git-Folia-26]
at io.papermc.paper.chunk.system.RegionizedPlayerChunkLoader.tick(RegionizedPlayerChunkLoader.java:244) ~[folia-1.19.4.jar:git-Folia-26]
at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:598) ~[?:?]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:739) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1697) ~[folia-1.19.4.jar:git-Folia-26]
... 6 more
[23:07:42] [Region shutdown thread/INFO]: [RegionShutdownThread] Awaiting scheduler termination for 60s
[23:07:42] [Region shutdown thread/INFO]: [RegionShutdownThread] Scheduler halted
[23:07:42] [Region shutdown thread/INFO]: Stopping server
Please try again on latest, I have made some changes to provide more debugging information
Still couldn't replicate this one, with same player
New stacktrace
world_nether=>worldIt seems that when a player sleep when this crash occur, the player cannot connect anymore and we have to delete his player.dat + restart. We cannot sleep on his bed (the bed is bugged).
Edit: Not related to this issue but to #57
Are there any other logs? Some of the debugging information wont cause a crash, but rather log some warnings/errors.
I don't have any more details, but I've already encountered those:
Just before a crash. That player triggered the crash
Had similar error, and still crashed the server, without anything related to it, not command executed etc
But it looks like we're having similar problems
https://paste.ubuntu.com/p/TrN33srzR4/
Does this still occur on latest master?
I confirm this still occur on latest master.
On latest master. Sometimes happens
As I understood, player teleported (after dying) to new region, wich have neibor region closely. And some chunks sends from neighbor, some from new region. Maybe...
It happend not only on spawn, when I used Paperlib.asyncTeleport instead of player.asyncTeleport. But with player.asyncTeleport it happens only on spawn when player respawns.
From stacktrace above:
Region #5637 centered at chunk [-12, -27]
-192, 100, -432
Already sent chunk [-3, 5]
-48 , 100, 80
Current player position (Spawn center [-3,1])
-32.5,240.0000002,-13.5
paper-world-defaults.yml
spawn:
keep-spawn-loaded: true
keep-spawn-loaded-range: 10
server.properties
simulation-distance=7
view-distance=8
This may have been fixed on 1.20. Can anyone using 1.20 confirm this?
Can you add full debug info with that error message? In the same place in code, what you need to know? (Or maybe I can add in my local version.)
Player positions, players in regions, region positions, region sizes, latest switches players between regions,
regions by threads, chunk loads by threads/regions/players ...
What we can add easily(or not) to debug this case?
Who knows how to simulate low speed chunks loading for local players?
With no further reports on 1.20, I assume the fix works.
Latest 1.21.5 beta using folia
using anti xray too if that matters
[17:02:45 ERROR]: [io.papermc.paper.threadedregions.TickRegionScheduler] Region #1 centered at chunk [24, 3] in world 'world' failed to tick:
net.minecraft.ReportedException: Exception ticking world
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1836) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1666) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:407) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546) ~[concurrentutil-0.0.3.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.chunk.LevelChunk.getPos()" because "chunk" is null
at net.minecraft.server.level.ServerLevel.tickChunk(ServerLevel.java:982) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.level.ServerChunkCache.iterateTickingChunksFaster(ServerChunkCache.java:179) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:632) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:532) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:510) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:769) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1831) ~[folia-1.21.5.jar:1.21.5-DEV-4f64c32]
Please don't bump random issues, that is not the latest version as of the time of posting, and that issue should to my understanding be mitigated in the latest build
oh sorry, im new to github. but that isn't an excuse