PolyhedralDev / Terra

Voxel world generation modding platform
MIT License
638 stars 83 forks source link

[Bug] StackOverflowError when generating terrain #451

Closed kpAjun closed 6 months ago

kpAjun commented 6 months ago

Pre-Issue Checklist

Environment

Name Value
Terra Version 6.4.1-BETA-bukkit and 6.4.3-BETA-bukkit
Platform / Platform Version arclight-1.20.1-1.0.4-fd335c1
Any External Plugins or Mods LuckPerms,OpenInv,Vault,Multiverse-Core,ProtocolLib,Terra,WorldEdit,AdvancedAchievements,Flec toneChat,Novaconomy,WorldGuard, MythicNobs,MythicCrucible,EvenMoreFish,GSit,(following are mods),architectury,create,farmersdelight,yuushya
Terra Packs In Use Default
Terra Addons In Use None

Issue Description

During terrain generation, the operation fails after throwing a long series of tracebacks.

Steps to reproduce

  1. Configure bukkit.yml as shown: HL)}K8ZI}~Q91IJ W(FE0BK
  2. Command (mv create sub_world normal) or (mv create sub_world normal -g Terra:OVERWORLD), as shown in wiki.

Expected behavior

Overworld generated without error.

Actual behavior

Full stacktrace

Exception Stacktrace [21:41:58 FATAL] [Arclight]: Failed to schedule load callback for chunk [0, 0] java.util.concurrent.CompletionException: java.lang.StackOverflowError at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?] at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159) ~[?:?] at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.m_143188_(ChunkTaskPriorityQueueSorter.java:62) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at net.minecraft.util.thread.ProcessorMailbox.m_18759_(ProcessorMailbox.java:91) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at net.minecraft.util.thread.ProcessorMailbox.m_18747_(ProcessorMailbox.java:146) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at net.minecraft.util.thread.ProcessorMailbox.run(ProcessorMailbox.java:102) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] Caused by: java.lang.StackOverflowError at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:297) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:302) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:302) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:302) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:302) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?] at org.bukkit.craftbukkit.v1_20_R1.generator.CustomChunkGenerator.m_213609_(CustomChunkGenerator.java:302) ~[arclight-1.20.1-1.0.4-fd335c1.jar%23168!/:arclight-1.20.1-1.0.4-fd335c1] at net.minecraft.world.level.chunk.ChunkGenerator.applyBiomeDecoration(ChunkGeneratorMixin.java:707) ~[server-1.20.1-20230612.114412-srg.jar%23175!/:?]

……too long to submit, attached in file log.txt

Additional details

Using default JVM config on stack size when launching server. MultiverseCore can create worlds without Terra. First time submitting an issue. Please inform me if there is anything done wrong. Thank you very much! latest.log

kpAjun commented 6 months ago

The stack trace is not uploaded successfully, here is the file. log.txt

kpAjun commented 6 months ago

[UPDATE] It is confirmed that the above failure in the generation will lead to the server crashing if the player walks around and causes new chunks to generate in the overworld, as shown at the end of latest.log.

justaureus commented 6 months ago

We do not support any hybrid server platforms like arclight.

solonovamax commented 6 months ago

Please attempt to reproduce on either forge or paper.