Question Error When Creating a World

Kihsomray

New member
Aug 16, 2022
5
0
1
I own a world resetting plugin and have run into an error I've never seen before. I don't have an idea of where I should start. Keep in mind the server has 16GB of ram and a pretty good CPU. The server does not always crash. Here is the code for world creation:

Java:
                // creates world
                WorldCreator worldCreator = new WorldCreator(worldName);
                worldData.applyData(worldCreator, lastSaved);

                if (!lastSaved) createWorld(sender, worldCreator);
                else rollbackWorld(sender, worldCreator);
Java:
    private void createWorld(Player sender, WorldCreator finalWorld) {

        finalWorld.createWorld(); // thread dump here
        worldData.applyGamerules();
       
        // ...more stuff here
       
    }

Any help is really appreciated!
 
Logs
https://pastebin.pl/view/1b3290cb
Version Output
git-Purpur-1761 (MC: 1.19.2)
Last edited:

stefvanschie

Moderator
Staff member
Dec 17, 2021
20
2
1
3
I own a world resetting plugin and have run into an error I've never seen before. I don't have an idea of where I should start. Keep in mind the server has 16GB of ram and a pretty good CPU. The server does not crash. Here is the code for world creation:

Java:
                // creates world
                WorldCreator worldCreator = new WorldCreator(worldName);
                worldData.applyData(worldCreator, lastSaved);

                if (!lastSaved) createWorld(sender, worldCreator);
                else rollbackWorld(sender, worldCreator);
Java:
    private void createWorld(Player sender, WorldCreator finalWorld) {

        finalWorld.createWorld(); // thread dump here
        worldData.applyGamerules();
       
        // ...more stuff here
       
    }

Any help is really appreciated!
Please reproduce this with Paper or report this to Purpur, we cannot help you with Purpur here.
 

electronicboy

Administrator
Staff member
Dec 11, 2021
118
8
23
18
I mean, loading worlds is slow, all you can do is prevent spawn chunks from loading, and use a custom chunk generator which has a fixed spawn position
 

Kihsomray

New member
Aug 16, 2022
5
0
1
I mean, loading worlds is slow, all you can do is prevent spawn chunks from loading, and use a custom chunk generator which has a fixed spawn position
Would it be reasonable if: I set keepSpawnInMemory() to false, load the spawn chunks at a slower rate, then set keepSpawnInMemory() to true?