mojira.dev
MC-30484

Giving items with unknown (high) data value crashes and leaves the world unusable

Giving items with unknown (high) data value crashes and leaves the world unusable:

  • /give @p minecraft:double_flower 1 15

  • /give ID minecraft:planks 1 12

  • /give @p minecraft:double_plant 1 12

  • /give @p minecraft:sand 1 3


  • This has completely corrupted my Snapshot testing world to an unusable state, so it is very lethal.

    ---- Minecraft Crash Report ----
    // I let you down. Sorry :(
    
    Time: 9/8/13 12:55 PM
    Description: Rendering entity in world
    
    java.lang.ArrayIndexOutOfBoundsException: 6
    	at apx.a(SourceFile:149)
    	at yb.b_(SourceFile:19)
    	at yv.j(SourceFile:357)
    	at yx.c(SourceFile:94)
    	at bja.a(SourceFile:127)
    	at bja.a(SourceFile:29)
    	at bip.a(SourceFile:206)
    	at bip.a(SourceFile:186)
    	at bho.a(SourceFile:327)
    	at bhh.a(SourceFile:848)
    	at bhh.b(SourceFile:695)
    	at avx.V(SourceFile:713)
    	at avx.e(SourceFile:642)
    	at net.minecraft.client.main.Main.main(SourceFile:103)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Stacktrace:
    	at apx.a(SourceFile:149)
    	at yb.b_(SourceFile:19)
    	at yv.j(SourceFile:357)
    	at yx.c(SourceFile:94)
    	at bja.a(SourceFile:127)
    	at bja.a(SourceFile:29)
    
    -- Entity being rendered --
    Details:
    	Entity Type: Item (tj)
    	Entity ID: 57677
    	Entity Name: item.tile.doublePlant.sunflower
    	Entity's Exact location: -2529.38, 74.31, 38.09
    	Entity's Block location: World: (-2530,74,38), Chunk: (at 14,4,6 in -159,2; contains blocks -2544,0,32 to -2529,255,47), Region: (-5,0; contains chunks -160,0 to -129,31, blocks -2560,0,0 to -2049,255,511)
    	Entity's Momentum: 0.28, -0.00, 0.07
    
    -- Renderer details --
    Details:
    	Assigned renderer: bja@b9bb107
    	Location: -0.00,-0.31,-0.02 - World: (-1,-1,-1), Chunk: (at 15,-1,15 in -1,-1; contains blocks -16,0,-16 to -1,255,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    	Rotation: 0.7690946
    	Delta: 0.039065123
    Stacktrace:
    	at bip.a(SourceFile:206)
    	at bip.a(SourceFile:186)
    	at bho.a(SourceFile:327)
    	at bhh.a(SourceFile:848)
    
    -- Affected level --
    Details:
    	Level name: MpServer
    	All players: 1 total; [bfg['goldkilla88'/172, l='MpServer', x=-2529.37, y=74.62, z=38.11]]
    	Chunk stats: MultiplayerChunkCache: 272, 272
    	Level seed: 0
    	Level generator: ID 00 - default, ver 1. Features enabled: false
    	Level generator options: 
    	Level spawn location: World: (-252,64,248), Chunk: (at 4,4,8 in -16,15; contains blocks -256,0,240 to -241,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    	Level time: 53284 game time, 5026 day time
    	Level dimension: 0
    	Level storage version: 0x00000 - Unknown?
    	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    	Forced entities: 56 total; [sd['Bat'/9211, l='MpServer', x=-2508.31, y=56.10, z=27.50], so['Sheep'/279, l='MpServer', x=-2505.88, y=63.00, z=-32.09], sn['Pig'/283, l='MpServer', x=-2511.47, y=63.00, z=-24.16], sn['Pig'/282, l='MpServer', x=-2501.94, y=64.00, z=-31.06], so['Sheep'/281, l='MpServer', x=-2509.19, y=63.00, z=-38.13], so['Sheep'/286, l='MpServer', x=-2502.16, y=68.00, z=0.06], sn['Pig'/285, l='MpServer', x=-2509.53, y=64.00, z=-26.03], sn['Pig'/284, l='MpServer', x=-2505.50, y=65.00, z=-20.22], sd['Bat'/56827, l='MpServer', x=-2520.57, y=42.02, z=47.29], sd['Bat'/56828, l='MpServer', x=-2541.73, y=32.03, z=46.46], so['Sheep'/266, l='MpServer', x=-2527.50, y=68.00, z=-17.22], so['Sheep'/267, l='MpServer', x=-2517.56, y=64.00, z=-12.31], tj['item.item.egg'/57180, l='MpServer', x=-2559.28, y=68.13, z=75.44], sd['Bat'/56818, l='MpServer', x=-2527.52, y=23.16, z=-1.95], so['Sheep'/265, l='MpServer', x=-2520.19, y=63.00, z=-27.91], sf['Chicken'/305, l='MpServer', x=-2464.34, y=68.00, z=84.47], sf['Chicken'/304, l='MpServer', x=-2469.84, y=68.58, z=75.53], sn['Pig'/307, l='MpServer', x=-2458.50, y=76.00, z=20.50], sn['Pig'/306, l='MpServer', x=-2468.03, y=64.00, z=25.97], sf['Chicken'/309, l='MpServer', x=-2458.50, y=73.00, z=77.50], sf['Chicken'/308, l='MpServer', x=-2461.50, y=71.00, z=78.50], bfg['goldkilla88'/172, l='MpServer', x=-2529.37, y=74.62, z=38.11], sf['Chicken'/310, l='MpServer', x=-2448.47, y=73.00, z=83.44], sd['Bat'/54738, l='MpServer', x=-2608.75, y=32.72, z=88.50], sr['Squid'/51517, l='MpServer', x=-2523.04, y=61.31, z=55.51], sr['Squid'/51516, l='MpServer', x=-2524.53, y=61.32, z=56.81], sd['Bat'/55278, l='MpServer', x=-2523.51, y=25.00, z=-31.06], so['Sheep'/290, l='MpServer', x=-2495.53, y=68.00, z=-38.81], sr['Squid'/51518, l='MpServer', x=-2518.64, y=61.34, z=58.46], sd['Bat'/1984, l='MpServer', x=-2509.25, y=55.10, z=26.25], so['Sheep'/292, l='MpServer', x=-2494.47, y=68.00, z=-37.78], so['Sheep'/293, l='MpServer', x=-2495.09, y=68.00, z=-35.94], sn['Pig'/299, l='MpServer', x=-2465.50, y=66.00, z=23.50], sn['Pig'/300, l='MpServer', x=-2468.50, y=70.00, z=22.69], sd['Bat'/54715, l='MpServer', x=-2520.25, y=28.36, z=-5.75], sd['Bat'/53955, l='MpServer', x=-2560.50, y=18.10, z=27.25], sd['Bat'/29192, l='MpServer', x=-2527.44, y=45.10, z=34.72], sd['Bat'/56833, l='MpServer', x=-2475.21, y=56.89, z=-1.77], sf['Chicken'/220, l='MpServer', x=-2605.53, y=64.00, z=97.41], sd['Bat'/56832, l='MpServer', x=-2493.38, y=58.10, z=2.25], sd['Bat'/16598, l='MpServer', x=-2513.34, y=54.10, z=26.94], sn['Pig'/239, l='MpServer', x=-2588.97, y=70.00, z=43.03], sf['Chicken'/236, l='MpServer', x=-2606.69, y=64.00, z=96.69], sf['Chicken'/235, l='MpServer', x=-2607.50, y=64.00, z=89.50], sf['Chicken'/234, l='MpServer', x=-2603.50, y=62.37, z=90.50], sn['Pig'/233, l='MpServer', x=-2597.66, y=72.00, z=51.25], sd['Bat'/28486, l='MpServer', x=-2510.25, y=54.10, z=25.25], sn['Pig'/250, l='MpServer', x=-2544.03, y=74.00, z=94.16], sn['Pig'/248, l='MpServer', x=-2551.50, y=75.00, z=92.50], sn['Pig'/249, l='MpServer', x=-2551.09, y=75.00, z=86.47], sf['Chicken'/246, l='MpServer', x=-2554.50, y=71.00, z=78.50], sn['Pig'/247, l='MpServer', x=-2548.88, y=80.00, z=100.09], sf['Chicken'/245, l='MpServer', x=-2552.50, y=68.00, z=79.50], sf['Chicken'/242, l='MpServer', x=-2560.56, y=71.00, z=76.59], sf['Chicken'/243, l='MpServer', x=-2560.47, y=68.00, z=75.53], tj['item.item.egg'/51436, l='MpServer', x=-2551.56, y=68.13, z=78.63]]
    	Retry entities: 0 total; []
    	Server brand: vanilla
    	Server type: Integrated singleplayer server
    Stacktrace:
    	at bfb.a(SourceFile:285)
    	at avx.b(SourceFile:1813)
    	at avx.e(SourceFile:651)
    	at net.minecraft.client.main.Main.main(SourceFile:103)

Linked issues

MC-59815 Game shuts down every time pressing 'e' to open inventory Resolved MC-61692 Hopper: java.lang.ArrayIndexOutOfBoundsException: 69 Resolved MC-62624 Crashed because I console command spawned an invalid block in realm Resolved MC-64288 Every time I log on to the Lichcraft creative server I crash Resolved MC-67658 Realm crash when i connect. Please Help! Resolved

Comments 31

That block doesn't exist and the game doesn't know what it is.

Ruben van Baarle

That block is added in the latest snapshot, even if it didn't exist, the give command should prevent it from crashing the game.

175 has some flowers, but it only goes up to a damage value of 5. Don't play with stuff that isn't supposed to be used. If you want to use custom items, be aware of the consequences.

Is it possible that values above 5 are the other halves of those flowers? Like the ones that spawn as 2 blocks tall, alike a piston each block section is a different value.

Thats what I was trying to find, James. Ymus, if it was non-existent, it would tell me so "This/that id does not exist!"(or something along those lines) and not crash.

21 more comments

Fixed in 14w25b, Both item ids 7 and 6 gives you a missing texture block and creates a normal sunflower on placement.

Still remains, in one place: end portal blocks with eyes.

Conor McS, that was a pig behind me. The block made entities act weird when you move around so thats why everything looks warped. Glad to see it fixed for the upcoming 1.8

@@unknown
Cannot confirm.

/give @p end_portal_frame 1 4

does not crash

Could relate to: MC-57332

Justin

(Unassigned)

Confirmed

corrupted, entity, exception, item, item-ids, lethal, rendering, rosebush, singeplayer, spawned, sunflower

Minecraft 13w36a, Minecraft 13w37a, Minecraft 13w37b, Minecraft 13w39b, Minecraft 1.7.2, ..., Minecraft 1.7.8, Minecraft 1.7.9, Minecraft 14w18a, Minecraft 14w20b, Minecraft 14w21b

Minecraft 14w25b

Retrieved