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

Crash when typing scoreboard criteria with invalid character

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed

      Description

      The bug

      The game crashes when trying to add an invalid character (Non a-z0-9/.-) (colon ":" or bracket "[]", to name a few) after, for example, minecraft.used: or minecraft.custom:.

      How to reproduce

      scoreboard objectives add foo minecraft.custom::
      
      scoreboard objectives add foo minecraft.custom:test[
      
      scoreboard objectives add foo minecraft.custom:testA
      

      (Uppercase characters are invalid...)
      The game will crash after placing the "invalid character".

      Crash report

      Description: charTyped event handler
      
      g: Non [a-z0-9/._-] character in path of location: minecraft:(
      	at mv.<init>(SourceFile:32)
      	at mv.a(SourceFile:41)
      	at bmk.a(SourceFile:75)
      	at by.a(SourceFile:43)
      	at by.parse(SourceFile:22)
      	at com.mojang.brigadier.tree.ArgumentCommandNode.parse(ArgumentCommandNode.java:55)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:169)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:191)
      	at com.mojang.brigadier.CommandDispatcher.parse(CommandDispatcher.java:143)
      	at bpr.h(SourceFile:160)
      	at bpr.a(SourceFile:96)
      	at bpr$$Lambda$724/640592192.accept(Unknown Source)
      	at boc.a(SourceFile:146)
      	at boc.b(SourceFile:141)
      	at boc.charTyped(SourceFile:375)
      	at bow.charTyped(SourceFile:40)
      	at bmu.a(SourceFile:360)
      	at bmu$$Lambda$728/1205558159.run(Unknown Source)
      	at bqo.a(SourceFile:428)
      	at bmu.a(SourceFile:360)
      	at bmu$$Lambda$159/56531119.invoke(Unknown Source)
      	at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520)
      	at bnh.a(SourceFile:282)
      	at bmx.b(SourceFile:846)
      	at bmx.a(SourceFile:380)
      	at net.minecraft.client.main.Main.main(SourceFile:140)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Scyllarus ScyllarusDactyl
            • Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: