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

Runtime panic from default status-bar plugin in 0.36.0 #2505

Closed
sameigen opened this issue Jun 5, 2023 · 5 comments · Fixed by #2522
Closed

Runtime panic from default status-bar plugin in 0.36.0 #2505

sameigen opened this issue Jun 5, 2023 · 5 comments · Fixed by #2522

Comments

@sameigen
Copy link

sameigen commented Jun 5, 2023

Looks like there is a WASM runtime panic for the status bar default plugin, please refer to the stdout below. I deleted my custom plugin configuration, reinstalled with homebrew, and used a different terminal emulator. More information below.

❯ uname -av
Darwin (redacted).local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
                                                                                                         
❯ zellij --version
zellij 0.36.0
                
❯ kitty --version
kitty 0.25.2 created by Kovid Goyal

❯ brew --version
Homebrew 4.0.20
Homebrew/homebrew-core (git revision 61151fee1d3; last commit 2023-03-01)
Homebrew/homebrew-cask (git revision 6e832f93b1; last commit 2023-03-01)

❯ stty size
31 105


Log from stdout:

Error occurred in server:

  × Thread 'async-std/runtime' panicked.
  ├─▶ At zellij-server/src/plugins/wasm_bridge.rs:693:5
  ╰─▶ 
A panic occured in a plugin
PanicInfo {
    payload: Any { .. },
    message: Some(
        called `Result::unwrap()` on an `Err` value: Serde(Error("trailing characters", line: 1, column: 224)),
    ),
    location: Location {
        file: "default-plugins/status-bar/src/tip/utils.rs",
        line: 40,
        col: 83,
    },
    can_unwind: true,
}     

Further information
I have not tried but I believe this is version 0.36.0 specific. Happy to provide any more information necessary. Thanks!

@sameigen
Copy link
Author

sameigen commented Jun 5, 2023

Deleting status-bar-tips.cache from $TMPDIR/zellij-501 seemed to fix this. Probably still worth checking out

@sameigen sameigen closed this as completed Jun 5, 2023
@sameigen sameigen reopened this Jun 5, 2023
@imsnif
Copy link
Member

imsnif commented Jun 5, 2023

Yeah, this can sometimes happen when the status bar cache gets corrupted. Next version we'll handle this more graciously (apologies for the experience now anyhow!)

@bronsen
Copy link

bronsen commented Jun 10, 2023

I just saw something similar:

Error occurred in server:

  × Thread 'async-std/runtime' panicked.
  ├─▶ At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/wasm_bridge.rs:693:5
  ╰─▶
A panic occured in a plugin
PanicInfo {
    payload: Any { .. },
    message: Some(
        called `Result::unwrap()` on an `Err` value: IoPath(Os { code: 20, kind: AlreadyExists, message: "File exists" }, "/tmp/status-bar-tips.cache"),
    ),
    location: Location {
        file: "default-plugins/status-bar/src/tip/utils.rs",
        line: 40,
        col: 83,
    },
    can_unwind: true,
}

  help: If you are seeing this message, it means that something went wrong.

        -> To get additional information, check the log at: /tmp/zellij-1000/zellij-log/zellij.log
        -> To see a backtrace next time, reproduce the error with: RUST_BACKTRACE=1 zellij [...]
        -> To help us fix this, please open an issue: https://github.com/zellij-org/zellij/issues

This happened when starting zellij after powercycling my laptop, so orderly shutdown.

Here is zellij.log from the last 3 sessions (panic without backtrace, RUST_BACKTRACE=1 and RUST_BACKTRACE=full without panic):

WARN   |zellij_utils::input::layo| 2023-06-10 09:49:26.787 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/layout.rs:851]: Failed to read swap layout file: /home/bronsen/.config/zellij/layouts/default.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-06-10 09:49:26.789 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-06-10 09:49:26.795 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:237]: Starting Zellij server! 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.851 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:783]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:783]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:792]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:792]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:803]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:803]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_server::route     | 2023-06-10 09:49:26.852 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
INFO   |zellij_server            | 2023-06-10 09:49:26.852 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:843]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-06-10 09:49:26.853 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:72]: Wasm main thread starts 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.863 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.863 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.863 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.863 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.864 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.864 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.866 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.867 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.895 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 31.600142ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.897 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 31.987835ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.898 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 34.474547ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.901 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 36.687266ms 
INFO   |zellij_utils::input::plug| 2023-06-10 09:49:26.902 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.903 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 39.034462ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.908 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 42.013597ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.921 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 18.07846ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.925 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 51.943246ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:49:26.927 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 52.458398ms 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:49:26.947 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/wasm_bridge.rs:693:5
             message: 

A panic occured in a plugin

PanicInfo {

    payload: Any { .. },

    message: Some(

        called `Result::unwrap()` on an `Err` value: IoPath(Os { code: 20, kind: AlreadyExists, message: "File exists" }, "/tmp/status-bar-tips.cache"),

    ),

    location: Location {

        file: "default-plugins/status-bar/src/tip/utils.rs",

        line: 40,

        col: 83,

    },

    can_unwind: true,

}

 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:49:26.948 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/wasm_bridge.rs:693:5
             message: 

A panic occured in a plugin

PanicInfo {

    payload: Any { .. },

    message: Some(

        called `Result::unwrap()` on an `Err` value: IoPath(Os { code: 20, kind: AlreadyExists, message: "File exists" }, "/tmp/status-bar-tips.cache"),

    ),

    location: Location {

        file: "default-plugins/status-bar/src/tip/utils.rs",

        line: 40,

        col: 83,

    },

    can_unwind: true,

}

 
INFO   |zellij_server::plugins   | 2023-06-10 09:49:26.948 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:162]: wasm main thread exits 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:49:26.948 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/wasm_bridge.rs:693:5
             message: 

A panic occured in a plugin

PanicInfo {

    payload: Any { .. },

    message: Some(

        called `Result::unwrap()` on an `Err` value: IoPath(Os { code: 20, kind: AlreadyExists, message: "File exists" }, "/tmp/status-bar-tips.cache"),

    ),

    location: Location {

        file: "default-plugins/status-bar/src/tip/utils.rs",

        line: 40,

        col: 83,

    },

    can_unwind: true,

}

 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:49:27.025 [pty       ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: pty
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:724:50
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to open new tab for client 1
    1: failed to spawn terminals for layout for client 1
    2: failed to send message to screen
    3: Originating Thread(s)
       	�[0;0m1. ipc_server: NewClient
       	�[0;0m2. screen_thread: NewTab
       	�[0;0m3. plugin_thread: NewTab
       	�[0;0m4. pty_thread: NewTab
       
    4: failed to send message to channel 
WARN   |zellij_server::route     | 2023-06-10 09:49:27.026 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:874]: Server ready, retrying sending instruction. 
WARN   |zellij_server::route     | 2023-06-10 09:49:27.026 [server_router] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/route.rs:814]: Server not ready, trying to place instruction in retry queue... 
WARN   |zellij_utils::input::layo| 2023-06-10 09:50:46.723 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/layout.rs:851]: Failed to read swap layout file: /home/bronsen/.config/zellij/layouts/default.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-06-10 09:50:46.723 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-06-10 09:50:46.728 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-06-10 09:50:46.781 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:843]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-06-10 09:50:46.781 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:72]: Wasm main thread starts 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.791 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.799 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.799 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.808 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 14.151789ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.826 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 31.126558ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.830 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 35.695468ms 
INFO   |zellij_utils::input::plug| 2023-06-10 09:50:46.831 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.833 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 24.917161ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.837 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 41.500228ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.839 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 46.097862ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.846 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 52.763156ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.849 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 15.775437ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:50:46.900 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 90.097765ms 
INFO   |zellij_server::plugins   | 2023-06-10 09:50:53.801 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:162]: wasm main thread exits 
INFO   |zellij_client            | 2023-06-10 09:50:53.801 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:435]: Bye from Zellij! 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:50:53.803 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/pty.rs:694:30
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to spawn terminals for layout
    1: failed to listen for bytes from PTY
    2: failed to async-send to screen
    3: failed to send message to screen
    4: Originating Thread(s)
       
    5: failed to send message to channel 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:50:53.803 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/pty.rs:694:30
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to spawn terminals for layout
    1: failed to listen for bytes from PTY
    2: failed to async-send to screen
    3: failed to send message to screen
    4: Originating Thread(s)
       
    5: failed to send message to channel 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:50:53.804 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/pty.rs:694:30
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to spawn terminals for layout
    1: failed to listen for bytes from PTY
    2: failed to async-send to screen
    3: failed to send message to screen
    4: Originating Thread(s)
       
    5: failed to send message to channel 
ERROR  |zellij_utils::errors::not| 2023-06-10 09:50:53.804 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/pty.rs:694:30
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to spawn terminals for layout
    1: failed to listen for bytes from PTY
    2: failed to async-send to screen
    3: failed to send message to screen
    4: Originating Thread(s)
       
    5: failed to send message to channel 
WARN   |zellij_utils::input::layo| 2023-06-10 09:54:56.867 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/layout.rs:851]: Failed to read swap layout file: /home/bronsen/.config/zellij/layouts/default.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-06-10 09:54:56.875 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-06-10 09:54:56.883 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-06-10 09:54:56.935 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:843]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-06-10 09:54:56.936 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:72]: Wasm main thread starts 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.944 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.945 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.945 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.945 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.945 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.945 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.956 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.957 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.979 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 20.307627ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.981 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 33.661108ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.985 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 37.62405ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.986 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 39.160461ms 
INFO   |zellij_utils::input::plug| 2023-06-10 09:54:56.987 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.989 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 40.038048ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.996 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 48.525956ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:56.999 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 50.071501ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:57.006 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 17.918759ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:54:57.008 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 46.753079ms 
INFO   |zellij_client            | 2023-06-10 09:54:59.646 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:435]: Bye from Zellij! 
INFO   |zellij_server::plugins   | 2023-06-10 09:54:59.646 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:162]: wasm main thread exits 
WARN   |zellij_utils::input::layo| 2023-06-10 09:55:09.678 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/layout.rs:851]: Failed to read swap layout file: /home/bronsen/.config/zellij/layouts/default.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-06-10 09:55:09.679 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-06-10 09:55:09.684 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-06-10 09:55:09.737 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/lib.rs:843]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-06-10 09:55:09.738 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:72]: Wasm main thread starts 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.745 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.745 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.745 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.746 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.746 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.746 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.756 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.757 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.769 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 20.981154ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.775 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 28.064168ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.781 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 32.534088ms 
INFO   |zellij_utils::input::plug| 2023-06-10 09:55:09.787 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.36.0/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/bronsen/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.792 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 43.455534ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.798 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 48.886801ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.802 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 54.339325ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.810 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 20.519217ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.812 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'tab-bar' from cache folder at '/home/bronsen/.cache/zellij' in 52.086102ms 
INFO   |zellij_server::plugins::s| 2023-06-10 09:55:09.817 [async-std/runti] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/start_plugin.rs:357]: Loaded plugin 'status-bar' from cache folder at '/home/bronsen/.cache/zellij' in 54.082793ms 
INFO   |zellij_server::plugins   | 2023-06-10 09:55:12.261 [wasm      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.36.0/src/plugins/mod.rs:162]: wasm main thread exits 
INFO   |zellij_client            | 2023-06-10 09:55:12.261 [main      ] [/home/bronsen/.local/share/cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.36.0/src/lib.rs:435]: Bye from Zellij! 

@imsnif
Copy link
Member

imsnif commented Jun 10, 2023

@jaeheonji - do you think we can make the status bar tips caching a little more resilient? I'm not sure why this is happening, but I think something like:

  1. try to read/parse cache file and use it
  2. if we can't read it, try to delete and recreate it
  3. If we can't do that, we display the default tip

wdyt? I'm asking because I think this will take you ~2 seconds to do if you have the time :)

Anyway: from next version this will no longer crash zellij, just the status bar, so at least it's an improvement!

@jaeheonji
Copy link
Member

jaeheonji commented Jun 10, 2023

@imsnif

do you think we can make the status bar tips caching a little more resilient?

Yes I can.

I don't know the exact reason for users, but depending on the environment, I/O to the /tmp folder doesn't seem to work.
And looking at the current code, if there is a problem in I/O, it returns an error. (unwrap)

  1. try to read/parse cache file and use it
  2. if we can't read it, try to delete and recreate it
  3. If we can't do that, we display the default tip

Therefore, if I create a flow naturally with step 2 to 3, it seems that stability will increase more.
This seems like an easy fix, so I'll try to fix it soon.

Note:

// zellij/default-plugins/status-bar/src/tip/cache.rs

...
pub fn new(path: PathBuf) -> LocalCacheResult {
    match OpenOptions::new()
        .read(true)
        .create(true)
        .open(path.as_path())
    {
        Ok(mut file) => {
            let mut json_cache = String::new();
            file.read_to_string(&mut json_cache)
                .map_err(LocalCacheError::Io)?;

            let metadata = LocalCache::from_json(&json_cache)?;
            Ok(LocalCache { path, metadata })
        },
        Err(e) => Err(LocalCacheError::IoPath(e, path)),
    }
}
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants