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

The server crashes when attempting to load chunks that contain command blocks that consist of large numbers of characters within the previous output field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19 Pre-release 1
    • 22w16b, 22w17a
    • None
    • Confirmed
    • Crash
    • Very Important

      The Bug:

      The server crashes when attempting to load chunks that contain command blocks that consist of large numbers of characters within the previous output field.

      The full server console log and a crash report regarding this have been attached and can be found below.

      Stack Trace:

      Description: Exception generating new chunk
      
      java.io.EOFException
          at java.base/java.io.DataInputStream.readUnsignedShort(DataInputStream.java:346)
          at pq.a(SourceFile:54)
          at pq$1.a(SourceFile:34)
          at oz$1.a(SourceFile:136)
          at pu$b.a(SourceFile:50)
          at pf$1.a(SourceFile:91)
          at oz$1.a(SourceFile:96)
          at pj.a(SourceFile:120)
          at cvr.a(SourceFile:65)
          at cvo.b(SourceFile:218)
          at cvo.a(SourceFile:231)
          at awt$b.run(SourceFile:59)
          at awr.h(SourceFile:91)
          at awr.a(SourceFile:146)
          at awr.run(SourceFile:102)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
          at java.base/java.lang.Thread.run(Thread.java:833)

      Steps to Reproduce:

      • Launch a server running 22w16b that has command blocks enabled and join it.
      • 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"}
      • Leave the game, shut down the server, and reboot it.
      • Take note as to whether or not the server crashes when attempting to load chunks that contain command blocks that consist of large numbers of characters within the previous output field.

      Observed Behavior:

      The server crashes.

      Expected Behavior:

      The server would not crash.

            boq [Mojang] Bartosz Bok
            Avoma [Mod] Avoma
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: