-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Labels
area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P0"Drop everything now" bugs: security holes with exploit, large-scale data loss, users can't work"Drop everything now" bugs: security holes with exploit, large-scale data loss, users can't work
Description
Reproduction steps
- Start Zed (
cargo run) - Press A to append text in vim mode
- Zed panics
Zed version and system specs
zed breaks before i can open the command palette;
git reflog
0d80b452fb (HEAD -> main, origin/main, origin/HEAD) HEAD@{0}: pull: Fast-forward
system:
Linux ggarch 6.17.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:09 +0000 x86_64 GNU/Linux
Attach Zed log file
Zed.log
thread 'main' (9642) panicked at crates/gpui/src/platform/linux/wayland/client.rs:1422:47:
divide by zero error when dividing duration by scalar
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/std/src/panicking.rs:698:5
1: core::panicking::panic_fmt
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/panicking.rs:75:14
2: core::panicking::panic_display
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/panicking.rs:259:5
3: core::option::expect_failed
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/option.rs:2178:5
4: <core::option::Option<core::time::Duration>>::expect
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/option.rs:965:21
5: <core::time::Duration as core::ops::arith::Div<u32>>::div
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/time.rs:1217:31
6: <gpui::platform::linux::wayland::client::WaylandClientStatePtr as wayland_client::event_queue::Dispatch<wayland_client::protocol::wl_keyboard::WlKeyboard, ()>>::event
at ./crates/gpui/src/platform/linux/wayland/client.rs:1422:47
7: wayland_client::event_queue::queue_callback::<wayland_client::protocol::wl_keyboard::WlKeyboard, (), gpui::platform::linux::wayland::client::WaylandClientStatePtr>
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-client-0.31.11/src/event_queue.rs:660:5
8: <wayland_client::event_queue::EventQueue<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::dispatching_impl
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-client-0.31.11/src/event_queue.rs:482:13
9: <wayland_client::event_queue::EventQueue<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::dispatch_pending
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wayland-client-0.31.11/src/event_queue.rs:388:9
10: <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::insert::{closure#0}
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/calloop-wayland-source-0.4.1/src/lib.rs:115:59
11: <core::cell::RefCell<calloop::sources::DispatcherInner<calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>, <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::insert::{closure#0}>> as calloop::sources::EventDispatcher<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::process_events::{closure#0}
at /home/glaudiston/.cargo/git/checkouts/calloop-e131c3edc2c54753/eb6b4fd/src/sources/mod.rs:329:61
12: <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::loop_callback_pending::<<core::cell::RefCell<calloop::sources::DispatcherInner<calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>, <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::insert::{closure#0}>> as calloop::sources::EventDispatcher<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::process_events::{closure#0}>
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/calloop-wayland-source-0.4.1/src/lib.rs:245:19
13: <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr> as calloop::sources::EventSource>::process_events::<<core::cell::RefCell<calloop::sources::DispatcherInner<calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>, <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::insert::{closure#0}>> as calloop::sources::EventDispatcher<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::process_events::{closure#0}>
at /home/glaudiston/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/calloop-wayland-source-0.4.1/src/lib.rs:154:9
14: <core::cell::RefCell<calloop::sources::DispatcherInner<calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>, <calloop_wayland_source::WaylandSource<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::insert::{closure#0}>> as calloop::sources::EventDispatcher<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::process_events
at /home/glaudiston/.cargo/git/checkouts/calloop-e131c3edc2c54753/eb6b4fd/src/sources/mod.rs:329:14
15: <calloop::loop_logic::EventLoop<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::dispatch_events
at /home/glaudiston/.cargo/git/checkouts/calloop-e131c3edc2c54753/eb6b4fd/src/loop_logic.rs:528:36
16: <calloop::loop_logic::EventLoop<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::dispatch::<core::option::Option<core::time::Duration>>
at /home/glaudiston/.cargo/git/checkouts/calloop-e131c3edc2c54753/eb6b4fd/src/loop_logic.rs:641:14
17: <calloop::loop_logic::EventLoop<gpui::platform::linux::wayland::client::WaylandClientStatePtr>>::run::<<gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::run::{closure#0}, core::option::Option<core::time::Duration>>
at /home/glaudiston/.cargo/git/checkouts/calloop-e131c3edc2c54753/eb6b4fd/src/loop_logic.rs:678:18
18: <gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::linux::platform::LinuxClient>::run
at ./crates/gpui/src/platform/linux/wayland/client.rs:830:14
19: <gpui::platform::linux::wayland::client::WaylandClient as gpui::platform::Platform>::run
at ./crates/gpui/src/platform/linux/platform.rs:165:9
20: <gpui::app::Application>::run::<zed::main::{closure#9}>
at ./crates/gpui/src/app.rs:187:18
21: zed::main
at ./crates/zed/src/main.rs:406:9
22: zed::main
at ./crates/zed/src/zed-main.rs:7:5
23: <fn() as core::ops::function::FnOnce<()>>::call_once
at /rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:editorFeedback for code editing, formatting, editor iterations, etcFeedback for code editing, formatting, editor iterations, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use ZedBug that happens for everyone on every platform no matter how they use Zedpriority:P0"Drop everything now" bugs: security holes with exploit, large-scale data loss, users can't work"Drop everything now" bugs: security holes with exploit, large-scale data loss, users can't work