I have a 16-inch Nov 2024 M4 Pro MacBook Pro for my job. It's enrolled in AppleSeed as part of our internal beta testing.
One of the tasks I'm working on is building an IntelliJ IDEA plugin for our internal configuration system. As part of an enhancement I've been working on, I've needed to get several samples of PSI structures from the IDE. If you've worked with the IntelliJ Platform SDK, you know these PSI structures can be absolutely massive, especially if you need to copy and paste them to save them to files.
I tried to save one of these PSI structures to a file so I could analyze it more closely. I pressed Copy PSI in the IDE, opened Neovim in Ghostty to paste, and pressed the paste shortcut... and my system locked up and hard-crashed.
I tried it again when I rebooted, and the system hard crashed again.
I'm not sure how long the actual string I was copying and pasting is, but I know it's probably absolutely massive.
The problem is that I can't figure out if this is a Ghostty issue or a system issue. Ghostty is fully up to date.
Is anyone able to reproduce this issue?
The issue was happening in Ghostty, iTerm2, and Terminal.app. It happened by (a) pasting directly into the terminal prompt with Command-V, (b) using `pbpaste` in any way (like piping it into `wc -c`), or (c) pasting into an editor like Neovim with Command-V.
It doesn't happen with any other file I tested it with. It also doesn't happen if I try to paste into another app, like Visual Studio Code, TextEdit, or IntelliJ IDEA itself.
Nothing is inherently wrong with the binary/text content of the file. It's all ASCII characters.