zellij: always crashes on resize
Is zellij supposed to do something reasonable if you resize the terminal? I find that it always, 100% of the time, crashes if you resize the terminal.
Error occurred in server:
× Thread 'screen' panicked.
├─▶ Originating Thread(s)
│ 1. stdin_handler_thread: AcceptInput
│ 2. screen_thread: TerminalPixelDimensions
│
├─▶ At zellij-server/src/screen.rs:490:46
╰─▶ attempt to divide by zero
help: If you are seeing this message, it means that something went wrong.
Please report this error to the github issue.
(https://github.com/zellij-org/zellij/issues)
Also, if you want to see the backtrace, you can set the `RUST_BACKTRACE` environment variable to `1`.
Basic information
zellij --version
:0.29.1
uname -av
or ver
(Windows): Linux micc 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (15 by maintainers)
Uh, that is pretty bad and should not happen. Thanks for reporting!
What terminal emulator are you using?
Crash location: https://github.com/zellij-org/zellij/blob/a7ddfe1acc798adb4c8dfba2b674fd9e133b4c15/zellij-server/src/screen.rs#L490
Either we are doing something strange or the terminal reports a size of 0 briefly? Don’t know, just reads like it.