mojira.dev
MC-53469

Sliders have incorrect values causing world to never be created (java.lang.IllegalArgumentException: n must be positive)

(when randomizing the options still causes the max height to be smaller than the min height!)

go to a new customizable world
and press random on the second page
min height sometimes is bigger than max height.
making it impossible to create the world leaving players waiting for hours.

You can also manualy slide the min higher than the max one.

Linked issues

MC-53426 custom worlds dont work at all Resolved MC-53431 Server crash while generating customized world Resolved MC-53432 Unknown Crash - "n must be positive" Resolved MC-53441 Crash while creating a customized world using new snapshot feature. Resolved MC-53481 Changing Oceans to lava, inverting the rarities of lava and water, increasign gold hight to max it says building terrain and has done for 25 minutes Resolved

Attachments

Comments 8

Confirmed

java.lang.IllegalArgumentException: n must be positive

[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Starting integrated minecraft server version 14w17a
[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Generating keypair
[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Converting map!
[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Scanning folders...
[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Total conversion count is 0
[14:34:15 INFO]: Client> [14:34:15] [Server thread/INFO]: Preparing start region for level 0
[14:34:16 INFO]: Client> [14:34:16] [Server thread/ERROR]: Encountered an unexpected exception
[14:34:16 INFO]: Client> java.lang.IllegalArgumentException: n must be positive
[14:34:16 INFO]: Client> 	at java.util.Random.nextInt(Unknown Source) ~[?:1.7.0_45]
[14:34:16 INFO]: Client> 	at alx.a(SourceFile:262) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at alx.a(SourceFile:278) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at alx.a(SourceFile:92) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at alx.a(SourceFile:49) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at amk.a(SourceFile:47) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at ayy.a(SourceFile:460) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at od.a(SourceFile:175) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at axr.a(SourceFile:859) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at od.c(SourceFile:104) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at net.minecraft.server.MinecraftServer.i(SourceFile:269) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at cim.a(SourceFile:94) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at cim.g(SourceFile:110) ~[14w17a.jar:?]
[14:34:16 INFO]: Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:367) [14w17a.jar:?]
[14:34:16 INFO]: Client> 	at mu.run(SourceFile:667) [14w17a.jar:?]
[14:34:16 INFO]: Client> [14:34:16] [Server thread/ERROR]: This crash report has been saved to: C:\Users\USERNAME\AppData\Roaming\.minecraft\crash-reports\crash-2014-04-24_14.34.16-server.txt
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Stopping server
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Saving players
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Saving worlds
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[14:34:16 INFO]: Client> [14:34:16] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[14:42:09 ERROR]: Game ended with bad state (exit code 1)

It appears that changing the river size also causes this.

But how come when I try to quit Minecraft it doesn't?

Still an issue in 14w18a
Not fixed
seems to happen a lot with andesite

well at least they re opened the issue because of me.

Wanted to add that this is still in 14w19a

Fixed, though rather than limiting the slider values themselves (which would be difficult), it will internally swap min/max if the min setting is greater than max.

According to MC-55376, this appears to still occur in 14w20b.

AgentM

migrated

Confirmed

customization, slider, world

Minecraft 14w17a, Minecraft 14w18a, Minecraft 14w18b, Minecraft 14w19a

Minecraft 14w18a, Minecraft 14w20a

Retrieved