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

Output becomes blank when resizing #664

Closed
tlinford opened this issue Jan 27, 2022 · 6 comments · Fixed by #665
Closed

Output becomes blank when resizing #664

tlinford opened this issue Jan 27, 2022 · 6 comments · Fixed by #665
Labels
bug Something isn't working the way that is expected.

Comments

@tlinford
Copy link

Describe the bug

When resizing horizontally the terminal containing a running bottom instance, the output can disappear and afterwards the process becomes unresponsive, and high cpu usage can be observed.

What operating system/architecture are you using?

Arch Linux: Linux perihelion 5.16.2-arch1-1 #1 SMP PREEMPT Thu, 20 Jan 2022 16:18:29 +0000 x86_64 GNU/Linux

What terminal are you using bottom on?

alacritty 0.10.0 (8a26dee0)

What version are you on?

bottom 0.6.6

How did you install bottom?

pacman

How can we reproduce this?

resize the alacritty window horizontally, reducing it's size.

What is the actual behaviour?

here two instances of btm are running side by side, the one on the right is unresponsive and high cpu usage can be seen on the left:
screenshot-2022-01-27T08:27:22

@tlinford tlinford added the bug Something isn't working the way that is expected. label Jan 27, 2022
@ClementTsang
Copy link
Owner

Huh, interesting. I'll take a look this weekend.

@ClementTsang
Copy link
Owner

Hmmm... trying on Arch, Alacritty 0.10, and I can't reproduce this.

The only thing I can think of right away (it's also 4am so I might be missing something obvious) that's different is that I'm using X/i3... and I see you're on sway. But that shouldn't have any effect, right...?

@tlinford
Copy link
Author

strange - does not seem to be wayland related, just tested on gnome xorg session, and it happens there as well. Also happens with kitty.

here's a video showing how I trigger it, in case it helps:

recording.mp4

I just installed via cargo as well, and still can reproduce.

In any case, not a big deal for me - was debugging a problem with alternate screen apps in zellij and bottom was my test case :)

@ClementTsang
Copy link
Owner

Thanks for confirming that my weird guess was incorrect!

I see from the video you're reducing the horizontal size to a very small size before it seems to break - I think I know why then, and I guess I couldn't reproduce initially since my i3 config limits the min width to a bit larger than what you showed there.

I'll try reproducing tomorrow, hopefully I'll get a fix out soon.

@ClementTsang
Copy link
Owner

Alright, can reproduce, looking into now.

@ClementTsang
Copy link
Owner

Got a working fix, should be out on nightly shortly and I'll probably deploy a stable patch sometime this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working the way that is expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants