-
-
Notifications
You must be signed in to change notification settings - Fork 583
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
Changing selection on a cleared table can make the app unresponsive. #944
Comments
I attached a goroutine profiler. It looks like the table is stuck in this loop: Line 1373 in 861aa94
|
Thank you. This should be fixed with the latest commit. |
kopecmaciej
pushed a commit
to kopecmaciej/tview
that referenced
this issue
Aug 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we take the following example
We have row 0; which is not selectable (think of a header in a table)
And a few selectable rows. We can add rows by pressing
a
, and clear withc
.Expected
If we add a few rows this works fine, but if we click
c
we clear the table and create the (unselectable) header again. Then, we pressj
to move to a different row, causing the selection to "change".After this, the app becomes unresponsive. Adding a new row with
a
does nothing.Even
ctr c
does not close the app anymore, and CPU jumps up to 100%.Side note: if i clear the table with row 2 (3th row) selected, and do not select a different row. And add a few rows again, i can see that row 2 is still selected. And the app stays responsive. It only happens when changing a row.
The text was updated successfully, but these errors were encountered: