Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-96993

Playsound commands crashes guest players on LAN server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 16w05b, Minecraft 16w06a
    • None
    • LAN server, Java 8
    • Unconfirmed

      Steps on how to reproduce:
      1. Have two players join lan world.
      2. Insert this command into a command block:
      execute @a ~ ~ ~ /playsound entity.generic.explode blocks @p
      3. Execute the command, and observe guest player in the LAN world get kicked from the server (not the LAN host) with the error message:
      "Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(X) + length(1) exceeds writerIndex(X): UnpooledHeapByteBuf(ridx: X, widx: X, cap: X" where capital X is the length of the sound played + 2.

      Note that whilst I managed to produce the error with two accounts on the same computer (on both clients), it also happened to my friend on my LAN server, causing him to crash.

      Attached crash log.

            Unassigned Unassigned
            bananenbroek4 bananenbroek4
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: