Summary: | (steps) Crash when pasting a XML snippet and selecting XML highlighting over a non-XML document (html file as testcase) | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Fabian <fabian> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | andresbajotierra, archeron, xdan779 |
Priority: | VHI | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Fabian
2009-07-21 15:02:56 UTC
I can reproduce the crash every time when I copy some xml in a document which was opend on startup and change the highlighting to xml. Can you post some XML snippet that will cause Kate to crash? Thanks Any XML I tried so far caused the crash eg: <?xml version="1.0" encoding="UTF-8"?> <xml> <test/> </xml> Here using: Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76 Date: Fri Jun 26 13:45:37 2009 +0200) KDE: 4.3.61 (KDE 4.3.61 (KDE 4.4 >= 20090717)) kdelibs svn rev. 999250 / kdebase svn rev. 999250 on ArchLinux i686 - Kernel 2.6.30.1 Opening Kate, pasting the provided XML snippet and selecting the "XML" highlighting didn't crashed the application. Did you past it in an existing document (with activated highlighting different to html) and then switch the highlighting. It does not crash when I past it in a new document, only when I past it in an existing document, with some different highlighting already active. Thanks for the hint: I could reproduce the crash with the same setup as I described in comment 4 The steps are: - Open Kate - Open a HTML document. The html page will be loaded and the highlightning automatically set to "HTML" - Copy the XML snippet - Select all the html text (Ctrl+A) and paste the XML snippet over it Now the document is only the XML snippet - Go to Tools/Highlighting/Markup/XML Kate crashes. (with the same backtrace as comment 0) Updating the title to reflect the discovery. Regards can reproduce. updated backtrace Application: KWrite (kwrite), signal: Aborted [KCrash Handler] #5 0xb7eec430 in __kernel_vsyscall () #6 0xb68116d0 in raise () from /lib/tls/i686/cmov/libc.so.6 #7 0xb6813098 in abort () from /lib/tls/i686/cmov/libc.so.6 #8 0xb6aec74d in qt_message_output (msgType=QtFatalMsg, buf=0x9df0228 "ASSERT: \"0\" in file /home/dh/kde/trunk/kdelibs/kate/syntax/katehighlight.h, line 275") at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:2042 #9 0xb6aec807 in qFatal (msg=0xb6c206d8 "ASSERT: \"%s\" in file %s, line %d") at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:2241 #10 0xb6aec8c5 in qt_assert (assertion=0xb4a04fa7 "0", file=0xb4a04f70 "/home/dh/kde/trunk/kdelibs/kate/syntax/katehighlight.h", line=275) at /home/dh/kde/trunk/qt-copy/src/corelib/global/qglobal.cpp:1811 #11 0xb4927c67 in KateHighlighting::contextNum (this=0x9a83d88, n=0) at /home/dh/kde/trunk/kdelibs/kate/syntax/katehighlight.h:275 #12 0xb4923095 in KateHighlighting::doHighlight (this=0x9a83d88, prevLine=0x9fa28d0, textLine=0x9ee3000, foldingList=@0xbfc07968, ctxChanged=@0xbfc07997) at /home/dh/kde/trunk/kdelibs/kate/syntax/katehighlight.cpp:272 #13 0xb48dbb63 in KateBuffer::doHighlight (this=0x9aa36d8, startLine=3, endLine=3, invalidate=false) at /home/dh/kde/trunk/kdelibs/kate/document/katebuffer.cpp:1086 #14 0xb48dce0a in KateBuffer::ensureHighlighted (this=0x9aa36d8, line=3) at /home/dh/kde/trunk/kdelibs/kate/document/katebuffer.cpp:775 #15 0xb48b0d52 in KateDocument::kateTextLine (this=0x9a0f960, i=3) at /home/dh/kde/trunk/kdelibs/kate/document/katedocument.cpp:6052 #16 0xb4908cdd in KateLineLayout::textLine (this=0x9f7c6e8, reloadForce=false) at /home/dh/kde/trunk/kdelibs/kate/render/katelinelayout.cpp:67 #17 0xb48fa6f7 in KateRenderer::layoutLine (this=0x9aa3780, lineLayout={d = 0xbfc07b44}, maxwidth=-1, cacheLayout=true) at /home/dh/kde/trunk/kdelibs/kate/render/katerenderer.cpp:806 #18 0xb49039b6 in KateLayoutCache::line (this=0x9ae1708, realLine=3, virtualLine=3) at /home/dh/kde/trunk/kdelibs/kate/render/katelayoutcache.cpp:312 #19 0xb4904b2e in KateLayoutCache::updateViewCache (this=0x9ae1708, startPos=@0x9ae1870, newViewLineCount=24, viewLinesScrolled=0) at /home/dh/kde/trunk/kdelibs/kate/render/katelayoutcache.cpp:265 #20 0xb4951e40 in KateViewInternal::doUpdateView (this=0x9ae1788, changed=true, viewLinesScrolled=0) at /home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp:594 #21 0xb4952701 in KateViewInternal::updateView (this=0x9ae1788, changed=true, viewLinesScrolled=0) at /home/dh/kde/trunk/kdelibs/kate/view/kateviewinternal.cpp:570 #22 0xb493c191 in KateView::updateView (this=0x9adffb0, changed=true) at /home/dh/kde/trunk/kdelibs/kate/view/kateview.cpp:1647 #23 0xb493d8ba in KateView::updateDocumentConfig (this=0x9adffb0) at /home/dh/kde/trunk/kdelibs/kate/view/kateview.cpp:1521 #24 0xb48b3184 in KateDocument::updateConfig (this=0x9a0f960) at /home/dh/kde/trunk/kdelibs/kate/document/katedocument.cpp:5230 #25 0xb49bb4de in KateDocumentConfig::updateConfig (this=0x9aa33d8) at /home/dh/kde/trunk/kdelibs/kate/utils/kateconfig.cpp:227 #26 0xb49b53a8 in KateConfig::configEnd (this=0x9aa33d8) at /home/dh/kde/trunk/kdelibs/kate/utils/kateconfig.cpp:77 #27 0xb49b7c9c in KateDocumentConfig::setIndentationMode (this=0x9aa33d8, indentationMode=@0xbfc07e50) at /home/dh/kde/trunk/kdelibs/kate/utils/kateconfig.cpp:295 #28 0xb48da503 in KateBuffer::setHighlight (this=0x9aa36d8, hlMode=56) at /home/dh/kde/trunk/kdelibs/kate/document/katebuffer.cpp:919 #29 0xb48b1c4b in KateDocument::setHighlightingMode (this=0x9a0f960, name=@0x9f5f878) at /home/dh/kde/trunk/kdelibs/kate/document/katedocument.cpp:2803 *** Bug 201636 has been marked as a duplicate of this bug. *** *** Bug 210037 has been marked as a duplicate of this bug. *** SVN commit 1033721 by pletourn: Don't change the indentation mode in the middle of changing the highlighting mode BUG:200989 M +4 -4 katebuffer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1033721 SVN commit 1033735 by dhaumann: backport SVN commit 1033721 by pletourn: Don't change the indentation mode in the middle of changing the highlighting mode CCBUG:200989 M +4 -4 katebuffer.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1033735 |