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

The game output and server console are logged with errors regarding NBT string writing failures when interacting with command blocks that consist of large numbers of characters within the previous output field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.19 Pre-release 4, 1.19 Pre-release 5
    • None
    • Confirmed
    • (Unassigned)

      The Bug:

      The game output and server console are logged with errors regarding NBT string writing failures when interacting with command blocks that consist of large numbers of characters within the previous output field.

      The full server console log regarding this has been attached and can be found below.

      Stack Trace:

      [17:25:51] [IO-Worker-16/ERROR]: Failed to write NBT String
      java.io.UTFDataFormatException: encoded string ({"extra"...5:51] "}) too long: 332202 bytes
          at java.io.DataOutputStream.writeUTF(DataOutputStream.java:369) ~[?:?]
          at java.io.DataOutputStream.writeUTF(DataOutputStream.java:333) ~[?:?]
          at qa.a(SourceFile:87) ~[server-1.19-pre4.jar:?]
          at pj.a(SourceFile:476) ~[server-1.19-pre4.jar:?]
          at pj.a(SourceFile:165) ~[server-1.19-pre4.jar:?]
          at pp.a(SourceFile:128) ~[server-1.19-pre4.jar:?]
          at pj.a(SourceFile:476) ~[server-1.19-pre4.jar:?]
          at pj.a(SourceFile:165) ~[server-1.19-pre4.jar:?]
          at pt.a(SourceFile:134) ~[server-1.19-pre4.jar:?]
          at pt.a(SourceFile:99) ~[server-1.19-pre4.jar:?]
          at cxq.a(SourceFile:79) ~[server-1.19-pre4.jar:?]
          at cxn.a(SourceFile:260) ~[server-1.19-pre4.jar:?]
          at cxn.a(SourceFile:250) ~[server-1.19-pre4.jar:?]
          at ayh$b.run(SourceFile:59) [server-1.19-pre4.jar:?]
          at ayf.h(SourceFile:91) [server-1.19-pre4.jar:?]
          at ayf.a(SourceFile:146) [server-1.19-pre4.jar:?]
          at ayf.run(SourceFile:102) [server-1.19-pre4.jar:?]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
          at java.lang.Thread.run(Thread.java:833) [?:?]

      Steps to Reproduce:

      • Launch an instance of 1.19 Pre-release 4 with logs enabled.
      • Unlock all recipes within the game by executing the command provided below.
      • /recipe give @s *
        
      • Summon a repeating command block nearby that will constantly get the data of your player.
      • /setblock ~ ~ ~3 minecraft:repeating_command_block{auto:1b,Command:"data get entity @p"}
        
      • Open the command block and look at the game output console.
      • Take note as to whether or not the game output and server console are logged with errors regarding NBT string writing failures when interacting with command blocks that consist of large numbers of characters within the previous output field.

      Observed Behavior:

      Errors are printed into the game output and server console.

      Expected Behavior:

      No errors would be printed into the game output and server console.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: