Bug 453912

Summary: Presence of text that is not adherent to the current codepage causes scrolling during observation of that information to be slow.
Product: [Applications] kate Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: waqar.17a
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roke Julian Lockhart Beedell 2022-05-16 20:26:33 UTC
SUMMARY
Presence of much text that is not adherent to the current codepage causes scrolling during observation of that information via Kate to be slow.

STEPS TO REPRODUCE
1. Invoke the file that is attached.
2. Scroll across the entirety of the file.

OBSERVED RESULT
Kate becomes slow, hangs, or crashes during observation of approximately the 45444th line.

EXPECTED RESULT
Kate should operate as quickly as it alternatively would.

SOFTWARE/OS VERSIONS
Windows: Not evaluated.
macOS: Not evaluated.
Linux/KDE Plasma: Positive.
KDE Plasma Version: `5.24.5`.
KDE Frameworks Version: `5.94.0`.
Qt Version: `5.15.3`.
Comment 1 Roke Julian Lockhart Beedell 2022-05-16 20:35:01 UTC
I am unable to attach the file. It is too large. `http://file.io/mGsjiQA89PmB` is the file. The file is what execution of `file://localhost/usr/bin/script` of `http://github.com/util-linux/util-linux` creates.
Comment 2 Waqar Ahmed 2023-03-20 17:55:38 UTC
Is it possible to reshare the file? The link says "file is deleted". Otherwise instructions on how to create such a file / a smaller version of the file which exhibits this issue would be great.
Comment 3 Roke Julian Lockhart Beedell 2023-03-23 00:18:14 UTC
(In reply to Waqar Ahmed from comment #2)
> Is it possible to reshare the file? The link says "file is deleted".
> Otherwise instructions on how to create such a file / a smaller version of
> the file which exhibits this issue would be great.

https://drive.google.com/file/d/1RNoIKKycLFfPsOwZY66G88mjNyhflygO/view?usp=sharing appears to exhibit similar behaviour. Carefully hover your mouse to slowly scroll using Kate's visual scrollbar ability. When you pass by approximately the middle of the file via that, Kate shall either hang (and then crash) or, when you hover your mouse to where the scrollbar preview itself hangs and then click to navigate the main view there, Kate should stall, hang, and crash.
Comment 4 Roke Julian Lockhart Beedell 2023-03-23 00:18:26 UTC
Please verify.
Comment 5 Waqar Ahmed 2023-03-24 10:26:31 UTC
The problem is that the file has very long lines. Kate doesn't work well if the lines are too long.

*** This bug has been marked as a duplicate of bug 432325 ***