Paper: createVanillaChunkData in generateChunkData causes nested call stack/crash

Created on 10 Aug 2020  路  4Comments  路  Source: PaperMC/Paper

What behaviour is expected:

When developing a plugin for custom terrain generation, using createVanillaChunkData inside of the custom generateChunkData function of a ChunkGenerator class can create normal vanilla terrain to build off of

What behaviour is observed:

Calling createVanillaChunkData from generateChunkData causes a function loop and quick server crash
Logging the chunk coordinates (System.out.println(chunkX + " " + chunkZ);) show it's not related to neighboring chunks, it's just one chunk infinitely getting called and causing the crash
Using createChunkData does not cause such a crash

Steps/models to reproduce:

Using my test plugin, compiled here, and the relevant code snippet here
Remember to set a world to use the plugin's generation in bukkit.yml (see test plugin readme)

Plugin list:

VanillaChunkTest

Paper build number:

git-Paper-134 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)

Anything else:

crash logs

accepted bug 1.16

Most helpful comment

I am very sorry for taking so long to finally take a look. This was broken in 1.16.1, the fix is already cooking

All 4 comments

any progress on this issue?

I am also noticing this as well. Using version: git-Paper-277 (MC 1.16.4)

Super excited for whenever this gets fixed

I am very sorry for taking so long to finally take a look. This was broken in 1.16.1, the fix is already cooking

Was this page helpful?
0 / 5 - 0 ratings