Bug 386064 - Kate crashes when adding newline near end of certain files
Summary: Kate crashes when adding newline near end of certain files
Status: RESOLVED DUPLICATE of bug 384404
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 17.08.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-22 11:02 UTC by swagfortress
Modified: 2017-11-05 11:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Two files known to cause the problem (3.79 KB, text/x-csrc)
2017-10-22 11:02 UTC, swagfortress
Details
Two files known to cause the problem (2.36 KB, application/gzip)
2017-10-22 11:03 UTC, swagfortress
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***