[MC-1178] Invalid biome ID in Superflat crash Minecraft Created: 29/Oct/12  Updated: 18/Nov/20  Resolved: 21/Apr/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w07a, Minecraft 1.5.1, Snapshot 13w18b, Snapshot 13w18c, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7.1, Minecraft 1.7.2
Fix Version/s: Minecraft 14w11b

Type: Bug
Reporter: theo Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: biome, crash, superflat-world
Environment:

Windows 7, Java 1.7


Attachments: Text File crash-2012-11-13_23.25.27-server.txt     Text File crash-2012-12-06_21.15.29-server.txt     Text File crash-2012-12-25_17.54.51-server.txt     Text File crash-2013-05-05_21.14.09-server.txt     Text File crash-2013-10-27_19.45.49-server.txt     Text File crash-report.txt     PNG File minecraft.png    
Issue Links:
Relates
relates to MC-31602 Crash Upon Generating New Chunk Resolved
relates to MC-65986 Message in console: "Biome ID is out ... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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



 Comments   
Comment by Mateus Pereira Milbradt [ 18/Nov/20 ]

Relates to MC-198725

Comment by Kumasasa [ 08/Aug/14 ]

Got this too in 14w32b, see MC-65986

Comment by a [ 08/Aug/14 ]

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

Comment by Tails [ 21/Apr/14 ]

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)
Comment by Tails [ 27/Oct/13 ]

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)
Comment by Kumasasa [ 13/Aug/13 ]
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)
Comment by Kumasasa [ 25/Dec/12 ]

Confirmed for 1.4.6

Comment by theo [ 08/Dec/12 ]

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

Comment by Kumasasa [ 06/Dec/12 ]

Note:

Description: Exception in server tick loop
java.lang.ArrayIndexOutOfBoundsException: -1
	at aaj.b(SourceFile:42)
	at aaj.a(SourceFile:27)
Comment by Kumasasa [ 06/Dec/12 ]

Reproduced with 1.4.5, updated crash report attached.

Comment by theo [ 05/Dec/12 ]

Still happens in 1.4.5 but NullPointerException

Comment by Kumasasa [ 01/Dec/12 ]

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)
Comment by Kumasasa [ 13/Nov/12 ]

Confirmed with 1.4.4

Comment by Mustek [ 07/Nov/12 ]

I can confirm that this still happens on 1.4.3pre.

Generated at Sun Jan 12 11:53:34 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.