Bug 386064

Summary: Kate crashes when adding newline near end of certain files
Product: [Applications] kate Reporter: swagfortress
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 17.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Two files known to cause the problem
Two files known to cause the problem

Description swagfortress 2017-10-22 11:02:00 UTC
Created attachment 108503 [details]
Two files known to cause the problem

I've been writing C code using Kate. Adding newlines to the end of certain longer files always causes Kate to crash.

Attached are:
 C source code files which produce the problem
 Logs from both of the C files crashing
 Kate swap files left over from the crashes
Comment 1 swagfortress 2017-10-22 11:03:34 UTC
Created attachment 108504 [details]
Two files known to cause the problem
Comment 2 Christoph Feck 2017-10-25 17:21:51 UTC
Please add the backtrace for the crash. For more information, please see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 3 Dominik Haumann 2017-11-05 11:12:10 UTC
This is a regression in the indentation in the KTextEditor framework 5.38 and 5.39. This regression was introduced since we switched from the Qt Script to the Qt QML javascript implementation. Unfortunately, the Qt QML implementation still had issues which we did not catch early enough.

The good news is that if you upgrade your Qt version to Qt >= 5.9.1, then this crash is fixed. A workaround will also be available with KDE Frameworks 5.40 which should prevent the crash.

Sorry for the inconvenience!

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