Bug 210037

Summary: Crashes when switching from XML (debug) highlighting to plain XML highlighting
Product: [Applications] kate Reporter: Wade <archeron>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, sreich
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Wade 2009-10-10 01:12:48 UTC
Version:           3.3.1 (using KDE 4.3.1)
OS:                Linux
Installed from:    Fedora RPMs

Start editing a new document in Kate.

Add some minimal XML like the following.

<movie service="craftsman-1.0">
  <body>

  </body>
</movie>

Now, select tools->highlighting->markup->XML (Debug) and then tools->highlighting->markup->XML.

Viola! Krash!  This has been verified in trunk.  This could be related to bug 200989 but that is unclear.  Someone with debugging libs installed has agreed to supply a backtrace.

P.S.
 To the Kate team... awesome job on an awesome editor.

Cheers.
 -Wade
Comment 1 Shaun Reich 2009-10-10 01:37:17 UTC
SVN Trunk revision {October, 9th, '09} revision#: 1033183

Fully reproducible.

Application: Kate (kate), signal: Aborted
[KCrash Handler]
#6  0xb7fe9424 in __kernel_vsyscall ()
#7  0xb611b411 in raise () from /lib/libc.so.6
#8  0xb611cc12 in abort () from /lib/libc.so.6
#9  0xb72625d3 in qt_message_output (msgType=QtFatalMsg, buf=0x8bd3600 "ASSERT: \"0\" in file /home/shaun/kde/src/kdelibs/kate/syntax/katehighlight.h, line 290") at global/qglobal.cpp:2204
#10 0xb7262795 in qt_message (msgType=QtFatalMsg, msg=0xb73fca7c "ASSERT: \"%s\" in file %s, line %d", ap=0xbfb2d914 "\340\np\263\250\np\263\"\001") at global/qglobal.cpp:2250
#11 0xb7262bb3 in qFatal (msg=0xb73fca7c "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2433
#12 0xb726216c in qt_assert (assertion=0xb3700ae0 "0", file=0xb3700aa8 "/home/shaun/kde/src/kdelibs/kate/syntax/katehighlight.h", line=290) at global/qglobal.cpp:1967
#13 0xb361f5e6 in KateHighlighting::contextNum (this=0x86851a0, n=0) at /home/shaun/kde/src/kdelibs/kate/syntax/katehighlight.h:290
#14 0xb3614402 in KateHighlighting::doHighlight (this=0x86851a0, prevLine=0x8b388e0, textLine=0x8b2abe8, foldingList=..., ctxChanged=@0xbfb2da33)
    at /home/shaun/kde/src/kdelibs/kate/syntax/katehighlight.cpp:272
#15 0xb35beabe in KateBuffer::doHighlight (this=0x8a75410, startLine=136, endLine=136, invalidate=false) at /home/shaun/kde/src/kdelibs/kate/document/katebuffer.cpp:1159
#16 0xb35bde14 in KateBuffer::ensureHighlighted (this=0x8a75410, line=136) at /home/shaun/kde/src/kdelibs/kate/document/katebuffer.cpp:847
#17 0xb35afa26 in KateDocument::kateTextLine (this=0x8a5c598, i=136) at /home/shaun/kde/src/kdelibs/kate/document/katedocument.cpp:4906
#18 0xb35ef9cb in KateLineLayout::textLine (this=0x871ab78, reloadForce=false) at /home/shaun/kde/src/kdelibs/kate/render/katelinelayout.cpp:67
#19 0xb35e3f1f in KateRenderer::layoutLine (this=0x8a7cc70, lineLayout=..., maxwidth=-1, cacheLayout=true) at /home/shaun/kde/src/kdelibs/kate/render/katerenderer.cpp:815
#20 0xb35ead01 in KateLayoutCache::line (this=0x88d1b10, realLine=136, virtualLine=136) at /home/shaun/kde/src/kdelibs/kate/render/katelayoutcache.cpp:312
#21 0xb35ea8a3 in KateLayoutCache::updateViewCache (this=0x88d1b10, startPos=..., newViewLineCount=40, viewLinesScrolled=0) at /home/shaun/kde/src/kdelibs/kate/render/katelayoutcache.cpp:265
#22 0xb364cf3f in KateViewInternal::doUpdateView (this=0x8a7e350, changed=true, viewLinesScrolled=0) at /home/shaun/kde/src/kdelibs/kate/view/kateviewinternal.cpp:596
#23 0xb364cde5 in KateViewInternal::updateView (this=0x8a7e350, changed=true, viewLinesScrolled=0) at /home/shaun/kde/src/kdelibs/kate/view/kateviewinternal.cpp:572
#24 0xb3643ec3 in KateView::updateView (this=0x8a7cf78, changed=true) at /home/shaun/kde/src/kdelibs/kate/view/kateview.cpp:1674
#25 0xb364364b in KateView::updateDocumentConfig (this=0x8a7cf78) at /home/shaun/kde/src/kdelibs/kate/view/kateview.cpp:1548
#26 0xb35aab46 in KateDocument::updateConfig (this=0x8a5c598) at /home/shaun/kde/src/kdelibs/kate/document/katedocument.cpp:4062
#27 0xb36ab384 in KateDocumentConfig::updateConfig (this=0x8a73760) at /home/shaun/kde/src/kdelibs/kate/utils/kateconfig.cpp:233
#28 0xb36aa1a0 in KateConfig::configEnd (this=0x8a73760) at /home/shaun/kde/src/kdelibs/kate/utils/kateconfig.cpp:77
#29 0xb36ab5cc in KateDocumentConfig::setIndentationMode (this=0x8a73760, indentationMode=...) at /home/shaun/kde/src/kdelibs/kate/utils/kateconfig.cpp:301
#30 0xb35be307 in KateBuffer::setHighlight (this=0x8a75410, hlMode=57) at /home/shaun/kde/src/kdelibs/kate/document/katebuffer.cpp:991
#31 0xb359dc7f in KateDocument::setHighlightingMode (this=0x8a5c598, name=...) at /home/shaun/kde/src/kdelibs/kate/document/katedocument.cpp:1584
#32 0xb362aaba in KateHighlightingMenu::setHl (this=0x8ac5a40) at /home/shaun/kde/src/kdelibs/kate/syntax/katehighlightmenu.cpp:120
#33 0xb362a1ac in KateHighlightingMenu::qt_metacall (this=0x8ac5a40, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfb2e258) at /home/shaun/kde/build/kdelibs/kate/katehighlightmenu.moc:75
#34 0xb7388018 in QMetaObject::metacall (object=0x8ac5a40, cl=QMetaObject::InvokeMetaMethod, idx=24, argv=0xbfb2e258) at kernel/qmetaobject.cpp:237
#35 0xb739c064 in QMetaObject::activate (sender=0x89f2268, m=0xb6f873f0, local_signal_index=1, argv=0xbfb2e258) at kernel/qobject.cpp:3398
#36 0xb64f5d06 in QAction::triggered (this=0x89f2268, _t1=true) at .moc/debug-shared/moc_qaction.cpp:263
#37 0xb64f51bd in QAction::activate (this=0x89f2268, event=QAction::Trigger) at kernel/qaction.cpp:1245
#38 0xb6a230e0 in QMenuPrivate::activateCausedStack (this=0x8b42de8, causedStack=..., action=0x89f2268, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:971
#39 0xb6a23534 in QMenuPrivate::activateAction (this=0x8b42de8, action=0x89f2268, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1064
#40 0xb6a27905 in QMenu::mouseReleaseEvent (this=0x8b42288, e=0xbfb2ea5c) at widgets/qmenu.cpp:2269
#41 0xb656d05a in QWidget::event (this=0x8b42288, event=0xbfb2ea5c) at kernel/qwidget.cpp:7898
#42 0xb6a27f9e in QMenu::event (this=0x8b42288, e=0xbfb2ea5c) at widgets/qmenu.cpp:2368
#43 0xb65052ea in QApplicationPrivate::notify_helper (this=0x83edc00, receiver=0x8b42288, e=0xbfb2ea5c) at kernel/qapplication.cpp:4162
#44 0xb6503cf7 in QApplication::notify (this=0xbfb2f390, receiver=0x8b42288, e=0xbfb2ea5c) at kernel/qapplication.cpp:3807
#45 0xb79c6e0e in KApplication::notify (this=0xbfb2f390, receiver=0x8b42288, event=0xbfb2ea5c) at /home/shaun/kde/src/branches/work/sok-progress-in-icons/kdelibs/kdeui/kernel/kapplication.cpp:302
#46 0xb7380a87 in QCoreApplication::notifyInternal (this=0xbfb2f390, receiver=0x8b42288, event=0xbfb2ea5c) at kernel/qcoreapplication.cpp:699
#47 0xb6507a83 in QCoreApplication::sendSpontaneousEvent (receiver=0x8b42288, event=0xbfb2ea5c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#48 0xb65023b7 in QApplicationPrivate::sendMouseEvent (receiver=0x8b42288, event=0xbfb2ea5c, alienWidget=0x0, nativeWidget=0x8b42288, buttonDown=0xb6faa7c0, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2951
#49 0xb6590edc in QETWidget::translateMouseEvent (this=0x8b42288, event=0xbfb2f030) at kernel/qapplication_x11.cpp:4325
#50 0xb658de38 in QApplication::x11ProcessEvent (this=0xbfb2f390, event=0xbfb2f030) at kernel/qapplication_x11.cpp:3408
#51 0xb65c3c20 in x11EventSourceDispatch (s=0x83f0278, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#52 0xb5741d98 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#53 0xb57453e0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#54 0xb5745513 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#55 0xb73b7f16 in QEventDispatcherGlib::processEvents (this=0x83edbe0, flags=...) at kernel/qeventdispatcher_glib.cpp:328
#56 0xb65c4246 in QGuiEventDispatcherGlib::processEvents (this=0x83edbe0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#57 0xb737de7b in QEventLoop::processEvents (this=0xbfb2f2fc, flags=...) at kernel/qeventloop.cpp:149
#58 0xb737dfc0 in QEventLoop::exec (this=0xbfb2f2fc, flags=...) at kernel/qeventloop.cpp:201
#59 0xb7381163 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:976
#60 0xb6503072 in QApplication::exec () at kernel/qapplication.cpp:3567
#61 0xb7fe2a46 in kdemain (argc=1, argv=0xbfb2fa24) at /home/shaun/kde/src/kdesdk/kate/app/katemain.cpp:377
#62 0x080486d9 in main (argc=1, argv=0xbfb2fa24) at /home/shaun/kde/build/kdesdk/kate/app/kate_dummy.cpp:3
Comment 2 Dario Andres 2009-10-10 01:54:58 UTC
This was reported already at bug 200989. Merging
Thanks

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