-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 creates unkillable process and freezes certain apps on NixOS #22086
Comments
The wrapper only appends the install directory of node.js to PATH and launches the actual zed. I'd be very surprised if that had anything to do with this issue. EDIT: unless maybe if you have something Really Fun in your ~/.bashrc that makes bash hang (IIRC the wrapper script has a bash shebang at the start) |
Ok, it happened again. This time I was using Zed for a few days with no issues, and then it suddenly had the issue again. The only thing I can think of that I did recently is a "find and replace all", but that seems unlikely to be related. Again, Zed didn't freeze or anything, so it's unclear when the issue started happening. I noticed it only when some system calls appeared to freeze in unrelated programs again. This time, I took an First 1174 lines of strace log for fish
|
It seems like it may be due to an interaction with nix-direnv. If I start zed from a shell inside of a directory using nix-direnv, the freeze happens, but if I start zed from outside the directory and rely on nix-ld to make the binaries runnable, then it doesn't freeze it seems like. It's still the zed process that's freezing though, so I'm not sure how it's causing that to happen. When it does happen, I'm getting a kernel message too: System Log
|
Check for existing issues
Describe the bug / provide steps to reproduce it
This may be related to #18194 or #20223, but I'm creating a separate issue because it seems slightly different. Basically, whenever I run
zeditor
to launch Zed in a certain project (https://github.com/martinvonz/jj), then Zed becomes unkillable. Zed appears to run normally, but when I try to close it, the process remains open in the background, preventing my machine from shutting down or restarting.Additionally, some applications randomly freeze after the process becomes unkillable. For instance, I can't open an instance of
fish
after I open Zed, because it freezes indefinitely (even if I already closed Zed) unless I cancel with ^C.Steps to reproduce:
If I run
rm -rf ~/.local/share/zed ~/.cache/zed ~/.config/zed
to clear all Zed-related files, the bug stops happening, even if I re-open the same project. It eventually happens again in the future unpredictably, and then persists until I clear the files again. Restarting the computer doesn't prevent the issue.This may have something to do with the NixOS wrapper, since the process which fails to exit is .zed-editor-wrapper, which seems to be created by NixOS: https://github.com/NixOS/nixpkgs/blob/33b9d57c656e65a9c88c5f34e4eb00b83e2b0ca9/pkgs/by-name/ze/zed-editor/package.nix#L200
Environment
Zed: v0.164.2 (Zed)
OS: Linux Wayland nixos 25.05
Memory: 30.7 GiB
Architecture: x86_64
GPU: AMD Radeon 760M (RADV GFX1103_R1) || radv || Mesa 24.2.6
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 with freeze
Zed.log without freeze (after clearing config)
The text was updated successfully, but these errors were encountered: