Bug 250336 - kate crash on closing file no more present
Summary: kate crash on closing file no more present
Status: RESOLVED DUPLICATE of bug 230426
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 09:07 UTC by Bruno Friedmann
Modified: 2010-10-23 16:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (7.96 KB, text/plain)
2010-09-16 11:37 UTC, Marcos Dione
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Friedmann 2010-09-06 09:07:27 UTC
Application: kate (3.4.4)
KDE Platform Version: 4.4.4 (KDE 4.4.4) "release 8"
Qt Version: 4.6.3
Operating System: Linux 2.6.34-12-desktop i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
openSUSE 11.3 - 32bits / kde 4.4.4 distro/stable 
I've a kate session containing 53 files.
Lot's of them have been moved before opening kate.
When openning the session, kate inform me that it can't find a number of files.

I start select files which are not present ( grayed ) and hit the ctrl+w .
At the 4th or 5th files closed. it crash.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Kate (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#6  ref (this=0xbff6e90c, other=@0x86adef6) at ../../src/corelib/arch/qatomic_i386.h:120
#7  QUrl::QUrl (this=0xbff6e90c, other=@0x86adef6) at io/qurl.cpp:4150
#8  0xb757d6fa in KUrl::KUrl(KUrl const&) () from /usr/lib/libkdecore.so.5
#9  0xb74ce570 in KParts::ReadOnlyPart::url (this=0x86adea8) at /usr/src/debug/kdelibs-4.4.4/kparts/part.cpp:465
#10 0xb1da9095 in KateDocManager::data (this=0x815a6a8, index=..., role=35) at /usr/src/debug/kdesdk-4.4.4/kate/app/katedocmanager.cpp:133
#11 0xb1ddccfe in KateViewDocumentProxyModel::data (this=0x84c7118, index=..., role=35) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewdocumentproxymodel.cpp:325
#12 0xb1ddfc2d in KateViewDocumentProxyModel::sort (this=0x84c7118) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewdocumentproxymodel.cpp:637
#13 0xb1de0938 in KateViewDocumentProxyModel::opened (this=0x84c7118, index=...) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewdocumentproxymodel.cpp:216
#14 0xb1db4a63 in KateMainWindow::slotWindowActivated (this=0x8455300) at /usr/src/debug/kdesdk-4.4.4/kate/app/katemainwindow.cpp:566
#15 0xb1dbb937 in KateMainWindow::qt_metacall (this=0x8455300, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbff6ed0c)
    at /usr/src/debug/kdesdk-4.4.4/build/kate/app/katemainwindow.moc:181
#16 0xb6c0aefd in QMetaObject::metacall (object=0x8455300, cl=QMetaObject::InvokeMetaMethod, idx=59, argv=0xbff6ed0c) at kernel/qmetaobject.cpp:237
#17 0xb6c19fe8 in QMetaObject::activate (sender=0x834df50, m=0xb1dfe4c4, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3295
#18 0xb1dbe6e5 in KateViewManager::viewChanged (this=0x834df50) at /usr/src/debug/kdesdk-4.4.4/build/kate/app/kateviewmanager.moc:164
#19 0xb1dbfb88 in KateViewManager::activateView (this=0x834df50, view=0x8788c60) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewmanager.cpp:469
#20 0xb1dc0497 in KateViewManager::createView (this=0x834df50, doc=<value optimized out>) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewmanager.cpp:308
#21 0xb1dc19b4 in KateViewManager::qt_metacall (this=0x834df50, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbff6ef08) at /usr/src/debug/kdesdk-4.4.4/build/kate/app/kateviewmanager.moc:138
#22 0xb6c0aefd in QMetaObject::metacall (object=0x834df50, cl=QMetaObject::InvokeMetaMethod, idx=45, argv=0xbff6ef08) at kernel/qmetaobject.cpp:237
#23 0xb6c19fe8 in QMetaObject::activate (sender=0x815a6a8, m=0xb1dfd6f4, local_signal_index=2, argv=0xbff6ef08) at kernel/qobject.cpp:3295
#24 0xb1da8655 in KateDocManager::documentDeleted (this=0x815a6a8, _t1=0x86adea8) at /usr/src/debug/kdesdk-4.4.4/build/kate/app/katedocmanager.moc:138
#25 0xb1daab66 in KateDocManager::deleteDoc (this=0x815a6a8, doc=0x86adea8) at /usr/src/debug/kdesdk-4.4.4/kate/app/katedocmanager.cpp:218
#26 0xb1dacad6 in KateDocManager::closeDocument (this=0x815a6a8, doc=0x86adea8, closeUrl=true) at /usr/src/debug/kdesdk-4.4.4/kate/app/katedocmanager.cpp:366
#27 0xb1dbf2ad in KateViewManager::slotDocumentClose (this=0x834df50, document=0x86adea8) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewmanager.cpp:205
#28 0xb1dbff53 in KateViewManager::slotDocumentClose (this=0x834df50) at /usr/src/debug/kdesdk-4.4.4/kate/app/kateviewmanager.cpp:214
#29 0xb1dc18fd in KateViewManager::qt_metacall (this=0x834df50, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbff6f328) at /usr/src/debug/kdesdk-4.4.4/build/kate/app/kateviewmanager.moc:130
#30 0xb6c0aefd in QMetaObject::metacall (object=0x834df50, cl=QMetaObject::InvokeMetaMethod, idx=37, argv=0xbff6f328) at kernel/qmetaobject.cpp:237
#31 0xb6c19fe8 in QMetaObject::activate (sender=0x8516b28, m=0xb6a6dd28, local_signal_index=1, argv=0xbff6f328) at kernel/qobject.cpp:3295
#32 0xb6137a0d in QAction::triggered (this=0x8516b28, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#33 0xb6137cab in QAction::activate (this=0x8516b28, event=QAction::Trigger) at kernel/qaction.cpp:1255
#34 0xb6137e50 in QAction::event (this=0xbff6e90c, e=0x740065) at kernel/qaction.cpp:1181
#35 0xb6fdc76f in KAction::event (this=0x8516b28, event=0xbff6f828) at /usr/src/debug/kdelibs-4.4.4/kdeui/actions/kaction.cpp:129
#36 0xb613ec64 in QApplicationPrivate::notify_helper (this=0x80d61f0, receiver=0x8516b28, e=0xbff6f828) at kernel/qapplication.cpp:4302
#37 0xb6146bf7 in QApplication::notify (this=0xbff706d4, receiver=0x8516b28, e=0xbff6f828) at kernel/qapplication.cpp:3706
#38 0xb6e489d1 in KApplication::notify (this=0xbff706d4, receiver=0x8516b28, event=0xbff6f828) at /usr/src/debug/kdelibs-4.4.4/kdeui/kernel/kapplication.cpp:302
#39 0xb6c04e0e in QCoreApplication::notifyInternal (this=0xbff706d4, receiver=0x8516b28, event=0xbff6f828) at kernel/qcoreapplication.cpp:726
#40 0xb617586f in sendEvent (this=0x80d629c, e=0xbff6fc94) at ../../src/corelib/kernel/qcoreapplication.h:215
#41 QShortcutMap::dispatchEvent (this=0x80d629c, e=0xbff6fc94) at kernel/qshortcutmap.cpp:879
#42 0xb6176de5 in QShortcutMap::tryShortcutEvent (this=0x80d629c, o=0x8412270, e=0xbff6fc94) at kernel/qshortcutmap.cpp:364
#43 0xb6148848 in QApplication::notify (this=0x8412270, receiver=0x8412270, e=0xbff6fc94) at kernel/qapplication.cpp:3748
#44 0xb6e489d1 in KApplication::notify (this=0xbff706d4, receiver=0x8412270, event=0xbff6fc94) at /usr/src/debug/kdelibs-4.4.4/kdeui/kernel/kapplication.cpp:302
#45 0xb6c04e0e in QCoreApplication::notifyInternal (this=0xbff706d4, receiver=0x8412270, event=0xbff6fc94) at kernel/qcoreapplication.cpp:726
#46 0xb613c3bd in sendSpontaneousEvent (receiver=0x8412270, event=0xbff6fc94) at ../../src/corelib/kernel/qcoreapplication.h:218
#47 qt_sendSpontaneousEvent (receiver=0x8412270, event=0xbff6fc94) at kernel/qapplication.cpp:5281
#48 0xb61ebcf3 in QKeyMapper::sendKeyEvent (keyWidget=0x8412270, grab=false, type=QEvent::KeyPress, code=87, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=3220629772, 
    nativeVirtualKey=3220629772, nativeModifiers=3220629772) at kernel/qkeymapper_x11.cpp:1875
#49 0xb61ec1c1 in QKeyMapperPrivate::translateKeyEvent (this=0x8106260, keyWidget=0x8412270, event=0xbff7033c, grab=false) at kernel/qkeymapper_x11.cpp:1845
#50 0xb61c57ca in QApplication::x11ProcessEvent (this=0xbff706d4, event=0xbff7033c) at kernel/qapplication_x11.cpp:3406
#51 0xb61ef570 in x11EventSourceDispatch (s=0x80daf40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#52 0xb5888b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#53 0xb5889350 in ?? () from /usr/lib/libglib-2.0.so.0
#54 0xb588960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#55 0xb6c30d4b in QEventDispatcherGlib::processEvents (this=0x80db0d8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#56 0xb61ef19a in QGuiEventDispatcherGlib::processEvents (this=0x80db0d8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#57 0xb6c0411d in QEventLoop::processEvents (this=0xbff705f4, flags=...) at kernel/qeventloop.cpp:149
#58 0xb6c04319 in QEventLoop::exec (this=0xbff705f4, flags=...) at kernel/qeventloop.cpp:201
#59 0xb6c08c70 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#60 0xb613c164 in QApplication::exec () at kernel/qapplication.cpp:3581
#61 0xb1e61fed in kdemain (argc=2, argv=0x80b7188) at /usr/src/debug/kdesdk-4.4.4/kate/app/katemain.cpp:377
#62 0x0804e5b1 in _start ()

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

Possible duplicates by query: bug 241898, bug 220962, bug 217712.

Reported using DrKonqi
Comment 1 Bruno Friedmann 2010-09-06 09:29:14 UTC
Kate version is 3.4.4

Next start : I purge the session with the close all menu.
Everything goes normally.

I close kate, restart it and start to add, newly renamed or relocated files.
Comment 2 Marcos Dione 2010-09-16 11:37:56 UTC
Created attachment 51710 [details]
New crash information added by DrKonqi

There used to be a similar bug which is the one is marked as closed now [#230426]. I used to experience it, but then for some time id didn't occur anymore, so I think the bug was fixed and the new debian packages got the bugfix in.

But then it started to appear again. The new behaviour mostly fits the title of this bug: when I close a file that was remioved before the session was opened, it crashes. Now, it is not entirely consistent: sometimes it's triggeerd in the first removed file, somtimes in the second (so far it has never occured in the third, but I didn't try that much). I used to shake the old bug first selecting another file and then closing, but now it consistently crashes on removed files. All this lead me to think that this is a similar bug, but not the same nonetheless.
Comment 3 Marcos Dione 2010-09-16 11:41:18 UTC
Now I closed all the non-removed files first, then keep selecting a different removed file from the one automatically selected, and I managed to close them all (including the last one, which was automatically selected) without crashing. This one seems to be hard to tack.
Comment 4 Christoph Feck 2010-10-23 16:44:27 UTC

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