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

Game crashes when there is closing square bracket without opening in command

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w50a, Minecraft 18w02a
    • Fix Version/s: Minecraft 18w06a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Game crashes when you type:

      /data get entity @p ]

      also problem occurs on removal entity data.
      Whenever there is closing square bracket without opening one with this command - game crashes.

      Crash report

      Description: keyPressed event handler
      
      java.lang.OutOfMemoryError: Java heap space
      	at java.lang.String.substring(String.java:1956)
      	at bu.a(SourceFile:63)
      	at bu.a(SourceFile:50)
      	at bu.parse(SourceFile:19)
      	at com.mojang.brigadier.tree.ArgumentCommandNode.parse(ArgumentCommandNode.java:55)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:167)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:189)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:189)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:189)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:189)
      	at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:141)
      	at bnk.h(SourceFile:134)
      	at bnk.a(SourceFile:94)
      	at bnk$$Lambda$473/1635207173.accept(Unknown Source)
      	at blt.a(SourceFile:145)
      	at blt.b(SourceFile:140)
      	at blt.keyPressed(SourceFile:275)
      	at bnk.keyPressed(SourceFile:124)
      	at bkl.a(SourceFile:269)
      	at bkl$$Lambda$470/2119860224.run(Unknown Source)
      	at boi.a(SourceFile:428)
      	at bkl.a(SourceFile:267)
      	at bkl$$Lambda$62/752893574.invoke(Unknown Source)
      	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:23)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520)
      	at bko.b(SourceFile:791)
      	at bko.a(SourceFile:370)
      	at net.minecraft.client.main.Main.main(SourceFile:134)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Dinnerbone (Nathan Adams)
                Reporter:
                Toboe_Irbis Michał
              • Votes:
                8 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: