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

Input textbox accepts enough input to freeze the program #17496

Open
beercanchicken opened this issue May 28, 2021 · 0 comments
Open

Input textbox accepts enough input to freeze the program #17496

beercanchicken opened this issue May 28, 2021 · 0 comments
Labels

Comments

@beercanchicken
Copy link

beercanchicken commented May 28, 2021

Description

I mistakenly pasted about 1 mb of text from the clipboard into a conversation and Element. Initially I tried to delete it, but deletion caused the program to freeze. Although the UI was frozen (I let it sit for about 2 minutes), Element had saved it as a draft and performed a normal quit. The text was still present in the input box the next load and therefore the room hasn't been usable because the bug becomes a loop.

Steps to reproduce

  • Gather large amount of text (1.0 mb / 14223 lines / 1,063,246 characters in my case)
  • Paste it into text box
  • Select all, delete text (UI should freeze)
  • Quit application
  • Restart application
  • See large amount of text in textbox saved as draft
  • Select all, delete text (UI should freeze)
  • Quit application
  • Restart application
  • See large amount of text in textbox saved as draft
  • Select all, delete text (UI should freeze)
  • Quit application
  • Restart application
  • See large amount of text in textbox saved as draft
  • etc.

Possible solution(s)

  • Truncate text at an arbitrary amount that is high enough to not be noticed, but low enough to keep performance in check.
  • Evaluate for any unnecessary text processing during delete text action (delete keypress, delete event)
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