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

crash while executing a script: [failed to enable mouse mode] #2638

Open
alekspickle opened this issue Jul 20, 2023 · 5 comments
Open

crash while executing a script: [failed to enable mouse mode] #2638

alekspickle opened this issue Jul 20, 2023 · 5 comments

Comments

@alekspickle
Copy link
Contributor

alekspickle commented Jul 20, 2023

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?

@imsnif
Copy link
Member

imsnif commented Jul 20, 2023

Hum, I think this is basically failing to write to STDOUT for some reason... iirc @tlinford encountered something similar recently, right?

@tlinford
Copy link
Contributor

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?

@imsnif
Copy link
Member

imsnif commented Jul 20, 2023

Yeah, it's also not even a crash:

self.os_input.enable_mouse().non_fatal();

I guess these are both symptoms of something else unhandled

@alekspickle
Copy link
Contributor Author

Ok, if it's something unhandled unless I find what it is exactly I'll close this

@imsnif
Copy link
Member

imsnif commented Jul 20, 2023

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.

@alekspickle alekspickle changed the title crash while executing a script?.. crash while executing a script?.. [failed to enable mouse mode] May 31, 2024
@alekspickle alekspickle changed the title crash while executing a script?.. [failed to enable mouse mode] crash while executing a script: [failed to enable mouse mode] May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants