Bug 238292

Summary: Kile crashed when using backspace key to remove selected text.
Product: [Applications] kate Reporter: michaelcochez
Component: partAssignee: 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:

Description michaelcochez 2010-05-20 13:05:07 UTC
Application: kile (2.0.85)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
I had selected a patch of text and wanted to remove it.

The crash does not seem to be reproducible.

 -- Backtrace:
Application: Kile (kile), signal: Segmentation fault
[KCrash Handler]
#5  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#6  0x00007f9c7057be2a in KateLayoutCache::viewLine (this=0x2a11fc0, realCursor=...) at ../../kate/render/katelayoutcache.cpp:395
#7  0x00007f9c7057c421 in KateLayoutCache::textLayout (this=0x2a11fc0, realCursor=...) at ../../kate/render/katelayoutcache.cpp:337
#8  0x00007f9c705e194f in KateViewInternal::makeVisible (this=0x2a3cc40, c=<value optimized out>, endCol=<value optimized out>, force=false, center=<value optimized out>, 
    calledExternally=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:690
#9  0x00007f9c705e2009 in KateViewInternal::updateCursor (this=0x2a3cc40, newCursor=<value optimized out>, force=<value optimized out>, center=false, calledExternally=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:1914
#10 0x00007f9c705e2c39 in KateViewInternal::editEnd (this=0x2a3cc40, editTagLineStart=<value optimized out>, editTagLineEnd=<value optimized out>, tagFrom=<value optimized out>)
    at ../../kate/view/kateviewinternal.cpp:3399
#11 0x00007f9c7053ad11 in KateDocument::editEnd (this=0x3ece980) at ../../kate/document/katedocument.cpp:977
#12 0x00007f9c70541aa6 in KateDocument::removeText (this=0x3ece980, _range=<value optimized out>, block=<value optimized out>) at ../../kate/document/katedocument.cpp:821
#13 0x00007f9c7054361a in KateDocument::backspace (this=0x3ece980, view=<value optimized out>, c=<value optimized out>) at ../../kate/document/katedocument.cpp:2906
#14 0x00007f9c705c8a5c in KateView::backspace (this=0x2a33040) at ../../kate/view/kateview.cpp:2295
#15 0x00007f9c705cdbbd in KateView::qt_metacall (this=0x2a33040, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff58a99e70) at ./kateview.moc:373
#16 0x00007f9c82082e3f in QMetaObject::activate (sender=0x3f34370, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1) at kernel/qobject.cpp:3293
#17 0x00007f9c829de032 in QAction::triggered (this=0x0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#18 0x00007f9c829e00ab in QAction::activate (this=0x3f34370, event=<value optimized out>) at kernel/qaction.cpp:1255
#19 0x00007f9c829e19b7 in QAction::event (this=0x0, e=<value optimized out>) at kernel/qaction.cpp:1181
#20 0x00007f9c83874f3d in KAction::event (this=0x0, event=0x7fff58a9a4e0) at ../../kdeui/actions/kaction.cpp:129
#21 0x00007f9c829e422c in QApplicationPrivate::notify_helper (this=0x1e17810, receiver=0x3f34370, e=0x7fff58a9a4e0) at kernel/qapplication.cpp:4300
#22 0x00007f9c829ea6fb in QApplication::notify (this=0x7fff58a9ba90, receiver=0x3f34370, e=0x7fff58a9a4e0) at kernel/qapplication.cpp:4183
#23 0x00007f9c8394a526 in KApplication::notify (this=0x7fff58a9ba90, receiver=0x3f34370, event=0x7fff58a9a4e0) at ../../kdeui/kernel/kapplication.cpp:302
#24 0x00007f9c8207006c in QCoreApplication::notifyInternal (this=0x7fff58a9ba90, receiver=0x3f34370, event=0x7fff58a9a4e0) at kernel/qcoreapplication.cpp:704
#25 0x00007f9c82a1fe86 in QCoreApplication::sendEvent (this=<value optimized out>, e=0x7fff58a9aae0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QShortcutMap::dispatchEvent (this=<value optimized out>, e=0x7fff58a9aae0) at kernel/qshortcutmap.cpp:879
#27 0x00007f9c82a21c97 in QShortcutMap::tryShortcutEvent (this=0x1e17938, o=<value optimized out>, e=0x7fff58a9aae0) at kernel/qshortcutmap.cpp:364
#28 0x00007f9c829ec268 in QApplication::notify (this=0x7fff58a9ba90, receiver=0x2a3cc40, e=0x7fff58a9aae0) at kernel/qapplication.cpp:3746
#29 0x00007f9c8394a526 in KApplication::notify (this=0x7fff58a9ba90, receiver=0x2a3cc40, event=0x7fff58a9aae0) at ../../kdeui/kernel/kapplication.cpp:302
#30 0x00007f9c8207006c in QCoreApplication::notifyInternal (this=0x7fff58a9ba90, receiver=0x2a3cc40, event=0x7fff58a9aae0) at kernel/qcoreapplication.cpp:704
#31 0x00007f9c82a8f16a in QKeyMapper::sendKeyEvent (keyWidget=0x2a3cc40, grab=<value optimized out>, type=QEvent::KeyPress, code=16777219, modifiers=<value optimized out>, text=..., 
    autorepeat=false, count=1, nativeScanCode=22, nativeVirtualKey=65288, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1861
#32 0x00007f9c82a916f0 in QKeyMapperPrivate::translateKeyEvent (this=0x1e54100, keyWidget=0x2a3cc40, event=<value optimized out>, grab=16) at kernel/qkeymapper_x11.cpp:1831
#33 0x00007f9c82a68904 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff58a9b6b0) at kernel/qapplication_x11.cpp:3394
#34 0x00007f9c82a94882 in x11EventSourceDispatch (s=0x1e1b110, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007f9c7e0a38c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x00007f9c7e0a7748 in ?? () from /lib/libglib-2.0.so.0
#37 0x00007f9c7e0a78fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#38 0x00007f9c82099513 in QEventDispatcherGlib::processEvents (this=0x1df21a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#39 0x00007f9c82a9446e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f9c8206e992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#41 0x00007f9c8206ed6c in QEventLoop::exec (this=0x7fff58a9b9e0, flags=) at kernel/qeventloop.cpp:201
#42 0x00007f9c82072aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#43 0x00000000005f21f2 in _start ()

Reported using DrKonqi
Comment 1 Michel Ludwig 2010-05-22 16:38:22 UTC
This is a problem with KatePart, which has most likely been fixed already for KDE 4.5.
Comment 2 Dominik Haumann 2010-05-22 23:50:58 UTC

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