Open XLordalX opened 2 years ago
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
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. Can I ask how big the world is you're loading? And can we get a copy of the world too so that we can test with this world during debugging?
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. I suspect that if there isn't a world loaded on boot there are some caches that fill up for the first time they're used and that causes the first world loaded to halt the thread. Just a theory, I didn't have time to look into it
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. Can I ask how big the world is you're loading? And can we get a copy of the world too so that we can test with this world during debugging?
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?
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?
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 Spigot config: https://pastebin.com/1ZeJWaaj
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: