Bug 199716

Summary: kate random crash when clicking
Product: [Applications] kate Reporter: nick
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, armin, christoph, echidnaman, fbianco, ghostunderscore, j__n
Priority: VHI    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Backtrace

Description nick 2009-07-10 21:52:01 UTC
Application that crashed: kate
Version of the application: 3.2.95
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.0
Operating System: Linux 2.6.28-13-generic i686
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Twice i am just editing a document and when i click on the end of the document it crashes. Im not sure but it might also have to do with having the command line in kate also open as i edit latex and use the kate command line to runt pdflatex.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  0xb1fe8fef in KateSmartCursor::setPositionInternal (this=0x9ab086c, pos=@0xbff47718, internal=false) at /build/buildd/kde4libs-4.2.95/kate/smart/katesmartcursor.cpp:186
#7  0xb1fe9c08 in KateSmartCursor::setPosition (this=0x9ab086c, pos=@0xbff47718) at /build/buildd/kde4libs-4.2.95/kate/smart/katesmartcursor.cpp:415
#8  0xb204001a in KateViewInternal::updateCursor (this=0x9ab0818, newCursor=@0xbff47718, force=false, center=false, calledExternally=false)
    at /build/buildd/kde4libs-4.2.95/kate/smart/katesmartcursor.h:68
#9  0xb2044346 in KateViewInternal::placeCursor (this=0x9ab0818, p=@0xbff47c88, keepSelection=false, updateSelection=true) at /build/buildd/kde4libs-4.2.95/kate/view/kateviewinternal.cpp:2164
#10 0xb2045a47 in KateViewInternal::mousePressEvent (this=0x9ab0818, e=0xbff47c78) at /build/buildd/kde4libs-4.2.95/kate/view/kateviewinternal.cpp:2617
#11 0xb6a04c46 in QWidget::event (this=0x9ab0818, event=0xbff47c78) at kernel/qwidget.cpp:7512
#12 0xb69ade9c in QApplicationPrivate::notify_helper (this=0x96b6448, receiver=0x9ab0818, e=0xbff47c78) at kernel/qapplication.cpp:4084
#13 0xb69b6b11 in QApplication::notify (this=0xbff486b8, receiver=0x9ab0818, e=0xbff47c78) at kernel/qapplication.cpp:3786
#14 0xb74e83dd in KApplication::notify (this=0xbff486b8, receiver=0x9ab0818, event=0xbff47c78) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#15 0xb7f1da3b in QCoreApplication::notifyInternal (this=0xbff486b8, receiver=0x9ab0818, event=0xbff47c78) at kernel/qcoreapplication.cpp:602
#16 0xb69b5b7e in QApplicationPrivate::sendMouseEvent (receiver=0x9ab0818, event=0xbff47c78, alienWidget=0x9ab0818, nativeWidget=0x9846ad0, buttonDown=0xb7258200, lastMouseReceiver=@0xb7258204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#17 0xb6a2597e in QETWidget::translateMouseEvent (this=0x9846ad0, event=0xbff482bc) at kernel/qapplication_x11.cpp:4425
#18 0xb6a24ca7 in QApplication::x11ProcessEvent (this=0xbff486b8, event=0xbff482bc) at kernel/qapplication_x11.cpp:3421
#19 0xb6a4fc6a in x11EventSourceDispatch (s=0x96b9400, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#20 0xb6540b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0xb65440eb in ?? () from /usr/lib/libglib-2.0.so.0
#22 0xb6544268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0xb7f49438 in QEventDispatcherGlib::processEvents (this=0x96b6428, flags={i = -1074494344}) at kernel/qeventdispatcher_glib.cpp:323
#24 0xb6a4f365 in QGuiEventDispatcherGlib::processEvents (this=0x96b6428, flags={i = -1074494296}) at kernel/qguieventdispatcher_glib.cpp:202
#25 0xb7f1c06a in QEventLoop::processEvents (this=0xbff48520, flags={i = -1074494232}) at kernel/qeventloop.cpp:149
#26 0xb7f1c4aa in QEventLoop::exec (this=0xbff48520, flags={i = -1074494168}) at kernel/qeventloop.cpp:200
#27 0xb7f1e959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#28 0xb69add17 in QApplication::exec () at kernel/qapplication.cpp:3553
#29 0xb5ce786d in kdemain () from /usr/lib/libkdeinit4_kate.so
#30 0x0804e1c0 in launch (argc=2, _name=0x9691e1c "/usr/bin/kate", args=0x9691e69 "", cwd=0x0, envc=1, envs=0x9691e6e "DISPLAY=:0.0", reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x9691e7f "trinidad;1247250481;566548;6114_TIME174449070") at /build/buildd/kde4libs-4.2.95/kinit/kinit.cpp:672
#31 0x0804e99d in handle_launcher_request (sock=7, who=<value optimized out>) at /build/buildd/kde4libs-4.2.95/kinit/kinit.cpp:1164
#32 0x0804ef25 in handle_requests (waitForPid=0) at /build/buildd/kde4libs-4.2.95/kinit/kinit.cpp:1357
#33 0x0804fb0a in main (argc=2, argv=0xbff49274, envp=0xbff49280) at /build/buildd/kde4libs-4.2.95/kinit/kinit.cpp:1784

Reported using DrKonqi
Comment 1 Armin Berres 2009-10-11 17:13:26 UTC
Just also experienced this crash. I was joining some lines in the documenent and when I was nearly finished, maybe I reached the end if the document as the OP, Kile crashed.

Application: Kile (kile), signal: Segmentation fault
[KCrash Handler]
#5  KateSmartCursor::setPositionInternal (this=0x319be88, pos=..., internal=false) at ../../kate/smart/katesmartcursor.cpp:186
#6  0x00007f3a0d25afa7 in KateSmartCursor::setPosition (this=0x319be88, pos=...) at ../../kate/smart/katesmartcursor.cpp:415
#7  0x00007f3a0d2a97be in KateSmartCursor::operator= (this=0x319be00, newCursor=..., force=<value optimized out>, center=false, calledExternally=false) at ../../kate/smart/katesmartcursor.h:68
#8  KateViewInternal::updateCursor (this=0x319be00, newCursor=..., force=<value optimized out>, center=false, calledExternally=false) at ../../kate/view/kateviewinternal.cpp:1901
#9  0x00007f3a0d2ad41a in KateViewInternal::placeCursor (this=0x319be00, p=<value optimized out>, keepSelection=false, updateSelection=true) at ../../kate/view/kateviewinternal.cpp:2164
#10 0x00007f3a0d2ae852 in KateViewInternal::mousePressEvent (this=0x319be00, e=0x7fff468be320) at ../../kate/view/kateviewinternal.cpp:2617
#11 0x00000035b3a27d26 in QWidget::event (this=<value optimized out>, event=<value optimized out>) at kernel/qwidget.cpp:7545
#12 0x00000035b39d780d in QApplicationPrivate::notify_helper (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:4056
#13 0x00000035b39dffba in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=<value optimized out>) at kernel/qapplication.cpp:3758
#14 0x00000035b5e240db in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at ../../kdeui/kernel/kapplication.cpp:302
#15 0x00000035b335251c in QCoreApplication::notifyInternal (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at kernel/qcoreapplication.cpp:610
#16 0x00000035b39df268 in QCoreApplication::sendSpontaneousEvent (receiver=<value optimized out>, event=<value optimized out>, alienWidget=<value optimized out>, nativeWidget=<value optimized out>, 
    buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#17 QApplicationPrivate::sendMouseEvent (receiver=<value optimized out>, event=<value optimized out>, alienWidget=<value optimized out>, nativeWidget=<value optimized out>, 
    buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>) at kernel/qapplication.cpp:2924
#18 0x00000035b3a47df9 in QETWidget::translateMouseEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:4409
#19 0x00000035b3a46baf in QApplication::x11ProcessEvent (this=<value optimized out>, event=<value optimized out>) at kernel/qapplication_x11.cpp:3550
#20 0x00000035b3a6ee9c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#21 0x00000035b1a3b12a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#22 0x00000035b1a3e988 in ?? () from /lib/libglib-2.0.so.0
#23 0x00000035b1a3eb3c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#24 0x00000035b337abff in QEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#25 0x00000035b3a6e64f in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#26 0x00000035b3350de2 in QEventLoop::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:149
#27 0x00000035b33511b4 in QEventLoop::exec (this=<value optimized out>, flags=<value optimized out>) at kernel/qeventloop.cpp:201
#28 0x00000035b3353424 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#29 0x00000000005ea185 in _start ()
Comment 2 Armin Berres 2009-10-11 17:14:06 UTC
Oh, and FWIW this is KDE 4.3.2.
Comment 3 Jonathan Thomas 2009-11-15 20:17:08 UTC
*** Bug 214677 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-11-15 20:17:54 UTC
Bug 214677 got a complete backtrace
Comment 5 François Bianco 2009-12-15 14:54:52 UTC
*** Bug 218657 has been marked as a duplicate of this bug. ***
Comment 6 François Bianco 2009-12-15 14:56:09 UTC
Created attachment 39069 [details]
Backtrace

Similar crash while edditing a text file.
Comment 7 François Bianco 2009-12-15 14:58:24 UTC
Is there a way to recover the unsaved edited text file somewhere ? I just lost quite a bit of work with this unexpected bug.
Comment 8 François Bianco 2009-12-16 15:32:29 UTC
I am not fully sure, and would need confirmation, but it seems to me that this bug is possibly related to the "static line breaking" option. I always experience this bug when this option is on. I am also always using Kate with the terminal open. I hope it might help to find where the problem is located.
Comment 9 Milian Wolff 2010-01-09 19:16:16 UTC
This might have been fixed now with the fix for bug 200450 , as it might have reduced the size of a group and hence lead to cases where we have lines at the end of a document without a related SmartGroup. I'm tempted to close this as fixed as well until someone can reproduce it again. What would you guys say?
Comment 10 Milian Wolff 2010-02-12 02:35:50 UTC
setting to fixed, please reopen if you see this crash in kde 4.4.0 or 4.3.5 or
above.
Comment 11 Dario Andres 2010-03-17 17:05:19 UTC
*** Bug 231119 has been marked as a duplicate of this bug. ***
Comment 12 Dario Andres 2010-03-19 13:51:25 UTC
*** Bug 231263 has been marked as a duplicate of this bug. ***
Comment 13 Dominik Haumann 2010-04-08 16:22:30 UTC
*** Bug 233683 has been marked as a duplicate of this bug. ***
Comment 14 Dominik Haumann 2010-04-08 16:24:20 UTC
Happened again in KDE 4.4.2, see comment #13. Reopen? Wait for KDE 4.5?
Comment 15 Christoph Cullmann 2010-04-29 08:30:12 UTC
We can't fix that in KDE 4.4, it's just the broken smart* stuff.
It is purged in /trunk already nearly completly, this problem won't happen for KDE 4.5, I guess. (beside other problems with static word wrap)

I am rather sorry about this issue and apologize that the smart* stuff went that wrong and causes severe issues for the users :(
For KDE 4.5, this all will change (and already has, in /trunk)
Comment 16 Dominik Haumann 2010-06-03 12:23:27 UTC

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