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
Crash right after launching it (20 seconds after opening) #11168
Comments
Hey @GrigoriosTsenos, is this a reproducible crash? Does it happen on every open? |
yes it does, on every single open |
Can you post the path of your project? The crash seems to be in the Rust stdlib on parsing of path components. |
right when i open zed, which is when it crashes, it opens a .cpp file on my "home" folder , which is on Users/gregtsen/ex2.cpp |
wait you were on the right direction, i removed the folder that i had opened in the project and it doesn't crash anymore. What the hell?? |
What was the directory's path/name? |
i already told you, it was the user's home address like ~/ |
Thanks for reporting this, and sorry that Zed is crashing for you! Looking at the crash report, the crash seems to be this one: https://developer.apple.com/documentation/xcode/sigtrap_sigill. "Some lower-level libraries, such as Dispatch, trap the process with this exception upon encountering an unrecoverable error, and log additional information about the error in the Additional Diagnostic Information section of the crash report." We've seen about 16 of these across the user-base in the last week, so it'd be nice to get to the bottom of it.
Unfortunately it does not actually seem like there is an "Additional Diagnostic Information" section in the crash report :/. Looking into the crash itself, it's happening on the settings-file-watching thread:
The file you uploaded has some extra backslashes, so this stack-trace is from a similar crash from a different user, but I think it's very likely the same:
It looks like we call One thing that is potentially interesting is that it seems like you're opening zed in your home directory (which will obviously contain your settings file), but I haven't yet figured out how to reproduce this myself. Do you have time in the next few days to see if we can figure out any more information over a screen share? If so, please email me conrad@zed.dev |
I did a bit more digging here, and it seems like It looks like we're not calling Potential fix here: #11241 |
(The only thing that doesn't quite make sense about that theory, is that it shouldn't be crashing so reliably after 20s...) |
Contributes: #11168 https://developer.apple.com/documentation/corefoundation/1542428-cfrunloopgetcurrent implies that we should be `CFRetain`ing the run loop. Lets do that, and see if it reduces the number of crashes we see. Release Notes: - (maybe) Fix a rare crash in watching settings files.
where do i find these files so i can correct it with the CFRetain? |
Whoops, this one isn't confirmed yet. Leaving it open until we can confirm. |
@GrigoriosTsenos are you able to run the preview release from https://zed.dev/releases/preview/0.134.0? If so that contains the (probable) fix. |
Contributes: zed-industries#11168 https://developer.apple.com/documentation/corefoundation/1542428-cfrunloopgetcurrent implies that we should be `CFRetain`ing the run loop. Lets do that, and see if it reduces the number of crashes we see. Release Notes: - (maybe) Fix a rare crash in watching settings files.
yeah it doesn't crash |
Great, thanks for confirming! |
thank you so much for the help :) |
Contributes: #11168 https://developer.apple.com/documentation/corefoundation/1542428-cfrunloopgetcurrent implies that we should be `CFRetain`ing the run loop. Lets do that, and see if it reduces the number of crashes we see. Release Notes: - (maybe) Fix a rare crash in watching settings files.
Check for existing issues
Describe the bug / provide steps to reproduce it
OK so after 20 seconds ( counted) it crashes right after opening it, and i also noticed that it reaches like 150% cpu time on activity monitor right before it crashes.
Zed had been working for me for like 1 week and now it suddendly crashes
The log that pops up after says this ( added as a file cause it was too long)
Uploading log.txt…
Environment
Mac OS , macbook air m1 2020
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: