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

zellij server pty crash due to failure on sending message to screen #1985

Open
Tracked by #1568
matu3ba opened this issue Dec 2, 2022 · 4 comments
Open
Tracked by #1568

zellij server pty crash due to failure on sending message to screen #1985

matu3ba opened this issue Dec 2, 2022 · 4 comments

Comments

@matu3ba
Copy link
Contributor

matu3ba commented Dec 2, 2022

Behavior observed: Crash

Expected behavior: No crash. Error log in cmd window suggesting to check the logs.

Basic information

zellij --version: zellij 0.33.0
stty size: 60 237
uname -av or ver(Windows): Linux pc 6.0.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 16 Nov 2022 17:01:17 +0000 x86_64 GNU/Linux

List of programs you interact with as, PROGRAM --version: alacritty 0.11.0 (8dbaa0bb), mpv 0.35.0 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects (from build on ArchOS). Probably NVIM v0.9.0-dev-428+g07e629652 running in tab 2.
Crashed on spawning firefox and discord.

Further information

Luckily I have logs with stack trace:

WARN   |zellij_server::panes::gri| 2022-12-02 19:48:17.775 [screen    ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/panes/grid.rs:2843]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2022-12-02 20:07:08.244 [screen    ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/panes/grid.rs:2843]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2022-12-02 20:07:09.268 [screen    ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/panes/grid.rs:2843]: Unhandled esc_dispatch: 62->[] 
INFO   |zellij_server::wasm_vm   | 2022-12-02 21:37:54.025 [wasm      ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/wasm_vm.rs:328]: wasm main thread exits 
ERROR  |zellij_utils::errors::not| 2022-12-02 21:37:54.046 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.33.0/src/errors.rs:452]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/pty.rs:776: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| 2022-12-02 21:37:54.060 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.33.0/src/errors.rs:452]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/pty.rs:538:22
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to run async task for terminal 19
    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| 2022-12-02 21:37:54.060 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.33.0/src/errors.rs:452]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.33.0/src/pty.rs:538:22
             message: Program terminates: a fatal error occured

Caused by:
    0: failed to run async task for terminal 23
    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 
INFO   |zellij_client            | 2022-12-02 21:37:54.102 [main      ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-client-0.33.0/src/lib.rs:392]: Bye from Zellij! 
@matu3ba
Copy link
Contributor Author

matu3ba commented Dec 2, 2022

Related to #1568.

@raphCode
Copy link
Contributor

raphCode commented Dec 6, 2022

Thanks for the report.
Do you remember what you did with zellij that triggered the crash?
Reading from what you wrote and the trace I guess you tried to open a new pane / tab?

@matu3ba
Copy link
Contributor Author

matu3ba commented Dec 6, 2022

Do you remember what you did with zellij that triggered the crash?
Reading from what you wrote and the trace I guess you tried to open a new pane / tab?

Yes.

@matu3ba
Copy link
Contributor Author

matu3ba commented Mar 31, 2023

Reoccurence once my ssh session was terminated (this time without spawning new pane/tab):

INFO   |zellij_server::plugins   | 2023-03-31 17:20:43.749 [wasm      ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.35.2/src/plugins/mod.rs:132]: wasm main thread exits 
ERROR  |zellij_utils::errors::not| 2023-03-31 17:20:43.753 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.35.2/src/errors.rs:576]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.35.2/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-03-31 17:20:43.755 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.35.2/src/errors.rs:576]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.35.2/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  |???                      | 2023-03-31 17:20:43.759 [main      ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-client-0.35.2/src/lib.rs:433]: a non-fatal error occured

Caused by:
    0: failed to enable mouse mode
    1: Input/output error (os error 5) 
INFO   |zellij_client            | 2023-03-31 17:20:43.759 [main      ] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-client-0.35.2/src/lib.rs:434]: Bye from Zellij! 
ERROR  |zellij_utils::errors::not| 2023-03-31 17:20:43.762 [async-std/runti] [/home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-utils-0.35.2/src/errors.rs:576]: Panic occured:
             thread: async-std/runtime
             location: At /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/zellij-server-0.35.2/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 

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

No branches or pull requests

2 participants