mojira.dev
MC-1178

Invalid biome ID in Superflat crash Minecraft

If you use incorrect biome ID in a superflat preset, the world generation will stuck in "Converting world". It's difficult to close Minecraft without the Task manager.

How to reproduce :
1. Create new world
2. Go to "More world options"
3. Select superflat world type
4. Click on "Customize"
5. In the preset box, type 2;7;x;village
Replace x by any invalid biome id (below 0 or above 22)
6. Click on "Use preset"
7. Click on "Done"
8. Create the new world

EDIT 1:I get a crash report

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
migrated

I can confirm that this still happens on 1.4.3pre.

kumasasa

Confirmed with 1.4.4

kumasasa

Note:

Description: Exception generating new chunk
java.lang.NullPointerException
	at aap.d(SourceFile:98)
Description: Exception in server tick loop
java.lang.ArrayIndexOutOfBoundsException: -1
	at zr.b(SourceFile:42)
migrated

Still happens in 1.4.5 but NullPointerException

kumasasa

Reproduced with 1.4.5, updated crash report attached.

kumasasa

Note:

Description: Exception in server tick loop
java.lang.ArrayIndexOutOfBoundsException: -1
	at aaj.b(SourceFile:42)
	at aaj.a(SourceFile:27)
migrated

I found an idea to fix this : The validation of superflat preset must be more strict so the biome id must be beetween 0 and 22

kumasasa

Confirmed for 1.4.6

kumasasa

1.6.2

Client> 2013-08-13 19:47:28 [SERVER] [WARNING] Unable to find spawn biome
Client> u: Exception generating new chunk
Client> 	at abv.<init>(SourceFile:167)
Client> 	at jr.<init>(SourceFile:59)
Client> 	at bkw.a(SourceFile:77)
Client> 	at bkw.d(SourceFile:106)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:314)
Client> 	at hh.run(SourceFile:582)
Client> Caused by: java.lang.NullPointerException
Client> 	at aen.d(SourceFile:95)
Client> 	at jq.c(SourceFile:84)
Client> 	at jq.d(SourceFile:116)
Client> 	at abv.e(SourceFile:289)
Client> 	at abv.a(SourceFile:213)
Client> 	at abv.c(SourceFile:237)
Client> 	at abv.b(SourceFile:197)
Client> 	at aeh.a(SourceFile:61)
Client> 	at jr.b(SourceFile:563)
Client> 	at jr.a(SourceFile:532)
Client> 	at abv.<init>(SourceFile:158)
Client> 	... 5 more
Client> 2013-08-13 19:47:28 [SERVER] [SEVERE] Encountered an unexpected exception u
Client> u: Exception generating new chunk
Client> 	at abv.<init>(SourceFile:167)
Client> 	at jr.<init>(SourceFile:59)
Client> 	at bkw.a(SourceFile:77)
Client> 	at bkw.d(SourceFile:106)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:314)
Client> 	at hh.run(SourceFile:582)
Client> Caused by: java.lang.NullPointerException
Client> 	at aen.d(SourceFile:95)
Client> 	at jq.c(SourceFile:84)
Client> 	at jq.d(SourceFile:116)
Client> 	at abv.e(SourceFile:289)
Client> 	at abv.a(SourceFile:213)
Client> 	at abv.c(SourceFile:237)
Client> 	at abv.b(SourceFile:197)
Client> 	at aeh.a(SourceFile:61)
Client> 	at jr.b(SourceFile:563)
Client> 	at jr.a(SourceFile:532)
Client> 	at abv.<init>(SourceFile:158)
Client> 	... 5 more
Client> 2013-08-13 19:47:28 [SERVER] [SEVERE] This crash report has been saved to: C:\Users\AppData\Roaming\.minecraft\crash-reports\crash-2013-08-13_19.47.28-server.txt
Client> 2013-08-13 19:47:28 [SERVER] [INFO] Stopping server
Client> 2013-08-13 19:47:28 [SERVER] [INFO] Saving players
Client> 2013-08-13 19:47:28 [SERVER] [INFO] Saving worlds
Client> java.lang.NullPointerException
Client> 	at net.minecraft.server.MinecraftServer.m(SourceFile:286)
Client> 	at bkw.m(SourceFile:234)
Client> 	at net.minecraft.server.MinecraftServer.run(SourceFile:372)
Client> 	at hh.run(SourceFile:582)
migrated

1.7.2:

Description: Exception generating new chunk

java.lang.NullPointerException: Exception generating new chunk
	at apg.d(SourceFile:102)
	at mi.c(SourceFile:78)
	at mi.d(SourceFile:108)
	at afn.e(SourceFile:311)
	at afn.a(SourceFile:249)
	at afn.c(SourceFile:273)
	at afn.b(SourceFile:234)
	at apa.a(SourceFile:62)
	at mj.b(SourceFile:565)
	at mj.a(SourceFile:534)
	at afn.<init>(SourceFile:193)
	at mj.<init>(SourceFile:69)
	at bsk.a(SourceFile:70)
	at bsk.e(SourceFile:99)
	at net.minecraft.server.MinecraftServer.run(SourceFile:328)
	at ky.run(SourceFile:617)
migrated

Fixed in 14w11b:

[20:43:50 INFO]: Client> [20:43:50] [Server thread/INFO]: Starting integrated minecraft server version 14w11b
[20:43:50 INFO]: Client> [20:43:50] [Server thread/INFO]: Generating keypair
[20:43:50 INFO]: Client> [20:43:50] [Server thread/INFO]: Converting map!
[20:43:50 INFO]: Client> [20:43:50] [Server thread/INFO]: Scanning folders...
[20:43:50 INFO]: Client> [20:43:50] [Server thread/INFO]: Total conversion count is 0
[20:43:50 INFO]: Client> [20:43:50] [Server thread/WARN]: Biome ID is out of bounds: -1, defaulting to 0 (Ocean)
migrated

Do we know what causes this? Why are Biome IDs going out of bounds? I just got the out of bounds, defaulting to 0 message on 14w32d. It served the message over and over again. Unfortunately, I deleted the world before I saw the messages, so I don't know what seed it was (it was a default generated world).

kumasasa

Got this too in 14w32b, see MC-65986

migrated

Relates to MC-198725

migrated

(Unassigned)

Confirmed

biome, crash, superflat-world

Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, ..., Minecraft 1.6.4, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2

Minecraft 14w11b

Retrieved