Sponge icon indicating copy to clipboard operation
Sponge copied to clipboard

WorldManager#loadWorld freezes the server indefinitely

Open thibaulthenry opened this issue 4 years ago • 2 comments

SpongeVanilla version: 1.16.4-8.0.0 (commit 13b8c404e47f91f1c99913396910c2f2b33ce60f)
Java version: 8
Operating System: Windows 10
Plugins: WIP plugin for api-8

Hello, yesterday I tried to load a new world after creating and saving an overworld template with :

WorldTemplate.overworld().asBuilder().key(newKey).build()

But after load command is executed the server just stops ticking, no exception log neither a crash.

[Server thread/INFO] [n.min.ser.MinecraftServer/]: Loading World 'cosmos:france' (minecraft:overworld)

And nothing after that log. I have to restart the server to see the world loading and playable.

Thanks for reading this issue.

thibaulthenry avatar Jan 13 '21 13:01 thibaulthenry

I cannot reproduce this. If you can, let me know.

Zidane avatar Jun 01 '21 01:06 Zidane

I can still reproduce :

  • saving overworld template under a new key : WorldTemplate.overworld().asBuilder().key(newKey).build()
  • loading this world using WorldManager#loadWorld(ResourceKey)

In SpongeWorldManager#loadWorld0

The server stops responding at line 441

this.postWorldLoad(w, false)

image

thibaulthenry avatar Jul 17 '22 23:07 thibaulthenry