Crash while generating chunks and exploring, "Accessing LegacyRandomSource from multiple threads". Amethyst Golem the culprit?
wolfsprite opened this issue ยท 16 comments
Crashed while using Chunky and walking.
Not Enough Crashes pointed towards AdventureZ, and the crash log mentions net.adventurez.entity.AmethystGolemEntity
.
Relevant fragment of the logfile below:
Description: Accessing LegacyRandomSource from multiple threads
java.lang.IllegalStateException: Accessing LegacyRandomSource from multiple threads
at net.minecraft.util.thread.LockHelper.crash(LockHelper:84)
at net.minecraft.util.math.random.CheckedRandom.next(CheckedRandom:49)
at net.minecraft.util.math.random.BaseRandom.nextDouble(BaseRandom:62)
at net.minecraft.util.math.random.Random.nextTriangular(Random:75)
at net.minecraft.entity.mob.MobEntity.initialize(MobEntity:1075)
at net.adventurez.entity.AmethystGolemEntity.initialize(AmethystGolemEntity.java:116)
at net.minecraft.world.gen.feature.GeodeFeature.handler$bca000$generateMixin(GeodeFeature:529)
at net.minecraft.world.gen.feature.GeodeFeature.generate(GeodeFeature:174)
at net.minecraft.world.gen.feature.ConfiguredFeature.generate(ConfiguredFeature:537)
at net.minecraft.world.gen.feature.PlacedFeature.method_39646(PlacedFeature:56)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source)
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source)
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source)
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source)
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
at java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.forEach(Unknown Source)
at net.minecraft.world.gen.feature.PlacedFeature.generate(PlacedFeature:55)
at net.minecraft.world.gen.feature.PlacedFeature.generate(PlacedFeature:44)
at net.minecraft.world.gen.chunk.ChunkGenerator.generateFeatures(ChunkGenerator:464)
at net.minecraft.world.chunk.ChunkStatus.method_20613(ChunkStatus:145)
at net.minecraft.world.chunk.ChunkStatus.md2fe46c$lambda$runGenerationTask$0$5(ChunkStatus:1601)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)
at java.util.concurrent.ForkJoinPool.scan(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Same issue. Would be glad if this is fixed soon as I have a server with this mod and it keeps crashing :(
Talked with the chunky author, I might know how to fix this.
Reference https://github.com/pop4959/Chunky/blob/master/fabric/src/main/java/org/popcraft/chunky/platform/FabricWorld.java#L51-L53
Thanks. So will this be an adventureZ update or a chunky update? (I want to watch the mod to get it when its out)
its not chunky related, i am getting this crash while just exploring, unless chunky changes the way chunks load even while not preloading. Just had a server crash where the stack trace pointed to the same error listed here
Chunky makes the amythist golem crash because of the way it generates the world.
adventurez-1.4.14.zip
Does this fix the issue? (unpack the zip file)
I think. It didn't crash which is good. Just no amethyst golem has spawned yet. What are the spawn rates for the golem?
The amethyst golem spawns only one time when the geode gets generated with a certain % chance
I can confirm crash still occurs with same problem, just updated my server and am still getting crash when I reenable amethyst golem spawns
adventurez-1.4.14.zip
Does this fix the issue? (unpack the zip file)
Globox has a fix if you want to test it. I think it fixes the problem.
Ok. If you are in spectator does that make them not spawn. I saw a heap of geodes with nothing in them.
Uploaded a new version on cf and I guess this fixed it e042b3e
Reopen if still happening