Skip to content
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

Panic when loading an existing session. #3572

Open
natelust opened this issue Aug 26, 2024 · 0 comments
Open

Panic when loading an existing session. #3572

natelust opened this issue Aug 26, 2024 · 0 comments

Comments

@natelust
Copy link

Issue description

When I load up zellij with the welcome screen and attempt to switch to a session in the session manager the application panics. There is text that says "Loading Zellij. Done" but the screen does not switch to the session. I compiled zellij so I could run with debug symbols on and it seems like there is a panic going on in the screen thread, I have posted it below.

Minimal reproduction

I'm not sure if I could reproduce this if I tried, most of the time zellij just works, but I wanted to post this in case it helps track something down.

Other relevant information

INFO |zellij_server::plugins::p| 2024-08-26 14:34:16.689 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:533]: Loaded plugin 'session-manager' from cache folder at '/Users//Library/Caches/org.Zellij-Contributors.Zellij' in 1.233558791s
INFO |zellij_server | 2024-08-26 14:34:16.691 [async-std/runti] [zellij-server/src/lib.rs:1068]: Compiling plugins using Cranelift
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.770 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.770 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.770 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.770 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.791 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.792 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.792 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.792 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.813 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.813 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.813 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.814 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.834 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.835 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.835 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.835 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.856 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.856 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.856 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:16.857 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.800 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.800 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.800 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.801 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.964 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.964 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.964 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:17.965 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:18.886 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:18.886 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:18.886 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:18.887 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.106 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.107 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.107 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.108 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.448 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.448 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.449 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.449 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.675 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.676 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.676 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.677 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.972 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.973 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.973 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
WARN |zellij_server::panes::gri| 2024-08-26 14:34:19.973 [screen ] [zellij-server/src/panes/grid.rs:3074]: Unhandled esc_dispatch: 92->[]
INFO |zellij_server::plugins | 2024-08-26 14:34:20.508 [wasm ] [zellij-server/src/plugins/mod.rs:745]: wasm main thread exits
INFO |zellij_server::plugins::w| 2024-08-26 14:34:20.509 [wasm ] [zellij-server/src/plugins/wasm_bridge.rs:287]: Bye from plugin 0
ERROR |zellij_server::os_input_o| 2024-08-26 14:34:20.509 [screen ] [zellij-server/src/os_input_output.rs:915]: Failed to apply cached resizes: failed to send message to pty writer
ERROR |zellij_utils::errors::not| 2024-08-26 14:34:21.112 [screen ] [zellij-utils/src/errors.rs:655]: Panic occured:
thread: screen
location: At zellij-server/src/lib.rs:956:18
message: Program terminates: a fatal error occured

Caused by:
0: Failed to log and report session state
1: failed to send message to background jobs
2: Originating Thread(s)
�[0;0m1. screen_thread: SuppressPane

3: failed to send message to channel: ReportSessionInfo(
       "triangular-lake",
       SessionInfo {
           name: "triangular-lake",
           tabs: [],
           panes: PaneManifest {
               panes: {},
           },
           connected_clients: 0,
           is_current_session: true,
           available_layouts: [
               BuiltIn(
                   "default",
               ),
               BuiltIn(
                   "compact",
               ),
               BuiltIn(
                   "disable-status-bar",
               ),
               BuiltIn(
                   "strider",
               ),
           ],
       },
   )

Stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.65/src/backtrace/libunwind.rs:93:5
backtrace::backtrace::trace_unsynchronized
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.65/src/backtrace/mod.rs:66:5
1: backtrace::backtrace::trace
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.65/src/backtrace/mod.rs:53:14
2: anyhow::backtrace::capture::Backtrace::create
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.71/src/backtrace.rs:216:13
3: anyhow::backtrace::capture::Backtrace::capture
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.71/src/backtrace.rs:204:17
4: anyhow::error::::msg
at /Users//.cargo/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.71/src/error.rs:83:36
5: <core::result::Result<U,crossbeam_channel::err::SendError<(T,zellij_utils::errors::not_wasm::ErrorContext)>> as zellij_utils::errors::not_wasm::ToAnyhow>::to_anyhow
at /Users//repos/zellij/zellij-utils/src/errors.rs:771:29
6: zellij_server::thread_bus::ThreadSenders::send_to_background_jobs
at /Users//repos/zellij/zellij-server/src/thread_bus.rs:123:13
7: zellij_server::screen::Screen::log_and_report_session_state
at /Users//repos/zellij/zellij-server/src/screen.rs:1479:9
8: zellij_server::screen::screen_thread_main
at /Users//repos/zellij/zellij-server/src/screen.rs:3843:17
9: zellij_server::init_session::{{closure}}
at /Users//repos/zellij/zellij-server/src/lib.rs:948:17
10: std::sys_common::backtrace::_rust_begin_short_backtrace
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys_common/backtrace.rs:154:18
11: std::thread::Builder::spawn_unchecked
::{{closure}}::{{closure}}
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:529:17
12: <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panic/unwind_safe.rs:272:9
13: std::panicking::try::do_call
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40
14: __rust_try
15: std::panicking::try
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19
16: std::panic::catch_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14
std::thread::Builder::spawn_unchecked
::{{closure}}
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/thread/mod.rs:528:30
17: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:250:5
18: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
<alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/alloc/src/boxed.rs:2007:9
std::sys::unix::thread::Thread::new::thread_start
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/sys/unix/thread.rs:108:17
19: __pthread_joiner_wake
WARN |zellij_utils::ipc | 2024-08-26 14:34:21.179 [main ] [zellij-utils/src/ipc.rs:226]: Error in IpcReceiver.recv(): InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
INFO |zellij_client | 2024-08-26 14:34:21.179 [main ] [zellij-client/src/lib.rs:178]: Starting Zellij client!

@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
@github-staff github-staff deleted a comment from Lxx-c Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@natelust and others