"Give" Command throws ArrayIndexOutOfBoundsException on high Item ID values
/give @a 1000000000
2013-06-02 11:58:37 [INFO] An unknown error occurred while attempting to perform
this command
java.lang.ArrayIndexOutOfBoundsException: 1000000000
at ak.b(SourceFile:38)
at y.a(SourceFile:43)
at hz.an(SourceFile:289)
at hz.r(SourceFile:257)
at net.minecraft.server.MinecraftServer.q(SourceFile:397)
at net.minecraft.server.MinecraftServer.run(SourceFile:331)
at gp.run(SourceFile:573)
The stacktrace is serverside only, but this still looks bad.
Not a crash though.
Linked Issues
is duplicated by1
Created Issue:
Various launguage file issues
Some commands give weird or garbled outputs.
/tp @a 100000000 10 1000000000 2013-06-02 11:55:29 [INFO] Format error: The number you have entered (%.2f) is t oo big, it must be at most %.2fI think this is a overflow thing.
/effect @a 100 2013-06-02 11:57:32 [INFO] There is no such mob effect with ID 100There definitely isn't a potion effect with 100, but who's heard of mob effects?
/give @a 1000000000 2013-06-02 11:58:37 [INFO] An unknown error occurred while attempting to perform this command java.lang.ArrayIndexOutOfBoundsException: 1000000000 at ak.b(SourceFile:38) at y.a(SourceFile:43) at hz.an(SourceFile:289) at hz.r(SourceFile:257) at net.minecraft.server.MinecraftServer.q(SourceFile:397) at net.minecraft.server.MinecraftServer.run(SourceFile:331) at gp.run(SourceFile:573)The stacktrace is serverside only, but this still looks bad.
Not a crash though./scoreboard teams option 2013-06-02 12:04:43 [INFO] Usage: /scoreboard teams option <team> <friendlyfire| color> <value> /scoreboard teams option server seeFriendlyInvisibles true 2013-06-02 12:05:26 [INFO] Set option seefriendlyinvisibles for team server to t rueWhile it only lists freindlyfire and color, seefriendlyinvisibles is a valid option too.
/scoreboard players list @a badUsageText 2013-06-02 12:08:21 [INFO] commands.scoreboard.players.list.usageIf you provide too many arguments to /scoreboard players list, it spits out a broken error message.
Some commands give weird or garbled outputs.
/tp@a100000000 101000000000 2013-06-02 11:55:29[INFO]Format error: The number you have entered (%.2f) is t oo big, it must be at most %.2fI think this is a overflow thing.
/effect @a 100 2013-06-02 11:57:32 [INFO] There is no such mob effect with ID 100There definitely isn't a potion effect with 100, but who's heard of mob effects?
/give @a 1000000000 2013-06-02 11:58:37 [INFO] An unknown error occurred while attempting to perform this command java.lang.ArrayIndexOutOfBoundsException: 1000000000 at ak.b(SourceFile:38) at y.a(SourceFile:43) at hz.an(SourceFile:289) at hz.r(SourceFile:257) at net.minecraft.server.MinecraftServer.q(SourceFile:397) at net.minecraft.server.MinecraftServer.run(SourceFile:331) at gp.run(SourceFile:573)
The stacktrace is serverside only, but this still looks bad.
Not a crash though./scoreboard teams option 2013-06-02 12:04:43 [INFO] Usage: /scoreboard teams option <team> <friendlyfire| color> <value> /scoreboard teams option server seeFriendlyInvisibles true 2013-06-02 12:05:26 [INFO] Set option seefriendlyinvisibles for team server to t rueWhile it only lists freindlyfire and color, seefriendlyinvisibles is a valid option too.
/scoreboard players list @a badUsageText 2013-06-02 12:08:21 [INFO] commands.scoreboard.players.list.usageIf you provide too many arguments to /scoreboard players list, it spits out a broken error message.
/give @a 1000000000 2013-06-02 11:58:37 [INFO] An unknown error occurred while attempting to perform this command java.lang.ArrayIndexOutOfBoundsException: 1000000000 at ak.b(SourceFile:38) at y.a(SourceFile:43) at hz.an(SourceFile:289) at hz.r(SourceFile:257) at net.minecraft.server.MinecraftServer.q(SourceFile:397) at net.minecraft.server.MinecraftServer.run(SourceFile:331) at gp.run(SourceFile:573)The stacktrace is serverside only, but this still looks bad.
Not a crash though.
Various launguage file issues"Give" Command throws ArrayIndexOutOfBoundsException on high Item ID values
is duplicated by
Duplicate of MC-17156, please use the search function to see if your bug has already been submitted. Currently over 58% of tickets are being closed as duplicate.
First one is a duplicate of
MC-507. Second one is intended. It's an effect that any mob can have.Last one dupe of
MC-12450.I can confirm the middle one.
Second to last one dupe of
MC-12454, which leaves the middle one as the only valid bug.Well, for the second one, it is a effect mobs can have, but they are potions, not mobs that give the effect.
So it may still be a bug.
(The second one is how /effect with invalid potion effects says mob effect)
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Yep.
Do note that realy large numbers don't work. 1000000000 does, but 4000000000 doesn't.
Correct me if I'm wrong, but the removal of usage of numeric IDs in commands fixed this bug as far as I can tell.
Probably. Though I'll need to test if it effects items /summoned.