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

Crash if having too many command parts - java.lang.StackOverflowError: charTyped event handler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11b, Minecraft 19w12b, 1.14.4, 19w45b, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w20a, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.2, 23w04a, 1.19.4, 23w12a, 1.20.5
    • Confirmed
    • Crash
    • Important
    • Platform

      The bug

      When using a command with many parts (execute and a few hundred as @e)then the game instantly crashes. I think it is caused by trying to highlight all the syntax.

      How to reproduce

      Give yourself a command block and put the text from the command.txt into it. Now when you try to put a space behind the execute the game crashes.

      Crash report

      Description: charTyped event handler
      
      java.lang.StackOverflowError: charTyped event handler
      	at ds.a(SourceFile:130)
      	at ds.s(SourceFile:420)
      	at cb.a(SourceFile:100)
      	at cb.parse(SourceFile:28)
      	at com.mojang.brigadier.tree.ArgumentCommandNode.parse(ArgumentCommandNode.java:56)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:190)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:218)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:214)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:218)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:214)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:218)
      	at com.mojang.brigadier.CommandDispatcher.parseNodes(CommandDispatcher.java:214)
      	...
      

        1. command.txt
          32 kB
          unused account
        2. crash-2018-10-06_14.55.29-client.txt
          196 kB
          [Mod] Michael Wobst
        3. crash-2023-01-29_22.22.09-client.txt
          169 kB
          [Mod] turbo
        4. deobf_crash-2023-01-29_22.22.09-client.txt
          190 kB
          [Bot] Arisa
        5. latest.log
          221 kB
          unused account
        6. MC-133529.png
          278 kB
          [Mod] Avoma

            Unassigned Unassigned
            Thumpbacker [Mod] Anthony Cicinelli
            Votes:
            16 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              CHK: