Summary: | Crash when pressing ctrl+x with code folding [KateBuffer::computeFoldingRangeForStartLine] | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Emmanuel Lepage Vallée <emmanuel.lepage> |
Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | JohnMS, maris.kde, paul, pbs3141, zotovyaa |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/ktexteditor/4e08d37ee449a77d068e74cb135b90c84860b460 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Emmanuel Lepage Vallée
2014-10-12 02:43:19 UTC
The code for this is: 522:KTextEditor::Range KateBuffer::computeFoldingRangeForStartLine (int startLine) ... 539: ensureHighlighted (startLine); 540: Kate::TextLine startTextLine = plainLine (startLine); 541: 542: /** 543: * return if no folding start! 544: */ 545: if (!startTextLine->markedAsFoldingStart ()) 546: return KTextEditor::Range::invalid(); Maybe startTextLine is invalid? startLine is 1048 in the trace above, so that number looks good. Probably very hard to reproduce and fix. Created attachment 91498 [details]
New crash information added by DrKonqi
kate (3.14.4) on KDE Platform 4.14.4 using Qt 4.8.6
This happened for me when I attempted to cut a large chunk of bash code using ctrl-x (fedora 21, kate-4.14.3-3.fc21.x86_64)
-- Backtrace (Reduced):
#6 0x00007f2232208404 in KateBuffer::computeFoldingRangeForStartLine(int) () at /lib64/libkatepartinterfaces.so.4
#7 0x00007f2232299aae in KateIconBorder::showBlock() () at /lib64/libkatepartinterfaces.so.4
[...]
#9 0x00007f224b9642a3 in QObject::event(QEvent*) (this=0x3153fd8, e=<optimized out>) at kernel/qobject.cpp:1253
#10 0x00007f224c83eefc in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x23bb540, receiver=receiver@entry=0x3153fd8, e=e@entry=0x7fff23831dc0) at kernel/qapplication.cpp:4565
#11 0x00007f224c845958 in QApplication::notify(QObject*, QEvent*) (this=this@entry=0x7fff238322c0, receiver=receiver@entry=0x3153fd8, e=e@entry=0x7fff23831dc0) at kernel/qapplication.cpp:4351
I was deleting in a fast way some parts of not so long HTML5 document and got the same crash. Unfortunately backtrace was incomplete. Editing the same file once more went just fine. A timing issue? kate: 3.14.6 KDE SC: 4.14.6 Gentoo ~AMD64 Git commit 4e08d37ee449a77d068e74cb135b90c84860b460 by Christoph Cullmann. Committed on 04/10/2015 at 11:38. Pushed by cullmann into branch 'master'. validate line before calling folding stuff M +1 -1 src/printing/kateprinter.h M +2 -2 src/view/kateview.cpp M +5 -4 src/view/kateviewhelpers.cpp http://commits.kde.org/ktexteditor/4e08d37ee449a77d068e74cb135b90c84860b460 *** Bug 352585 has been marked as a duplicate of this bug. *** *** Bug 362858 has been marked as a duplicate of this bug. *** *** Bug 381275 has been marked as a duplicate of this bug. *** |