zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.18k stars 644 forks source link

panic in at thread `async-std/runtime` at `rkyv-0.7.42` crate in `src/impls/core/mod.rs:267:17` #2914

Closed arpangreat closed 11 months ago

arpangreat commented 11 months ago

Please attach the files that were created in /tmp/zellij-1000/zellij-log/ to the extent you are comfortable with.

WARN   |zellij_utils::input::layo| 2023-11-07 21:55:17.605 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.39.0/src/input/layout.rs:1035]: Failed to read swap layout file: /home/arpangreat/dotfiles/zellij/layouts/my_compact.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.616 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.616 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.618 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.621 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.626 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.627 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.629 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.629 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.630 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.633 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.639 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij::sessions         | 2023-11-07 21:55:17.640 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-0.39.0/src/sessions.rs:56]: Failed to read resurrection layout file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-11-07 21:55:17.641 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.39.0/src/lib.rs:159]: Starting Zellij client! 
INFO   |zellij_server            | 2023-11-07 21:55:17.667 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/lib.rs:246]: Starting Zellij server! 
INFO   |zellij_server            | 2023-11-07 21:55:17.723 [main      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/lib.rs:917]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-11-07 21:55:17.724 [wasm      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/plugins/mod.rs:149]: Wasm main thread starts 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.730 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.730 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.731 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.731 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.731 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::background| 2023-11-07 21:55:17.731 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/background_jobs.rs:417]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
ERROR  |zellij_server::plugins   | 2023-11-07 21:55:17.737 [wasm      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/plugins/mod.rs:429]: Plugin with id: 0 not found 
ERROR  |zellij_utils::errors::not| 2023-11-07 21:55:17.819 [async-std/runti] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.39.0/src/errors.rs:631]: Panic occured:
             thread: async-std/runtime
             location: At /home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:267:17
             message: assertion failed: !result.is_null() 
INFO   |zellij_server::plugins   | 2023-11-07 21:55:17.820 [wasm      ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/plugins/mod.rs:390]: wasm main thread exits 
ERROR  |zellij_utils::errors::not| 2023-11-07 21:55:17.843 [pty       ] [/home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.39.0/src/errors.rs:631]: Panic occured:
             thread: pty
             location: At /home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.0/src/lib.rs:784:58
             message: Program terminates: a fatal error occured

Caused by:
    0: Failed to dump layout
    1: failed to send message to background jobs
    2: Originating Thread(s)
        1. screen_thread: DumpLayoutToHd
        2. plugin_thread: LogLayoutToHd
        3. pty_thread: LogLayoutToHd

    3: failed to send message to channel: ReportLayoutInfo(
           (
               "layout {\n    cwd \"/home/arpangreat\"\n    tab name=\"Tab #1\" focus=true hide_floating_panes=true {\n        pane size=1 borderless=true {\n            plugin location=\"file:/home/arpangreat/dotfiles/zellij/plugins/zjstatus.wasm\" {\n            format_left \"#[fg=#9ece6a,italic]{mode}  #[fg=#9ece6a,bold]{tabs}\"\n            format_right \"#[fg=#1abc9c,bold]{session}\"\n            format_space \"\"\n            hide_frame_for_single_pane \"true\"\n            mode_locked \"#[fg=#fb4934,bold]{name}\"\n            mode_move \"#[fg=#a89984,bold]{name}\"\n            mode_normal \"#[fg=#b8bb26,bold]{name}\"\n            mode_pane \"#[fg=#d3869b,bold]{name}\"\n            mode_resize \"#[fg=#fabd2f,bold]{name}\"\n            mode_scroll \"#[fg=#8ec07c,bold]{name}\"\n            mode_session \"#[fg=#fe8019,bold]{name}\"\n            mode_tab \"#[fg=#83a598,bold]{name}\"\n            tab_active \"{index}* \"\n            tab_normal \"{index}  \"\n            }\n        }\n        pane focus=true\n    }\n    new_tab_template {\n        pane size=1 borderless=true {\n            plugin location=\"file:/home/arpangreat/dotfiles/zellij/plugins/zjstatus.wasm\" {\n            format_left \"#[fg=#9ece6a,italic]{mode}  #[fg=#9ece6a,bold]{tabs}\"\n            format_right \"#[fg=#1abc9c,bold]{session}\"\n            format_space \"\"\n            hide_frame_for_single_pane \"true\"\n            mode_locked \"#[fg=#fb4934,bold]{name}\"\n            mode_move \"#[fg=#a89984,bold]{name}\"\n            mode_normal \"#[fg=#b8bb26,bold]{name}\"\n            mode_pane \"#[fg=#d3869b,bold]{name}\"\n            mode_resize \"#[fg=#fabd2f,bold]{name}\"\n            mode_scroll \"#[fg=#8ec07c,bold]{name}\"\n            mode_session \"#[fg=#fe8019,bold]{name}\"\n            mode_tab \"#[fg=#83a598,bold]{name}\"\n            tab_active \"{index}* \"\n            tab_normal \"{index}  \"\n            }\n        }\n        pane\n    }\n}",
               {},
           ),
       ) 

Basic information

zellij --version: zellij 0.39.0 stty size: 56 210 uname -av or ver(Windows): Linux arpangreat 6.5.9-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:51:53 +0000 x86_64 GNU/Linux

List of programs you interact with as, PROGRAM --version: output cropped meaningful, for example: nvim --version: NVIM v0.10.0-dev-d3e9cbedc-dirty Build type: RelWithDebInfo LuaJIT 2.1.1697887905

wezterm --version: wezterm 20231104-094153-d6809533 hx --versoin: helix 23.10 (5ce1c30f) Further information zellij installed via cargo install gives error as mentioned in title on startup

Error occurred in server:
  × Thread 'async-std/runtime' panicked.
  ├─▶ At /home/arpangreat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:267:17
  ╰─▶ assertion failed: !result.is_null()
  help: If you are seeing this message, it means that something went wrong

running zellij --debug throws the same error and doesn't start up.

arpangreat commented 11 months ago

Sorry, It looks like it was caused by zjstatus plugin, after updating there's no issue as such.

imsnif commented 11 months ago

Yes, I saw this too. I think it's due to cache corruption between versions and am looking into it. In any case, for others encountering it, clearing the cache folder (for me it's ~/.cache/zellij) should solve this.