-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Zed freezes when editing Rust code #24788
Comments
@SomeoneToIgnore It looks like a lot of time being spent in |
How to access the logs when the editor is frozen? Are they saved to a file? |
Good point, they are not accessible then. |
I killed New flamegraph: |
That's all pretty clear from the original trace — we're stuck in the hint traversal. What kind of settings do you have for inlay hints? |
I have a similar issue on PopOs 22.04, Zed 0.173.x (don't know exactly which minor version, I write this message from my config) and rust 1.85 |
What's discussed here is not OS-dependent, it's a cross-platform inlay hints' storage code that malfunctions. I'm interested in the inlay hint-related settings (maybe, on PopOs you have a different config?) and a project where I can try to reproduce this in, ideally with some sequence of actions described. |
How can I have the "inlay hint-related settings"? |
Are we talking about the same thing here? For the hint settings, interested to see if anything from Zed settings zed/assets/settings/default.json Lines 386 to 404 in 4871d3c
or LSP setting https://zed.dev/docs/languages/rust#inlay-hints is different between OSes you use. If nothing's different, this is quite unexpected to see, but good pointer, I will try to find a Linux machine to use things on and see how it behaves for me. |
After testing it for a few days on Fedora, I'm not sure that it's entirely platform-related, as I had no hangs while using hints extensively (as usual). Another possibility could be rust-analyzer installations? Could be so that a particular, older, one is used on PopOS and causes Zed to hang? ![]() command will allow to open the language server info tab with the data to check and copy for sharing: ![]() |
Summary
Zed freezes when editing Rust code and is stuck at 100% CPU usage
Steps to trigger the problem:
Actual Behavior:
Zed freezes and becomes unresponsive, and is stuck at 100% CPU usage with increasing memory.
Recorded by samply when frozen:
profile.json (doesn't contain symbols, but they come from Arch Linux debug servers, with Zed installed from official repository)
Zed Version and System Specs
Zed: v0.172.8 (Zed)
OS: Linux Wayland arch unknown
Memory: 93.5 GiB
Architecture: x86_64
GPU: AMD Radeon 680M (RADV REMBRANDT) || radv || Mesa 24.3.4-arch1.1
The text was updated successfully, but these errors were encountered: