-
Notifications
You must be signed in to change notification settings - Fork 71
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
First chunk load extremely slow #141
Comments
I also experienced this. Never to the point of watchdog reporting a hang, but it seems to happen when no worlds have been loaded on server boot, first world load takes extremely long, subsequent ones are fast as normal |
Were you ever able to figure out what causes this behavior? |
Yup I had an experience like that long time ago, and found it was coming from ChunkTaskPriorityQueueSorter getProcessor in ChunkMap constructor, so it's coming from Minecraft with SWM, but don't know why |
Thanks for this report and for including the thread dump. It seems we might need to dig into what Minecraft is doing in 1.19 a little bit more - we've already had issues with default world overriding so I'll see if we can work out what's causing this to take so long. |
I don't think the size of the world matters, it happened to me with a 1 chunk world with just a 16x16 stone box in it. |
Here it is in Base64. It's a small starter island. https://www.toptal.com/developers/hastebin/raw/gumugifazo |
Is this only on 1.19? |
No, I had the same issue on 1.18 |
Can you please send your config files? Does this happen each time btw? |
It happens every first time after a reboot. So in other words, I restart the server, I load a world using the ASWM API and I teleport a player to the world's spawn chunk. The teleport then causes the chunk to load and this is the part that takes around ~15 seconds and freezes the server. But again, only the first time after a reboot. Paper config: https://pastebin.com/w7wFA2MH I'm assuming you meant those config files? If you need anything else, let me know. |
I'm having issues with the overworld overriding the worlds as well. And often before loading it lags the whole server. |
Overriding default worlds on 1.19 does not work, it's an issue we cannot get around at this time I'm afraid. |
Describe the issue
The first world loaded by ASWM takes a lot of time to load the spawn chunk (world loading itself is fast). Any world loaded after the first one does not have this issue (it's super fast).
Spigot version
This server is running Paper version git-Paper-"e294802" (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT) (Git: e294802)
Plugin version
2.9.0
How to reproduce
Load a world using the following code:
Crash reports (if available)
Not actually a crash, the chunk just takes a lot of time to load:
The text was updated successfully, but these errors were encountered: