Skip to content

Panics on failed to send a message: SendError #18055

Closed
@ConradIrwin

Description

@ConradIrwin

We've noticed when using rust analyzer on the zed codebase that it crashes every 10-30 minutes:

stderr: thread '<unnamed>' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lsp-server-0.7.6/src/stdio.rs:28:37:
stderr: receiver was dropped, failed to send a message: "SendError(..)"
stderr: stack backtrace:
stderr: 0: _rust_begin_unwind
stderr: 1: core::panicking::panic_fmt
stderr: 2: core::result::unwrap_failed
stderr: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stderr: thread 'LspServer' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lsp-server-0.7.6/src/stdio.rs:59:17:
stderr: Box<dyn Any>
stderr: stack backtrace:
stderr: 0: std::panicking::begin_panic
stderr: 1: lsp_server::stdio::IoThreads::join
stderr: 2: rust_analyzer::run_server
stderr: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stderr: thread 'main' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/jod-thread-0.1.2/src/lib.rs:33:22:
stderr: called `Result::unwrap()` on an `Err` value: Any { .. }
stderr: stack backtrace:
stderr: 0: _rust_begin_unwind
stderr: 1: core::panicking::panic_fmt
stderr: 2: core::result::unwrap_failed
stderr: 3: stdx::thread::JoinHandle<T>::join
stderr: 4: rust_analyzer::with_extra_thread
stderr: 5: rust_analyzer::main
stderr: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

We have also seen a few users reporting this (presumably on their own projects) at zed-industries/zed#17376.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Broken WindowBugs / technical debt to be addressed immediately

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions