zellij
zellij copied to clipboard
crash while executing a script: [failed to enable mouse mode]
I was trying to check out Graphite with stable diffusion, but when I setup the AI server and try to run it it crashes.
While the fail on the other apps are irrelevant here it somehow also messes up with zellij sessions: first time it detached from the session, and after I reattached and tried to run again it terminated the session. Any idea what would be useful to debug further? Meaningful lines I see in logs are not giving me enough context tbh:
// detach
WARN |zellij_server::panes::gri| 2023-07-20 15:27:26.829 [screen ] [zellij-server/src/panes/grid.rs:2389]: Unhandled osc: [[49], [46, 47, 119, 101, 98, 117, 105, 46, 115, 104]]
WARN |zellij_server::panes::gri| 2023-07-20 15:28:11.960 [screen ] [zellij-server/src/panes/grid.rs:2389]: Unhandled osc: [[49], [46, 46, 102, 102, 117, 115, 105, 111, 110, 45, 119, 101, 98, 117, 105]]
ERROR |??? | 2023-07-20 15:28:11.961 [main ] [zellij-client/src/lib.rs:434]: a non-fatal error occured
Caused by:
0: failed to enable mouse mode
1: I/O error (os error 5)
INFO |zellij_client | 2023-07-20 15:28:11.961 [main ] [zellij-client/src/lib.rs:435]: Bye from Zellij!
...
// session termination
WARN |zellij_server::panes::gri| 2023-07-20 15:29:18.510 [screen ] [zellij-server/src/panes/grid.rs:2389]: Unhandled osc: [[49], [46, 47, 119, 101, 98, 117, 105, 46, 115, 104]]
WARN |zellij_utils::ipc | 2023-07-20 15:29:42.167 [router ] [zellij-utils/src/ipc.rs:230]: Error in IpcReceiver.recv(): InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
ERROR |zellij_client | 2023-07-20 15:29:42.167 [router ] [zellij-client/src/lib.rs:309]: Received empty message from server
how it looks in the terminal
~ on ☁ (eu-west-2)
➜ zj -s main
Session with name "main" already exists. Use attach command to connect to it or specify a different name.
~ on ☁ (eu-west-2)
❯ zj attach main
Received empty message from server
~ on ☁ (eu-west-2) took 1m7s
❯ zj attach main
No session with the name 'main' found!
Main question here I suppose - what exit codes can cause such inconsistent behavior?
Hum, I think this is basically failing to write to STDOUT for some reason... iirc @tlinford encountered something similar recently, right?
yeah, it was in #2329. At least in that case I figure it was just a side effect of the server going down. In the end that error is client side, it shouldn't be related to sessions dying?
Yeah, it's also not even a crash: https://github.com/zellij-org/zellij/blob/6cf795a7df6c83b65a4535b6af0338b4a0b1742f/zellij-client/src/input_handler.rs#L83
I guess these are both symptoms of something else unhandled
Ok, if it's something unhandled unless I find what it is exactly I'll close this
I think it's fine to keep this open as a reported issue, even if we don't yet have enough info how to solve it.