[MC-9065] Crash when giving item 31 with damage 3 Created: 02/Feb/13  Updated: 06/May/15  Resolved: 18/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w05b, Snapshot 13w07a
Fix Version/s: Minecraft 1.5

Type: Bug
Reporter: Jnrm3 Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: command, crash, multiplayer

Attachments: Text File crash-2013-02-03_00.20.38-client.txt    
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

Typing the command /give (player) 31 1 3 will cause the player who is given the item to crash and make the server/world unplayable to him/her, also severely glitches out the player who crashes.

Video of what happens here http://www.youtube.com/watch?v=cqVZimRNYoE



 Comments   
Comment by Mustek [ 15/Feb/13 ]

Confirmed in 13w07a

Comment by Anon Ymus [ 05/Feb/13 ]

The game should have better error-handling such as simply not allowing that item to be given!

Comment by Kellby Benson [ 05/Feb/13 ]

My guess is that the data values are stored as an array, and as such the system is trying to use a nonexistent array component, causing the error that Kumasasa pointed out above.

Comment by Anon Ymus [ 05/Feb/13 ]

But the game shouldn't crash.

Comment by Kellby Benson [ 05/Feb/13 ]

Item id 31 is used for dead shrubs, tall grass, and ferns. There is no item for the id with a NBT value of 3.

Comment by DicoTheRedstoner [ 03/Feb/13 ]

If this happened to your player, you can fix him crashing when getting on by deleting the player file in root/world/players

Comment by Kumasasa [ 02/Feb/13 ]

Note:

java.lang.ArrayIndexOutOfBoundsException: 3
	at aof.a(SourceFile:31)
	at un.a_(SourceFile:28)
	at vv.h(SourceFile:340)
	at vx.c(SourceFile:86)
	at bgh.a(SourceFile:118)
Comment by Kumasasa [ 02/Feb/13 ]

Confirmed.

Comment by Kumasasa [ 02/Feb/13 ]

Can you please attach the crash report ?

Comment by DicoTheRedstoner [ 02/Feb/13 ]

Thanks, I had to crash my server so an explosion got rolled back ^^

Generated at Sun Jan 12 12:19:51 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.