Bug 254701

Summary: Kate crashed when cutting folded text
Product: [Applications] kate Reporter: Reg Charney <reg.charney>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Reg Charney 2010-10-19 22:56:25 UTC
Application: kate (3.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-25-generic i686
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
I was editing a piece of HTML text. named j.html. Kate recognized I was working with HTML. While folded, I tried to cut a piece of text when the crash occurred.

The crash can be reproduced every time.

 -- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[KCrash Handler]
#6  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#7  0x02abe7f2 in KateLayoutCache::lastViewLine (this=0x9dc12c8, realLine=50) at ../../kate/render/katelayoutcache.cpp:469
#8  0x02b2cbc5 in KateViewInternal::viewLineOffset (this=0x9dad7c0, virtualCursor=..., offset=21, keepX=false) at ../../kate/view/kateviewinternal.cpp:1359
#9  0x02b2fd64 in KateViewInternal::makeVisible (this=0x9dad7c0, c=..., endCol=0, force=false, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:666
#10 0x02b305f0 in KateViewInternal::updateCursor (this=0x9dad7c0, newCursor=..., force=true, center=<value optimized out>, calledExternally=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:1914
#11 0x02b313eb in KateViewInternal::editEnd (this=0x9dad7c0, editTagLineStart=17, editTagLineEnd=17, tagFrom=true) at ../../kate/view/kateviewinternal.cpp:3399
#12 0x02b0fc69 in KateView::editEnd (this=0x9d26250, editTagLineStart=17, editTagLineEnd=17, tagFrom=<value optimized out>) at ../../kate/view/kateview.cpp:1602
#13 0x02a77b04 in KateDocument::editEnd (this=0x9ac83b8) at ../../kate/document/katedocument.cpp:977
#14 0x02b1754d in KateView::removeSelectedText (this=0x9d26250) at ../../kate/view/kateview.cpp:1774
#15 0x02b17aa2 in KateView::qt_metacall (this=0x9d26250, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0xbff32ad8) at ./kateview.moc:328
#16 0x05233c9a in QMetaObject::metacall (object=0x9d26250, cl=QMetaObject::ReadProperty, idx=57, argv=0xbff32ad8) at kernel/qmetaobject.cpp:237
#17 0x052423d5 in QMetaObject::activate (sender=0x9e57b88, m=0x17e4d58, local_signal_index=1, argv=0xbff32ad8) at kernel/qobject.cpp:3293
#18 0x00eb5bd9 in QAction::triggered (this=0x9e57b88, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#19 0x00eb7dcc in QAction::activate (this=0x9e57b88, event=QAction::Trigger) at kernel/qaction.cpp:1255
#20 0x00eb9698 in QAction::event (this=0x0, e=0x0) at kernel/qaction.cpp:1181
#21 0x00a35d63 in KAction::event (this=0x9e57b88, event=0xbff32ff8) at ../../kdeui/actions/kaction.cpp:129
#22 0x00ebc4dc in QApplicationPrivate::notify_helper (this=0x93ce040, receiver=0x9e57b88, e=0xbff32ff8) at kernel/qapplication.cpp:4300
#23 0x00ec305e in QApplication::notify (this=0xbff33f24, receiver=0x9e57b88, e=0xbff32ff8) at kernel/qapplication.cpp:3704
#24 0x00b21f2a in KApplication::notify (this=0xbff33f24, receiver=0x9e57b88, event=0xbff32ff8) at ../../kdeui/kernel/kapplication.cpp:302
#25 0x0522ea3b in QCoreApplication::notifyInternal (this=0xbff33f24, receiver=0x9e57b88, event=0xbff32ff8) at kernel/qcoreapplication.cpp:704
#26 0x00efe34d in QCoreApplication::sendEvent (this=0x93ce0ec, e=0xbff33474) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QShortcutMap::dispatchEvent (this=0x93ce0ec, e=0xbff33474) at kernel/qshortcutmap.cpp:879
#28 0x00f0015e in QShortcutMap::tryShortcutEvent (this=0x93ce0ec, o=0x9dad7c0, e=0xbff33474) at kernel/qshortcutmap.cpp:364
#29 0x00ec4e43 in QApplication::notify (this=0xbff33f24, receiver=0x9dad7c0, e=0xbff33474) at kernel/qapplication.cpp:3746
#30 0x00b21f2a in KApplication::notify (this=0xbff33f24, receiver=0x9dad7c0, event=0xbff33474) at ../../kdeui/kernel/kapplication.cpp:302
#31 0x0522ea3b in QCoreApplication::notifyInternal (this=0xbff33f24, receiver=0x9dad7c0, event=0xbff33474) at kernel/qcoreapplication.cpp:704
#32 0x00ebd2be in QCoreApplication::sendSpontaneousEvent (receiver=0x9dad7c0, event=0x0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#33 qt_sendSpontaneousEvent (receiver=0x9dad7c0, event=0x0) at kernel/qapplication.cpp:5279
#34 0x00f76d90 in QKeyMapper::sendKeyEvent (keyWidget=0x9dad7c0, grab=false, type=QEvent::KeyPress, code=88, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, 
    nativeScanCode=53, nativeVirtualKey=120, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1861
#35 0x00f792f5 in QKeyMapperPrivate::translateKeyEvent (this=0x93f47d0, keyWidget=0x9dad7c0, event=0xbff33b3c, grab=false) at kernel/qkeymapper_x11.cpp:1831
#36 0x00f4c757 in QApplication::x11ProcessEvent (this=0xbff33f24, event=0xbff33b3c) at kernel/qapplication_x11.cpp:3394
#37 0x00f7c60a in x11EventSourceDispatch (s=0x93d0238, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x008695e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0x0086d2d8 in ?? () from /lib/libglib-2.0.so.0
#40 0x0086d4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#41 0x0525a5d5 in QEventDispatcherGlib::processEvents (this=0x93af9c0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#42 0x00f7c135 in QGuiEventDispatcherGlib::processEvents (this=0x93af9c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x0522d059 in QEventLoop::processEvents (this=0xbff33e34, flags=) at kernel/qeventloop.cpp:149
#44 0x0522d4aa in QEventLoop::exec (this=0xbff33e34, flags=...) at kernel/qeventloop.cpp:201
#45 0x0523169f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#46 0x00ebc577 in QApplication::exec () at kernel/qapplication.cpp:3579
#47 0x00d81a65 in kdemain (argc=2, argv=0xbff345c4) at ../../../kate/app/katemain.cpp:377
#48 0x080485fb in main (argc=2, argv=0xbff345c4) at kate_dummy.cpp:3

This bug may be a duplicate of or related to bug 247081.

Possible duplicates by query: bug 252284, bug 249861, bug 249826, bug 247081, bug 237966.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-10-21 19:58:01 UTC

*** This bug has been marked as a duplicate of bug 252284 ***
Comment 2 Milian Wolff 2010-10-21 19:58:58 UTC

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