zellij: Scrolling (too quickly) causes zellij session to be detached and it must be killed to continue.

First, thank you for zellij; it’s great!

The problem I am having is that when I have a terminal with a long history (i.e. a lot of text), and I scroll up too quickly, I get booted out of my zellij session. After this, I am unable to reattach it, and I can’t even start a new session until I kill the existing sessions. I can see the session out of which I have been booted, and it shows up in ps with the status Sl. I tried e.g. sending it a CONT signal, but to no avail.

In the cases where this has happened to me (it’s occurred several times), I was scrolling up using the mouse, and each time I was scrolling quickly. It doesn’t seem to happen when I scroll slowly, or when I scroll back using the keyboard bindings.

Also, perhaps strangely, processes attached to the unconnectable session are still going (I had a jupyter notebook in one tab, and I was still able to interact with the kernel, even though I couldn’t reattach the zellij session from which it was launched).

Basic information

zellij --version: zellij 0.34.3 stty size: 72 258 uname -av or ver(Windows): Linux newton 5.4.0-132-generic #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Im also having this same behaviour - MacOS with kitty term. I will add that additionally I am seeing before this occurs that attempting to scroll can be difficult full stop with focus repeatedly drawn to my prompt as I attempt to scroll upwards - making it impossible to scroll up, and then the crash occurs.

Once this occurs I can’t seem to get zellij working from any terminal without a system restart btw.

Just got this same thing in iterm2 in MacOS. Happy to help however I can! Version 0.34.4 btw.

Hey @kescobo - I’m really sorry for this experience. Losing work sucks and please do not blame yourself! This is a Zellij bug.

That being said, this should be very much mitigated (hopefully to the level of non-existence) in version 0.35.1 and above. There’s also some pretty nice features added that will hopefully delight you as well. Maybe give it a try?

Im also having this same behaviour - MacOS with kitty term. I will add that additionally I am seeing before this occurs that attempting to scroll can be difficult full stop with focus repeatedly drawn to my prompt as I attempt to scroll upwards - making it impossible to scroll up, and then the crash occurs.

Once this occurs I can’t seem to get zellij working from any terminal without a system restart btw.

You can use something like htop or the Activity Monitor to find and kill the hung zellij server that’s in the background.