zellij-org / zellij

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

zellij does not start anymore #2553

Open amtoine opened 1 year ago

amtoine commented 1 year ago

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

INFO   |zellij_client            | 2023-06-17 18:54:54.795 [main      ] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-client-0.36.0/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-06-17 18:54:54.799 [main      ] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.36.0/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-06-17 18:54:54.854 [main      ] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.36.0/src/lib.rs:843]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-06-17 18:54:54.854 [wasm      ] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.36.0/src/plugins/mod.rs:72]: Wasm main thread starts 
ERROR  |zellij_utils::errors::not| 2023-06-17 18:54:54.876 [async-std/runti] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.42/src/impls/core/mod.rs:267:17
             message: assertion failed: !result.is_null() 
ERROR  |zellij_utils::errors::not| 2023-06-17 18:54:54.876 [async-std/runti] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/rkyv-0.7.42/src/impls/core/mod.rs:267:17
             message: assertion failed: !result.is_null() 
INFO   |zellij_server::plugins   | 2023-06-17 18:54:54.877 [wasm      ] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.36.0/src/plugins/mod.rs:162]: wasm main thread exits 
ERROR  |zellij_utils::errors::not| 2023-06-17 18:54:54.878 [async-std/runti] [/home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.36.0/src/errors.rs:585]: Panic occured:
             thread: async-std/runtime
             location: At /home/amtoine/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/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

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown> 

Basic information

zellij --version: zellij 0.36.0l stty size: 33 126 uname -av or ver(Windows): Linux archlinux 6.3.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 21 May 2023 16:15:22 +0000 x86_64 GNU/Linux nvim --version: NVIM v0.9.0 alacritty --version: alacritty 0.13.0-dev (bd490672) my shell: nushell 0.81.1 (main@a5dd93d)

Further information i am just trying to run zellij without anything more from the REPL :open_mouth:

amtoine commented 1 year ago

:heavy_check_mark: a quick fix

it appears installing Zellij from source with

cargo install --path /path/to/zellij-org/zellij/

and then switching back again to the Crates.io build with

cargo install zellij

breaks the cache :open_mouth:

a simple

rm ~/.cache/zellij/ -r

solved the issue :relieved:

turboladen commented 1 year ago

Seemingly having the same issue here. Recently brew install zellij (getting me version 0.37.2). I'd used zellij for a while some months ago, removed it, then just reinstalled it, but found it not able to run; it seems to launch, flashes some message in the terminal then exits with Received empty message from server. I removed ~/.config/zellij but no change. I removed the brew installed version and installed via cargo install, but see the same behavior there.

❯ zellij --version
zellij 0.37.2

❯ stty size
78 319

❯ uname -av
Darwin SteveLossLaptop.localdomain 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64

❯ alacritty --version
alacritty 0.12.2 (9d9982d)

Same behavior in Iterm2, Build 3.4.19.


Update: turns out I thought I'd removed all of ~/.config/zellij, but I'd just removed the config.kdl file. I had a layout that was loading the zellij-datetime.wasm plugin--once I removed that from my layout, I was fine.