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

Client crash when lengthy fake player name in sidebar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.1-pre4
    • None
    • Windows Desktop PC
    • Unconfirmed

      If you create a long fake player name in the scoreboard system, then attempt to show that player's name in the sidebar, you get a java exception:

      Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than maximum allowed (47 > 40)

      Once this occurs, no players are able to connect to that server. (They all receive the same error)

      Steps to reproduce:

      /scoreboard objectives add Test dummy
      /scoreboard players add ThisNameIsLongerThan40CharactersDontYouKnowThat Test 1
      /scoreboard objectives setdisplay sidebar Test
      

      The expected scenario is that it should just truncate the name, or not allow you to save a name longer than the maximum.

      Work around:
      Gain access to the server's console and run the following command:

      /scoreboard objectives remove Test
      

        1. Capture.PNG
          Capture.PNG
          243 kB
        2. DxDiag.txt
          37 kB

            Unassigned Unassigned
            albertbori Albert Bori
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: