This is reproduceable on Minecraft 1.11, tested with the vanilla server jar.
https://youtu.be/RvsiKgHG1rE?t=13s
Players are able to dupe items or stacks of items by sending a disconnect packet from their client and dropping an item at the same moment. The player drops the item in their hand, and closing the connection with their client upon dropping an item. When they re-connect in, the item is in their hand and on the ground.
[03:55:09] [Server thread/INFO]: pudens29 lost connection: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(1) exceeds writerIndex(1): UnpooledHeapByteBuf(ridx: 1, widx: 1, cap: 1)], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null,insertion=null}}
I did update Java to openjdk 1.7.0_21 and this issue no longer occurs. If Java 6 is truly no longer supported, then this can be closed.
This is most certainly NOT a modded server. This was running a raw minecraft_server.1.6.1.jar freshly downloaded from Mojang servers. I downloaded the raw Minecraft server in an attempt to see what the base level of the crash was, as the mod developer was saying it was not caused by their modded server build. I was able to reproduce the crash with just the raw client and server.
But the Java update did fix the issue. Why do you not support Java 6 any longer if the game is still compiled using Java 6?
I fail to see how this is a modified minecraft, This was on a vanilla 1.4.2 Server! Modified clients don't give access to the '/debug true' command.
I'm no longer running vanilla on this server because this error was making it unplayable!
Apologies for the multitude of emails, wasn't considering how editing affects the email servers.
As far as this bug goes, is there any chance of getting the status changed to reopened?
In addition to simply dropping items on the ground, players are also able to drop the item into a hopper and disconnect. The hopper updates and pulls in the item, but the player's inventory is not updated and still has the item in it, duplicating the item. This works with any item, but is especially game-breaking with shulker boxes filled with items.