zellij-org / zellij

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

Zellij fails to start with if scroll_buffer_size is bigger than 2^30(`1073741824`) #2094

Open DianaNites opened 1 year ago

DianaNites commented 1 year ago

Using a scroll_buffer_size of 2^30(1073741824) or bigger fails with "Received empty message from server", while 1073741823 works. This is quite a bit below the documented range of "positive integers", and even below the realistically expected range of a u32

There is no indication as to why it failed, nor any apparent reason for this to fail. I have 64 GiB of RAM, and plenty of it free.

The reason I have/want it so high is because theres no "unlimited" option, and I need my scrollback to persist unless and until I clear it, as well as an attempt to work around #2041

Zellij does, however, attach to existing sessions just fine no matter the value. I assume it is being ignored.

Basic information

zellij --version: zellij 0.34.4 stty size: 45 167 uname -av or ver(Windows): Linux 6.1.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 07 Jan 2023 15:10:07 +0000 x86_64 GNU/Linux

raphCode commented 1 year ago

as well as an attempt to work around #2041

Sadly, it won't help: The "buffer full" messages refer to the IPC channel between the zellij server and client process and h as nothing to do with the scrollback buffer.