zellij-org / zellij

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

Crash when decreasing size of pane #3623

Open 2Kaleb opened 1 week ago

2Kaleb commented 1 week ago

Issues with the Zellij crash

Issue description

Scenario: Window open with about 9 panes in base mode

Attempted to decrease size of a corner pane with Alt - multiple times --> Crash

Minimal reproduction

zellij.log

Other relevant information

Terminal: st 0.9 zellij 0.40.1 (installed from conda-forge)

imsnif commented 1 week ago

The stack trace, as reported by @2Kaleb on Discord:

Error occurred in server:

  × Thread 'screen' panicked.
  ├─▶ Originating Thread(s)
  │     1. stdin_handler_thread: AcceptInput
  │     2. screen_thread: ResizeDecreaseAll
  │
  ├─▶ At zellij-server/src/tab/mod.rs:2108:44
  ╰─▶ Program terminates: a fatal error occured

      Caused by:
          0: failed to decrease size on every border for active tiled pane for client 1
          1: failed to decrease size on every border by (5.0, 5.0) for pane Terminal(25)
          2: failed to decrease size on right border by (5.0, 5.0) for pane Terminal(25)
          3: Ran out of room for spans
  help: If you are seeing this message, it means that something went wrong.

        -> To get additional information, check the log at: /tmp/zellij-876/zellij-log/zellij.log
        -> To see a backtrace next time, reproduce the error with: RUST_BACKTRACE=1 zellij [...]
        -> To help us fix this, please open an issue: https://github.com/zellij-org/zellij/issues