-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected Crash when performing a reopen of a "Recent Project" #6835
Comments
Thanks for the crash report @wintermi |
This looks like a crash we've been seeing with alacrity, the panic is on a background thread (number 46) running:
cc @mrnugget |
Hey @wintermi! Thanks for reporting — familiar avatar, from the Ghostty discord :) I'll try to look into this tomorrow, since I can now correlate this issue with the crash report we saw. Should probably help me reproduce it. |
@wintermi can you reliably reproduce this? If so, what are the steps to reproduce this? For the life of me, I can't figure out why terminal would crash. Maybe there's something specific to your terminal setup? I'm happy to hop on a call, btw.! I vaguely remember that we're in the same timezone. |
A few more follow-up questions after digging into this a bit more:
On (4) and leaving some breadcrums: I had previously assumed that between this call here zed/crates/terminal/src/terminal.rs Lines 341 to 346 in a0582d0
which allocates a new PTY with zed/crates/terminal/src/terminal.rs Line 371 in a0582d0
Nothing really happens except the So my current theory is that: |
I have not found a way to reliably reproduce the crash, in fact so far I have only experienced it 2 out 40 attempts. Both crashed after opening a Recent Project, and both crashes happened unexpectedly, while not trying to reproduce the issue. All attempts trying to reproduce the crash from a fresh start failed. |
Always the same project? Or a different one? |
For the first crash, I was switching between 2 projects and the crash occurred after the selection of the Ghostty project. For the second crash, I was switching between 3 project and the crash did occur again on the selection of the Ghostty project. I have however not been able to reproduce the issue since upgrading to the latest version |
After selecting the project.
So far, yes.
I never had the terminal window open on both crashes, or prior to the crash. I generally Cmd + Tab to use Ghostty.
As I have not opened the terminal window, I assume that the shell is never started, or does Zed always start the shell? |
Hmmm, interesting. Zed remembers whether you had a terminal open for a given project. So if you open Ghostty in Zed, open a terminal, then close the window, then use The code that caused your panic originates from the terminal-spawn code, which only gets executed when a terminal is opened. So my guess would be that when you last had the Ghostty project open, there was a terminal open, and when opening the project we restored it, which then leads to the crash. |
This was fixed. |
Check for existing issues
Describe the bug / provide steps to reproduce it
I requested to open a "Recent Project" as shown in the below screenshot.
Zed crashed at this point
Environment
Zed: v0.119.20 (Zed)
OS: macOS 14.3.0
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Apple Crash Report:
Apple Crash Report.log
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.If you only need the most recent lines, you can run the
zed: open log
command palette action to see the last 1000.No response
The text was updated successfully, but these errors were encountered: