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

Players are disconnected from servers when opening command blocks that consist of large numbers of characters within the previous output field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19 Pre-release 4
    • 1.18.2, 22w16b, 22w17a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19 Pre-release 3
    • None
    • Confirmed
    • Networking
    • Important

      The Bug:

      Players are disconnected from servers when opening command blocks that consist of large numbers of characters within the previous output field.

      It's important to note that this issue doesn't occur in singleplayer.

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

      Stack Trace:

      [10:32:06] [Netty Server IO #2/ERROR]: Error receiving packet 7
      io.netty.handler.codec.EncoderException: java.io.UTFDataFormatException: encoded string ({"extra"...2:06] "}) too long: 331525 bytes
          at qn.a(SourceFile:443) ~[server-22w16b.jar:?]
          at sh.a(SourceFile:44) ~[server-22w16b.jar:?]
          at qp.a(SourceFile:45) ~[server-22w16b.jar:?]
          at qp.encode(SourceFile:14) ~[server-22w16b.jar:?]
          at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:790) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:758) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:808) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:306) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
          at ql.a(SourceFile:213) ~[server-22w16b.jar:?]
          at ql.b(SourceFile:205) ~[server-22w16b.jar:?]
          at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) [netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-all-4.1.68.Final.jar:4.1.68.Final]
          at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-all-4.1.68.Final.jar:4.1.68.Final]
          at 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"}
        
      • Open the command block and take note as to whether or not you are disconnected from the server.

      Observed Behavior:

      Players are disconnected from servers.

      Expected Behavior:

      Players would not be disconnected from servers.

        1. latest.log
          13 kB
        2. MC-250918.mp4
          3.09 MB
        3. MC-250918.png
          MC-250918.png
          276 kB

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

              Created:
              Updated:
              Resolved:
              CHK: