Bug 345775

Summary: Kate freeze
Product: [Applications] kate Reporter: metsys <pesda1.0>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: alexander.semke, b2.temp, cullmann, ilmari.lauhakangas, pesda1.0
Priority: NOR    
Version: 16.04.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.60.0

Description metsys 2015-04-01 21:07:16 UTC
Kate Version 5.0.0 (3af331a)
Using KDE Frameworks 5.7.0

Reproducible: Always

Steps to Reproduce:
1. download http://code.jquery.com/jquery-2.1.3.min.js (minified file)
2. Launch Kate, then go Settings->Configure Kate->Open/Save->Line Lenght Limit and set Unlimited. (if do not do this, file are not editable)
3. Then: File->Open and choose jquery-2.1.3.min.js. 
4. Then press CTRL+A  and see rapid / huge  CPU usage. This shown on sreenshot maden with top. On the first screenshot we can see ctrl+a of jquery-2.1.3.min.js and huge usage of cpu, on the second one - Kate after closed file jquery-2.1.3.min.js.

5. Bug reproduces always.
screens
http://res.cloudinary.com/metsys/image/upload/v1427922330/kde5/snapshot48.png

http://res.cloudinary.com/metsys/image/upload/v1427922329/kde5/snapshot50.png

Actual Results:  
screens
http://res.cloudinary.com/metsys/image/upload/v1427922330/kde5/snapshot48.png

http://res.cloudinary.com/metsys/image/upload/v1427922329/kde5/snapshot50.png

Expected Results:  
do not load CPU to top

https://forum.kde.org/viewtopic.php?f=225&t=125252

cpu info http://pastebin.com/NZYTSmSC

screens
http://res.cloudinary.com/metsys/image/upload/v1427922330/kde5/snapshot48.png

http://res.cloudinary.com/metsys/image/upload/v1427922329/kde5/snapshot50.png
Comment 1 Buovjaga 2016-06-25 13:19:13 UTC
Repro.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Christoph Cullmann 2018-08-16 21:13:30 UTC
*** Bug 384128 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Cullmann 2019-06-10 19:48:43 UTC
We try to improve this in

https://phabricator.kde.org/D17241
Comment 4 Christoph Cullmann 2019-06-10 19:51:53 UTC
*** Bug 387910 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2019-07-13 20:49:46 UTC
This got fixed with

https://phabricator.kde.org/D17241