Crash when generating world with certain custom preset
Minecraft hangs and even uses nearly no CPU after some time while creating or loading a customized world with the following preset code. My PC is definitely strong enough.
{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":1,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":false,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":100,"useLavaLakes":true,"lavaLakeChance":100,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":1,"dirtSize":1,"dirtCount":0,"dirtMinHeight":255,"dirtMaxHeight":0,"gravelSize":50,"gravelCount":40,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":50,"graniteCount":40,"graniteMinHeight":0,"graniteMaxHeight":255,"dioriteSize":50,"dioriteCount":39,"dioriteMinHeight":0,"dioriteMaxHeight":255,"andesiteSize":50,"andesiteCount":40,"andesiteMinHeight":0,"andesiteMaxHeight":255,"coalSize":5,"coalCount":40,"coalMinHeight":0,"coalMaxHeight":255,"ironSize":1,"ironCount":1,"ironMinHeight":0,"ironMaxHeight":255,"goldSize":1,"goldCount":1,"goldMinHeight":0,"goldMaxHeight":64,"redstoneSize":1,"redstoneCount":1,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":1,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":255,"lapisSize":1,"lapisCount":1,"lapisCenterHeight":0,"lapisSpread":0}
Minecraft throws a crash:
Description: Exception in server tick loop java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt(Random.java:388) at aeb.b(SourceFile:323) at aeb.a(SourceFile:339) at aeb.a(SourceFile:92) at aeb.a(SourceFile:49) at ady.a(SourceFile:388) at aer.a(SourceFile:56) at aoa.a(SourceFile:473) at ld.a(SourceFile:174) at amy.a(SourceFile:875) at ld.c(SourceFile:104) at net.minecraft.server.MinecraftServer.k(SourceFile:315) at bpo.a(SourceFile:112) at bpo.i(SourceFile:128) at net.minecraft.server.MinecraftServer.run(SourceFile:421) at java.lang.Thread.run(Thread.java:745)
Linked Issues
Created Issue:
Loading world loop
Minecraft hangs and even uses nearly no CPU after some time while creating or loading a customized world with the following preset code. My PC is definitely strong enough.
{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":1,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":false,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":100,"useLavaLakes":true,"lavaLakeChance":100,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":1,"dirtSize":1,"dirtCount":0,"dirtMinHeight":255,"dirtMaxHeight":0,"gravelSize":50,"gravelCount":40,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":50,"graniteCount":40,"graniteMinHeight":0,"graniteMaxHeight":255,"dioriteSize":50,"dioriteCount":39,"dioriteMinHeight":0,"dioriteMaxHeight":255,"andesiteSize":50,"andesiteCount":40,"andesiteMinHeight":0,"andesiteMaxHeight":255,"coalSize":5,"coalCount":40,"coalMinHeight":0,"coalMaxHeight":255,"ironSize":1,"ironCount":1,"ironMinHeight":0,"ironMaxHeight":255,"goldSize":1,"goldCount":1,"goldMinHeight":0,"goldMaxHeight":64,"redstoneSize":1,"redstoneCount":1,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":1,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":255,"lapisSize":1,"lapisCount":1,"lapisCenterHeight":0,"lapisSpread":0}Environment
Windows, OptiFine (but sholdn't cause it)
Minecraft hangs and even uses nearly no CPU after some time while creating or loading a customized world with the following preset code. My PC is definitely strong enough.
{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":1,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":false,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":100,"useLavaLakes":true,"lavaLakeChance":100,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":1,"dirtSize":1,"dirtCount":0,"dirtMinHeight":255,"dirtMaxHeight":0,"gravelSize":50,"gravelCount":40,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":50,"graniteCount":40,"graniteMinHeight":0,"graniteMaxHeight":255,"dioriteSize":50,"dioriteCount":39,"dioriteMinHeight":0,"dioriteMaxHeight":255,"andesiteSize":50,"andesiteCount":40,"andesiteMinHeight":0,"andesiteMaxHeight":255,"coalSize":5,"coalCount":40,"coalMinHeight":0,"coalMaxHeight":255,"ironSize":1,"ironCount":1,"ironMinHeight":0,"ironMaxHeight":255,"goldSize":1,"goldCount":1,"goldMinHeight":0,"goldMaxHeight":64,"redstoneSize":1,"redstoneCount":1,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":1,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":255,"lapisSize":1,"lapisCount":1,"lapisCenterHeight":0,"lapisSpread":0}Minecraft hangs and even uses nearly no CPU after some time while creating or loading a customized world with the following preset code. My PC is definitely strong enough.
{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":1,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":false,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":100,"useLavaLakes":true,"lavaLakeChance":100,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":1,"dirtSize":1,"dirtCount":0,"dirtMinHeight":255,"dirtMaxHeight":0,"gravelSize":50,"gravelCount":40,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":50,"graniteCount":40,"graniteMinHeight":0,"graniteMaxHeight":255,"dioriteSize":50,"dioriteCount":39,"dioriteMinHeight":0,"dioriteMaxHeight":255,"andesiteSize":50,"andesiteCount":40,"andesiteMinHeight":0,"andesiteMaxHeight":255,"coalSize":5,"coalCount":40,"coalMinHeight":0,"coalMaxHeight":255,"ironSize":1,"ironCount":1,"ironMinHeight":0,"ironMaxHeight":255,"goldSize":1,"goldCount":1,"goldMinHeight":0,"goldMaxHeight":64,"redstoneSize":1,"redstoneCount":1,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":1,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":255,"lapisSize":1,"lapisCount":1,"lapisCenterHeight":0,"lapisSpread":0}
Loading world loopCrash when generating world with certain custom preset
Windows, OptiFine (but sholdn't cause it)
Windows
Minecraft hangs and even uses nearly no CPU after some time while creating or loading a customized world with the following preset code. My PC is definitely strong enough.
{"coordinateScale":684.412,"heightScale":684.412,"lowerLimitScale":512.0,"upperLimitScale":512.0,"depthNoiseScaleX":200.0,"depthNoiseScaleZ":200.0,"depthNoiseScaleExponent":0.5,"mainNoiseScaleX":80.0,"mainNoiseScaleY":160.0,"mainNoiseScaleZ":80.0,"baseSize":8.5,"stretchY":12.0,"biomeDepthWeight":1.0,"biomeDepthOffset":0.0,"biomeScaleWeight":1.0,"biomeScaleOffset":0.0,"seaLevel":1,"useCaves":true,"useDungeons":true,"dungeonChance":100,"useStrongholds":true,"useVillages":false,"useMineShafts":true,"useTemples":true,"useMonuments":true,"useRavines":true,"useWaterLakes":true,"waterLakeChance":100,"useLavaLakes":true,"lavaLakeChance":100,"useLavaOceans":false,"fixedBiome":-1,"biomeSize":8,"riverSize":1,"dirtSize":1,"dirtCount":0,"dirtMinHeight":255,"dirtMaxHeight":0,"gravelSize":50,"gravelCount":40,"gravelMinHeight":0,"gravelMaxHeight":256,"graniteSize":50,"graniteCount":40,"graniteMinHeight":0,"graniteMaxHeight":255,"dioriteSize":50,"dioriteCount":39,"dioriteMinHeight":0,"dioriteMaxHeight":255,"andesiteSize":50,"andesiteCount":40,"andesiteMinHeight":0,"andesiteMaxHeight":255,"coalSize":5,"coalCount":40,"coalMinHeight":0,"coalMaxHeight":255,"ironSize":1,"ironCount":1,"ironMinHeight":0,"ironMaxHeight":255,"goldSize":1,"goldCount":1,"goldMinHeight":0,"goldMaxHeight":64,"redstoneSize":1,"redstoneCount":1,"redstoneMinHeight":0,"redstoneMaxHeight":16,"diamondSize":1,"diamondCount":1,"diamondMinHeight":0,"diamondMaxHeight":255,"lapisSize":1,"lapisCount":1,"lapisCenterHeight":0,"lapisSpread":0}
Minecraft throws a crash:
Description: Exception in server tick loop java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt(Random.java:388) at aeb.b(SourceFile:323) at aeb.a(SourceFile:339) at aeb.a(SourceFile:92) at aeb.a(SourceFile:49) at ady.a(SourceFile:388) at aer.a(SourceFile:56) at aoa.a(SourceFile:473) at ld.a(SourceFile:174) at amy.a(SourceFile:875) at ld.c(SourceFile:104) at net.minecraft.server.MinecraftServer.k(SourceFile:315) at bpo.a(SourceFile:112) at bpo.i(SourceFile:128) at net.minecraft.server.MinecraftServer.run(SourceFile:421) at java.lang.Thread.run(Thread.java:745)
Minecraft throws a crash:
Description: Exception in server tick loop java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt(Random.java:388) at aeb.b(SourceFile:323) at aeb.a(SourceFile:339) at aeb.a(SourceFile:92) at aeb.a(SourceFile:49) at ady.a(SourceFile:388) at aer.a(SourceFile:56) at aoa.a(SourceFile:473) at ld.a(SourceFile:174) at amy.a(SourceFile:875) at ld.c(SourceFile:104) at net.minecraft.server.MinecraftServer.k(SourceFile:315) at bpo.a(SourceFile:112) at bpo.i(SourceFile:128) at net.minecraft.server.MinecraftServer.run(SourceFile:421) at java.lang.Thread.run(Thread.java:745)
relates to
Windows
Windows 7
Ubuntu 16.04
is duplicated by
is blocked by
Invalid unless reproducible on a vanilla client.
Just reproduced with a vanilla client. I didn't think about it, because I nearly always play with Optifine. But yes, same error.
It doesn't crash on my PC. The loading screen doesn't disappear and in the task manager "javaw.exe" uses only a little percentage of my CPU.
Minecraft doesn't terminate, but look at the game output console of the launcher and in the crash-reports directory.
Confirmed for 1.9.4 and 16w21b, although I don't know how helpful it is, because I didn't test which part of the preset makes it crash. And because it takes about a minute even on a fast computer to be sure that it did crash and additional time to kill and restart the game, so it's tedious to test.
Confirmed for 1.10-pre1. It even goes to 0% CPU pretty quickly: As soon as the world generation started, I started the task manager, scrolled down to javaw.exe and it already had 0% CPU.
I have this issue in 18w20a with some normal old worlds. Crash log:
Maximilian Herczegh: Not quite.
This ticket: Exception in server tick loop
Yours: Exception generating new chunk
Your issue is
MC-125134I would then say that mine is a new issue (or another one I didn’t find). The main exception of my issue is that a random somehow got negative bounds. The main exception in the other issue is a custom RuntimeException which has something to do with chunks. Exception generating new chunk could probably be many different exceptions.
Maximilian Herczegh: Keep in mind that the symbols in the stack trace are obfuscated. The stack trace of some other snapshot in the description of
MC-125134is exactly the same as your 18w20a stack trace.