re-editor icon indicating copy to clipboard operation
re-editor copied to clipboard

Stuck in endless loop, UI frozen

Open sgehrman opened this issue 1 year ago • 6 comments

Describe the bug

I'm downloading the text at this URL: https://youtube.co.jp probably others will fail, but that's what I'm testing

To Reproduce Get the text for the the url https://youtube.co.jp and display it in a CodeEditor

Expected behavior Should no crash

Screenshots

Screenshot from 2024-04-15 16-00-08

Device:

  • OS: Linux
  • Version latest

sgehrman avatar Apr 15 '24 07:04 sgehrman

@sgehrman Hi, can you attach the text as file here?

MegatronKing avatar Apr 15 '24 07:04 MegatronKing

text.txt

sgehrman avatar Apr 15 '24 12:04 sgehrman

It only hangs when I scroll down a bit. I just loaded that with CodeEditor and did a select all and copy. that works, but if I scrolll, it hangs.

sgehrman avatar Apr 15 '24 12:04 sgehrman

Thank you very much for your reply, but I haven't been able to reproduce the stuck issue.

I noticed that when scrolling down to line 71, there will be an obvious lag. This is an issue that I am currently aware of. When a single line of text is too long, skia's layout engine calculations will be very slow. I suspect that you are also encountering the same issue.

Perhaps this lag is amplified due to computer performance, maybe you can try deleting line 71.

MegatronKing avatar Apr 15 '24 12:04 MegatronKing

I'm on web and using the @LittleQ fork.

line 71 takes like 5 mins to process. It's unusable. Please fix.

sgehrman avatar Apr 15 '24 13:04 sgehrman

For now I'm breaking up long lines which is a temporary solution that doesn't take forever to scroll

sgehrman avatar Apr 18 '24 00:04 sgehrman