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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w06a
    • Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w50a, Minecraft 18w02a
    • None
    • Confirmed

      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)
      

            dinnerbone [Mojang] Nathan Adams
            Toboe_Irbis [Helper] MichaƂ
            Votes:
            8 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: