Zed crashes when closing file opened via process substitution (from bash) #22778
Labels
bug
[core label]
cli
Command-line interface feedback
linux
linux-wayland
Linux Wayland
panic / crash
[core label]
Check for existing issues
Describe the bug / provide steps to reproduce it
Note: apparently this only works if the file is not a git directory.
zed <( $(git diff HEAD~ HEAD) )
tldr; I did a booboo, and the editor is crashing now.
Zed Version and System Specs
Zed: v0.167.1 (Zed)
OS: Linux Wayland fedora 41
Memory: 31.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2070 SUPER || NVIDIA || 565.57.01
If applicable, add screenshots or screencasts of the incorrect state / behavior
If applicable, attach your Zed.log file to this issue.
2025-01-07T17:52:07.994054559+02:00 [INFO] ========== starting zed ==========
2025-01-07T17:52:08.018580913+02:00 [INFO] perform;
2025-01-07T17:52:08.018684574+02:00 [INFO] authenticate;
2025-01-07T17:52:08.018831326+02:00 [INFO] read_command;
2025-01-07T17:52:08.018956037+02:00 [INFO] send_secondary_commands;
2025-01-07T17:52:08.019534843+02:00 [INFO] Opening main db
2025-01-07T17:52:08.019908907+02:00 [INFO] new;
2025-01-07T17:52:08.020059049+02:00 [INFO] socket reader;
2025-01-07T17:52:08.021017078+02:00 [INFO] keep_updated;
2025-01-07T17:52:08.0211188+02:00 [INFO] Opening main db
2025-01-07T17:52:08.028283694+02:00 [INFO] Using git binary path: None
2025-01-07T17:52:08.096012626+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:52:08.097172788+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:52:08.106787358+02:00 [INFO] extensions updated. loading 7, reloading 0, unloading 0
2025-01-07T17:52:08.110492217+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2025-01-07T17:52:08.11270382+02:00 [INFO] Opening main db
2025-01-07T17:52:08.114006393+02:00 [INFO] perform;
2025-01-07T17:52:08.114094524+02:00 [INFO] authenticate;
2025-01-07T17:52:08.114243175+02:00 [INFO] read_command;
2025-01-07T17:52:08.115974153+02:00 [INFO] socket reader;
2025-01-07T17:52:08.133483205+02:00 [INFO] building git repository,
.git
path in the worktree: ".git"2025-01-07T17:52:08.189457606+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/bin:/home/cerberus/.local/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts
2025-01-07T17:52:08.219496347+02:00 [INFO] Enabling Vulkan Portability
2025-01-07T17:52:08.219549328+02:00 [INFO] Enabling color space support
2025-01-07T17:52:08.254819053+02:00 [INFO] Adapter: "NVIDIA GeForce RTX 2070 SUPER"
2025-01-07T17:52:08.254905534+02:00 [INFO] Ray tracing is supported
2025-01-07T17:52:08.491998373+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:52:08.492073224+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:52:08.497542041+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:52:08.497609212+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:52:08.497655332+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2025-01-07T17:52:08.513723889+02:00 [INFO] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "NVIDIA GeForce RTX 2070 SUPER", driver_name: "NVIDIA", driver_info: "565.57.01" }
2025-01-07T17:52:08.520374818+02:00 [INFO] Opening main db
2025-01-07T17:52:08.545132664+02:00 [INFO] open paths ["pipe:[515303]"]
2025-01-07T17:52:08.54666916+02:00 [INFO] Opening main db
2025-01-07T17:52:08.55433296+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:52:08.554395471+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:52:08.567294614+02:00 [ERROR] No such file or directory (os error 2)
2025-01-07T17:52:08.715274739+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:52:08.715635813+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts"
2025-01-07T17:52:08.717695434+02:00 [INFO] attempting to start language server "json-language-server", path: "/home/cerberus/dotfiles", id: 1
2025-01-07T17:52:08.721009829+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts"
2025-01-07T17:52:08.721231031+02:00 [INFO] fetching latest version of language server "json-language-server"
2025-01-07T17:52:08.746827686+02:00 [ERROR] ()
2025-01-07T17:52:08.805532945+02:00 [WARN] root path could not be canonicalized: No such file or directory (os error 2)
2025-01-07T17:52:08.806561206+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:52:09.891520829+02:00 [INFO] downloading language server "json-language-server"
2025-01-07T17:52:10.504794979+02:00 [INFO] starting language server process. binary path: "/usr/bin/node", working directory: "/home/cerberus/dotfiles", args: ["/home/cerberus/.local/share/zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2025-01-07T17:52:10.89634181+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:52:10.927696235+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:52:10.940546669+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2025-01-07T17:52:10.950572003+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2025-01-07T17:52:14.399311952+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts"
2025-01-07T17:52:14.420846465+02:00 [ERROR] {
"thread": "main",
"payload": "called
Result::unwrap()
on anErr
value: ()","location_data": {
"file": "crates/project/src/lsp_store.rs",
"line": 4958
},
"backtrace": [
"core::panicking::panic_fmt",
"core::result::unwrap_failed",
"project::lsp_store::LspStore::on_buffer_edited",
"gpui::app::AppContext::subscribe_internal::{{closure}}",
"gpui::app::AppContext::flush_effects",
"project::lsp_store::LocalLspStore::format_locally::{{closure}}",
"project::lsp_store::LspStore::format::{{closure}}::{{closure}}",
"async_task::raw::RawTask<F,T,S,M>::run",
"<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::run",
"gpui::platform::linux::platform::::run",
"gpui::app::App::run",
"zed::main",
"std::sys::backtrace::__rust_begin_short_backtrace",
"std::rt::lang_start::{{closure}}",
"std::rt::lang_start_internal",
"main",
"__libc_start_call_main",
"__libc_start_main_alias_1",
"_start"
],
"app_version": "0.167.1",
"release_channel": "Zed",
"os_name": "Linux Wayland",
"os_version": "fedora 41",
"architecture": "x86_64",
"panicked_on": 1736265134420,
"system_id": "d3a23cc2-41f8-4a61-b18c-11fd642cc2b3",
"installation_id": "810044d8-4395-415c-968a-f6993c7e80ac",
"session_id": "f49bf363-e321-4e01-bb7b-eb9e7edfdd01"
}
2025-01-07T17:56:04.294128942+02:00 [INFO] ========== starting zed ==========
2025-01-07T17:56:04.320632237+02:00 [INFO] Opening main db
2025-01-07T17:56:04.322023072+02:00 [INFO] Opening main db
2025-01-07T17:56:04.32285756+02:00 [INFO] perform;
2025-01-07T17:56:04.322962432+02:00 [INFO] authenticate;
2025-01-07T17:56:04.323117933+02:00 [INFO] read_command;
2025-01-07T17:56:04.323234524+02:00 [INFO] send_secondary_commands;
2025-01-07T17:56:04.323998172+02:00 [INFO] new;
2025-01-07T17:56:04.324094393+02:00 [INFO] socket reader;
2025-01-07T17:56:04.324975592+02:00 [INFO] keep_updated;
2025-01-07T17:56:04.326307596+02:00 [INFO] Using git binary path: None
2025-01-07T17:56:04.381355337+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:56:04.381486118+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:56:04.393856997+02:00 [INFO] extensions updated. loading 7, reloading 0, unloading 0
2025-01-07T17:56:04.397617616+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2025-01-07T17:56:04.407384507+02:00 [INFO] perform;
2025-01-07T17:56:04.407485578+02:00 [INFO] authenticate;
2025-01-07T17:56:04.407777021+02:00 [INFO] read_command;
2025-01-07T17:56:04.410626381+02:00 [INFO] socket reader;
2025-01-07T17:56:04.413725623+02:00 [INFO] Opening main db
2025-01-07T17:56:04.53013251+02:00 [INFO] Enabling Vulkan Portability
2025-01-07T17:56:04.530225951+02:00 [INFO] Enabling color space support
2025-01-07T17:56:04.579599073+02:00 [INFO] Adapter: "NVIDIA GeForce RTX 2070 SUPER"
2025-01-07T17:56:04.579763515+02:00 [INFO] Ray tracing is supported
2025-01-07T17:56:04.64008543+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/bin:/home/cerberus/.local/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/bin:/home/cerberus/.local/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts
2025-01-07T17:56:04.843554321+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:56:04.843643822+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:56:04.854553495+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:56:04.854667176+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:56:04.854754257+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2025-01-07T17:56:04.866740491+02:00 [INFO] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "NVIDIA GeForce RTX 2070 SUPER", driver_name: "NVIDIA", driver_info: "565.57.01" }
2025-01-07T17:56:04.873107187+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.local/bin:/home/cerberus/bin:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/bin:/home/cerberus/.local/bin"
2025-01-07T17:56:04.873215598+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:56:04.876058678+02:00 [INFO] Opening main db
2025-01-07T17:56:04.995494417+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:56:05.026790321+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:56:05.026856932+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:56:05.114913705+02:00 [INFO] root renamed from /proc/102540/fd/63 to pipe:[561886]
2025-01-07T17:56:05.116092417+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:56:05.196141498+02:00 [INFO] Opening main db
2025-01-07T17:56:40.472627343+02:00 [ERROR] buffer has no file
2025-01-07T17:56:41.290469524+02:00 [ERROR] {
"thread": "main",
"payload": "called
Result::unwrap()
on anErr
value: ()","location_data": {
"file": "crates/project/src/lsp_store.rs",
"line": 1948
},
"backtrace": [
"core::panicking::panic_fmt",
"core::result::unwrap_failed",
"core::ops::function::FnOnce::call_once{{vtable.shim}}",
"gpui::app::AppContext::flush_effects",
"gpui::window::Window::new::{{closure}}::{{closure}}",
"gpui::window::Window::new::{{closure}}",
"gpui::platform::linux::wayland::window::WaylandWindowStatePtr::frame",
"<gpui::platform::linux::wayland::client::WaylandClientStatePtr as wayland_client::event_queue::Dispatch<wayland_client::protocol::wl_callback::WlCallback,wayland_backend::sys::client::ObjectId>>::event",
"wayland_client::event_queue::queue_callback",
"<core::cell::RefCell<calloop::sources::DispatcherInner<S,F>> as calloop::sources::EventDispatcher>::process_events",
"<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::run",
"gpui::platform::linux::platform::::run",
"gpui::app::App::run",
"zed::main",
"std::sys::backtrace::__rust_begin_short_backtrace",
"std::rt::lang_start::{{closure}}",
"std::rt::lang_start_internal",
"main",
"__libc_start_call_main",
"__libc_start_main_alias_1",
"_start"
],
"app_version": "0.167.1",
"release_channel": "Zed",
"os_name": "Linux Wayland",
"os_version": "fedora 41",
"architecture": "x86_64",
"panicked_on": 1736265401290,
"system_id": "d3a23cc2-41f8-4a61-b18c-11fd642cc2b3",
"installation_id": "810044d8-4395-415c-968a-f6993c7e80ac",
"session_id": "8cdd014b-6e1e-4702-a013-58b4175a166a"
}
2025-01-07T17:57:49.931819097+02:00 [INFO] ========== starting zed ==========
2025-01-07T17:57:49.970459728+02:00 [INFO] Opening main db
2025-01-07T17:57:49.970554169+02:00 [INFO] perform;
2025-01-07T17:57:49.97064067+02:00 [INFO] authenticate;
2025-01-07T17:57:49.970740951+02:00 [INFO] read_command;
2025-01-07T17:57:49.970962673+02:00 [INFO] send_secondary_commands;
2025-01-07T17:57:49.971611829+02:00 [INFO] new;
2025-01-07T17:57:49.97170061+02:00 [INFO] socket reader;
2025-01-07T17:57:49.972353287+02:00 [INFO] Opening main db
2025-01-07T17:57:49.973949873+02:00 [INFO] keep_updated;
2025-01-07T17:57:49.974230016+02:00 [INFO] Using git binary path: None
2025-01-07T17:57:50.035826969+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:57:50.037356084+02:00 [INFO] No prompt template overrides directory found at /home/cerberus/.local/share/zed/prompt_overrides. Using built-in prompts.
2025-01-07T17:57:50.038246513+02:00 [INFO] extensions updated. loading 7, reloading 0, unloading 0
2025-01-07T17:57:50.040759439+02:00 [INFO] activate is not implemented on Linux, ignoring the call
2025-01-07T17:57:50.044145913+02:00 [INFO] Opening main db
2025-01-07T17:57:50.045132473+02:00 [INFO] perform;
2025-01-07T17:57:50.045188063+02:00 [INFO] authenticate;
2025-01-07T17:57:50.045262484+02:00 [INFO] read_command;
2025-01-07T17:57:50.047699999+02:00 [INFO] socket reader;
2025-01-07T17:57:50.054210715+02:00 [INFO] building git repository,
.git
path in the worktree: ".git"2025-01-07T17:57:50.189530573+02:00 [INFO] Enabling Vulkan Portability
2025-01-07T17:57:50.189580574+02:00 [INFO] Enabling color space support
2025-01-07T17:57:50.248017415+02:00 [INFO] Adapter: "NVIDIA GeForce RTX 2070 SUPER"
2025-01-07T17:57:50.248120236+02:00 [INFO] Ray tracing is supported
2025-01-07T17:57:50.25046288+02:00 [INFO] set environment variables from shell:/bin/bash, path:/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts:/home/cerberus/dotfiles/scripts/functionz:/home/cerberus/bin:/home/cerberus/.local/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts
2025-01-07T17:57:50.553281342+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:57:50.553354803+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:57:50.558602136+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:57:50.558667757+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:57:50.558712437+02:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2025-01-07T17:57:50.574641498+02:00 [INFO] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "NVIDIA GeForce RTX 2070 SUPER", driver_name: "NVIDIA", driver_info: "565.57.01" }
2025-01-07T17:57:50.587246336+02:00 [INFO] Opening main db
2025-01-07T17:57:50.600947354+02:00 [INFO] open paths ["pipe:[515303]"]
2025-01-07T17:57:50.601956835+02:00 [INFO] Opening main db
2025-01-07T17:57:50.607017856+02:00 [INFO] Using surface present mode MAILBOX
2025-01-07T17:57:50.607063896+02:00 [WARN] Unable to forbid exclusive full screen
2025-01-07T17:57:50.699316849+02:00 [ERROR] No such file or directory (os error 2)
2025-01-07T17:57:50.72111337+02:00 [INFO] attempting to start language server "json-language-server", path: "/home/cerberus/dotfiles", id: 1
2025-01-07T17:57:50.722021549+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts"
2025-01-07T17:57:50.725997759+02:00 [INFO] using project environment variables from CLI. PATH="/home/cerberus/.cargo/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/cerberus/.local/share/JetBrains/Toolbox/scripts"
2025-01-07T17:57:50.72608301+02:00 [INFO] fetching latest version of language server "json-language-server"
2025-01-07T17:57:50.730631826+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:57:50.731736737+02:00 [ERROR] ()
2025-01-07T17:57:50.832950071+02:00 [WARN] root path could not be canonicalized: No such file or directory (os error 2)
2025-01-07T17:57:50.834269224+02:00 [ERROR] failed to canonicalize root path: No such file or directory (os error 2)
2025-01-07T17:57:51.944486523+02:00 [INFO] downloading language server "json-language-server"
2025-01-07T17:57:52.545105758+02:00 [INFO] starting language server process. binary path: "/usr/bin/node", working directory: "/home/cerberus/dotfiles", args: ["/home/cerberus/.local/share/zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2025-01-07T17:57:53.420560082+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:57:53.431856436+02:00 [INFO] Creating a descriptor pool for at most 16 sets
2025-01-07T17:57:53.44112405+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2025-01-07T17:57:53.447727697+02:00 [INFO] Creating a descriptor pool for at most 256 sets
2025-01-07T17:57:55.786234158+02:00 [INFO] new;
2025-01-07T17:57:55.786926495+02:00 [INFO] keep_updated;
2025-01-07T17:57:55.786996826+02:00 [INFO] new;
The text was updated successfully, but these errors were encountered: