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

[BUG] Panic when resizing the Terminal too small #731

Open
FriederHannenheim opened this issue May 3, 2023 · 2 comments
Open

[BUG] Panic when resizing the Terminal too small #731

FriederHannenheim opened this issue May 3, 2023 · 2 comments
Labels

Comments

@FriederHannenheim
Copy link

FriederHannenheim commented May 3, 2023

Describe the bug

thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`: Was promised 2, received 1', /home/fried/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive_core-0.3.7/src/views/edit_view.rs:513:9

To Reproduce
Create a layout with an edit view and resize the terminal very small

Expected behavior
It doesn't crash and when I resize it back to big the layout is still there

Environment

  • Linux
  • Backend used: crossterm
  • Current locale (run locale in a terminal)
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
  • Cursive version (from crates.io, from git, ...)
    0.20.0 from crates.io

Additional context
Terminal used: Alacritty

@gyscos
Copy link
Owner

gyscos commented Jul 7, 2023

Hi, and thanks for the report! Will have a look.

@gyscos
Copy link
Owner

gyscos commented May 28, 2024

Would you happen to have an example that can cause the crash? I'm trying with the edit example, but it doesn't seem to crash when resized as small as possible.

correabuscar added a commit to correabuscar/cursive that referenced this issue Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants