-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
workspace: Reload hangs for several minutes before restarting Zed on Linux (blocking lsof
call)
#22666
Comments
@JaagupAverin This was reported previously here: You've correctly identified this as the code in question: zed/crates/gpui/src/platform/linux/platform.rs Lines 180 to 198 in 033726c
CC: @afossa @majutsushi You are no longer alone in experiencing this issue Thanks for the suggestions of
|
After removing all the layers from the issue this actually appears like a general issue with |
I haven't actually been able to reproduce this recently. I think it started working properly after a reboot, but I can't be entirely certain of the timing with this. Of course this could also just be a complete coincidence. |
Hey, just dropping some context here: the original reason for
If someone has a better way to run |
Check for existing issues
Describe the bug / provide steps to reproduce it
When triggering the workspace reload, it takes several minutes for Zed to restart. After a bit of debugging the culprit line appears to be at
zed/crates/gpui/src/platform/linux/platform.rs:192
:From htop I can verify that the
lsof
process hangs for several minutes before the process is restarted:Running the exact same command from another terminal finishes with
1
immediately as expected (only the background process is hung).Workarounds I've found that fix the issue:
-bw
to thelsof
arguments to skip usage of kernel calls altogether;-O
to thelsof
arguments to disable certain kernal call optimizations/subprocessing;However since I don't fundamentally understand what's the root cause of the issue I won't be attemping a proper fix with a PR. Wiser minds please consider this :)
Zed Version and System Specs
Zed: v0.168.0 (Zed Preview)
OS: Linux Wayland ubuntu 24.10
Memory: 30 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV GFX1103_R1) || radv || Mesa 24.2.3-1ubuntu1
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: