reqable / re-editor

Re-Editor is a powerful lightweight text and code editor widget.
https://pub.dev/packages/re_editor
MIT License
502 stars 47 forks source link

Stuck in endless loop, UI frozen #14

Open sgehrman opened 6 months ago

sgehrman commented 6 months ago

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:

MegatronKing commented 6 months ago

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

sgehrman commented 6 months ago

text.txt

sgehrman commented 6 months ago

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.

MegatronKing commented 6 months ago

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.

sgehrman commented 6 months ago

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

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

sgehrman commented 6 months ago

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