mojira.dev
MC-247245

StackOverflowError in keyPressed event handler when pasting large amount of text into command block

When pasting the contents of the attached file, text.txt, into a command block, a "saving world" screen pops up quickly before the game crashes with the message

The game crashed whilst keypressed event handler
Error: java.lang.StackOverflowError: keyPressed event handler
Exit Code: -1

I have tried this twice and it has occurred both times; both crash reports are attached.

Environment

Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.1, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 2695771408 bytes (2570 MiB) / 6811549696 bytes (6496 MiB) up to 10737418240 bytes (10240 MiB)

Linked issues

Attachments

Comments 3

From the deobfuscated crash report it looks like the issue was with parsing the huge amount of nested lists and objects, not the amount of text pasted.

Thank you for your report!
We're tracking this issue in MC-133529, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

migrated

(Unassigned)

Unconfirmed

1.18.1

Retrieved