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

Linked issues

Attachments

Comments 14

I can confirm that this still happens on 1.4.3pre.

Confirmed with 1.4.4

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)

Still happens in 1.4.5 but NullPointerException

Reproduced with 1.4.5, updated crash report attached.

4 more comments

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)

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)

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).

Got this too in 14w32b, see MC-65986

Mateus Pereira Milbradt

Relates to MC-198725

theo

(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