Bug 175396 - dolpin crashed when doing cut/paste
Summary: dolpin crashed when doing cut/paste
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 16.12.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Peter Penz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-17 13:52 UTC by Ritesh Raj Sarraf
Modified: 2009-03-21 15:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Raj Sarraf 2008-11-17 13:52:50 UTC
Version:           1.1 (using 4.1.3 (KDE 4.1.3), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-custom

This happened with a large number of files and folders. And it isn't related to Key combinations. I do the same select and cut from the menus and dolphin still crashes.

I do a select all and then as soon as I do "Cut", dolphin crashes.



Application: Dolphin (dolphin), signal SIGABRT
[Thread debugging using libthread_db enabled]
[New Thread 0xb5fcf8d0 (LWP 17378)]
[KCrash handler]
#6  0xb80a9424 in __kernel_vsyscall ()
#7  0xb6843640 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb6845018 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb6aaf6cd in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbf8c1380 "ASSERT: \"!icon.isNull()\" in file /tmp/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp, line 660") at global/qglobal.cpp:2102
#10 0xb6aaf796 in qFatal (msg=0xb6bf7438 "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2303
#11 0xb6aaf825 in qt_assert (assertion=0xb7f525f3 "!icon.isNull()", 
    file=0xb7f52308 "/tmp/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp", 
    line=660) at global/qglobal.cpp:1872
#12 0xb7df8640 in KDirModel::setData (this=0x92f9310, index=@0xbf8c34dc, 
    value=@0xbf8c350c, role=1)
    at /tmp/buildd/kde4libs-4.1.3/kio/kio/kdirmodel.cpp:660
#13 0xb80695d3 in IconManager::applyCutItemEffect (this=0x92f2910)
    at /tmp/buildd/kdebase-4.1.3/apps/dolphin/src/iconmanager.cpp:433
#14 0xb80699a1 in IconManager::updateCutItems (this=0x92f2910)
    at /tmp/buildd/kdebase-4.1.3/apps/dolphin/src/iconmanager.cpp:300
#15 0xb8069c3b in IconManager::qt_metacall (this=0x92f2910, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf8c3678)
    at /tmp/buildd/kdebase-4.1.3/obj-i486-linux-gnu/apps/dolphin/src/iconmanager.moc:78
#16 0xb6bbbbd0 in QMetaObject::activate (sender=0x92babf0, 
    from_signal_index=7, to_signal_index=7, argv=0x0)
    at kernel/qobject.cpp:3031
#17 0xb6bbc952 in QMetaObject::activate (sender=0x92babf0, m=0xb76c80e8, 
    local_signal_index=3, argv=0x0) at kernel/qobject.cpp:3101
#18 0xb74f8397 in QClipboard::dataChanged (this=0x92babf0)
    at .moc/release-shared/moc_qclipboard.cpp:106
#19 0xb6f22e7d in QClipboard::emitChanged (this=0x92babf0, 
    mode=QClipboard::Clipboard) at kernel/qclipboard.cpp:575
#20 0xb6f8cbe2 in QClipboard::setMimeData (this=0x92babf0, src=0x974c810, 
    mode=QClipboard::Clipboard) at kernel/qclipboard_x11.cpp:1261
#21 0xb8061f25 in DolphinView::cutSelectedItems (this=0x932ec58)
    at /tmp/buildd/kdebase-4.1.3/apps/dolphin/src/dolphinview.cpp:607
#22 0x08071cea in DolphinMainWindow::qt_metacall (this=0x92e22d8, 
    _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbf8c38ac)
    at /tmp/buildd/kdebase-4.1.3/apps/dolphin/src/dolphinmainwindow.cpp:449
#23 0xb6bbbbd0 in QMetaObject::activate (sender=0x932d600, 
    from_signal_index=5, to_signal_index=6, argv=0xbf8c38ac)
    at kernel/qobject.cpp:3031
#24 0xb6bbbfd0 in QMetaObject::activate (sender=0x932d600, m=0xb76b9378, 
    from_local_signal_index=1, to_local_signal_index=2, argv=0xbf8c38ac)
    at kernel/qobject.cpp:3121
#25 0xb6f0c4a1 in QAction::triggered (this=0x932d600, _t1=false)
    at .moc/release-shared/moc_qaction.cpp:216
#26 0xb6f0ce0f in QAction::activate (this=0x932d600, event=QAction::Trigger)
    at kernel/qaction.cpp:1125
#27 0xb6f1036b in QAction::event (this=0x932d600, e=0xbf8c3cb4)
    at kernel/qaction.cpp:1044
#28 0xb6f6f839 in QWidgetAction::event (this=0x932d600, event=0xbf8c3cb4)
    at kernel/qwidgetaction.cpp:230
#29 0xb6f1279c in QApplicationPrivate::notify_helper (this=0x9280778, 
    receiver=0x932d600, e=0xbf8c3cb4) at kernel/qapplication.cpp:3803
#30 0xb6f1a61e in QApplication::notify (this=0xbf8c4914, receiver=0x932d600, 
    e=0xbf8c3cb4) at kernel/qapplication.cpp:3393
#31 0xb7afc07d in KApplication::notify (this=0xbf8c4914, receiver=0x932d600, 
    event=0xbf8c3cb4)
    at /tmp/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#32 0xb6ba70d1 in QCoreApplication::notifyInternal (this=0xbf8c4914, 
    receiver=0x932d600, event=0xbf8c3cb4) at kernel/qcoreapplication.cpp:587
#33 0xb6f4b728 in QShortcutMap::dispatchEvent (this=0x9280814, e=0xbf8c404c)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#34 0xb6f4d0ff in QShortcutMap::tryShortcutEvent (this=0x9280814, 
    w=0x933f7e8, e=0xbf8c404c) at kernel/qshortcutmap.cpp:362
#35 0xb6f1b8e0 in QApplication::notify (this=0xbf8c4914, receiver=0x933f7e8, 
    e=0xbf8c404c) at kernel/qapplication.cpp:3430
#36 0xb7afc07d in KApplication::notify (this=0xbf8c4914, receiver=0x933f7e8, 
    event=0xbf8c404c)
    at /tmp/buildd/kde4libs-4.1.3/kdeui/kernel/kapplication.cpp:311
#37 0xb6ba70d1 in QCoreApplication::notifyInternal (this=0xbf8c4914, 
    receiver=0x933f7e8, event=0xbf8c404c) at kernel/qcoreapplication.cpp:587
#38 0xb6f731ee in qt_sendSpontaneousEvent (receiver=0x933f7e8, event=0x6)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#39 0xb6fa8ba0 in QKeyMapper::sendKeyEvent (keyWidget=0x933f7e8, grab=false, 
    type=QEvent::KeyPress, code=88, modifiers={i = -1081326836}, 
    text=@0xbf8c4338, autorepeat=<value optimized out>, 
    count=<value optimized out>, nativeScanCode=53, nativeVirtualKey=120, 
    nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1652
#40 0xb6faac7c in QKeyMapperPrivate::translateKeyEvent (this=0x92a1e50, 
    keyWidget=0x933f7e8, event=0xbf8c4788, grab=false)
    at kernel/qkeymapper_x11.cpp:1623
#41 0xb6f82462 in QApplication::x11ProcessEvent (this=0xbf8c4914, 
    event=0xbf8c4788) at kernel/qapplication_x11.cpp:3053
#42 0xb6fad1a8 in QEventDispatcherX11::processEvents (this=0x9280830, flags=
      {i = -1081325528}) at kernel/qeventdispatcher_x11.cpp:128
#43 0xb6ba579a in QEventLoop::processEvents (this=0xbf8c48a0, flags=
      {i = -1081325464}) at kernel/qeventloop.cpp:143
#44 0xb6ba595a in QEventLoop::exec (this=0xbf8c48a0, flags={i = -1081325400})
    at kernel/qeventloop.cpp:194
#45 0xb6ba8015 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#46 0xb6f12617 in QApplication::exec () at kernel/qapplication.cpp:3331
#47 0x0808520f in main (argc=6, argv=0xbf8c4ac4)
    at /tmp/buildd/kdebase-4.1.3/apps/dolphin/src/main.cpp:94
#0  0xb80a9424 in __kernel_vsyscall ()
Comment 1 Ritesh Raj Sarraf 2008-11-17 14:08:12 UTC
Konqueror is also plagued with this bug.
Comment 2 Frank Reininghaus 2008-11-17 21:17:16 UTC
Thanks for the bug report. I can reproduce this in 4.1.3 (Kubuntu) with the test images attached to bug 170547 which looks related, but is fixed in 4.1.3. After messing around a bit, I found a way to crash Dolphin reproducibly:

1. Open Dolphin (in my case, Details view, Previews enabled).
2. Go to a directory that contains one of the test images (and nothing else).
3. Select the image with Ctrl-A.
4. Change to Icons View.
5. Press Ctrl-X.
6. Change back to Details View.
7. Press Ctrl-X again -> Crash.

I cannot crash trunk rev. 885676 using these steps. I don't know though if this is due to the fact that the selection gets lost on view mode change in trunk or if this is really fixed (also bug 170547 seemed to be fixed in trunk a while before it was actually fixed in the 4.1 branch).
Comment 3 Dario Andres 2008-12-19 03:05:33 UTC
Here using:

Qt: 4.4.3
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 898705 / kdebase svn rev. 898705
on ArchLinux x86_64 - 2.6.27.8


While trying to reproduce the bug using the steps in comment 2, Dolphin crashed in step 6. Also the selection of that file was lost in comment 4 (changing the view mode)

Here is the backtrace (different from the one in comment 0):

Application: Dolphin (dolphin), signal SIGABRT
0x00007f8362f0d001 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7f8367384750 (LWP 11944)):
[KCrash Handler]
#5  0x00007f8362ea00c5 in raise () from /lib/libc.so.6
#6  0x00007f8362ea15e3 in abort () from /lib/libc.so.6
#7  0x00007f8363bd9a25 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x00007f8363bd9b47 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x00007f8366efd8f0 in KDirModel::setData (this=0x18a83e0, index=@0x7fff6f4c4870, value=@0x7fff6f4c4890, role=<value optimized out>)
    at /home/kde-devel/kde/src/KDE/kdelibs/kio/kio/kdirmodel.cpp:712
#10 0x00007f8366ba942e in KFilePreviewGenerator::Private::dispatchPreviewQueue (this=0x1eee910) at /home/kde-devel/kde/src/KDE/kdelibs/kfile/kfilepreviewgenerator.cpp:493
#11 0x00007f8366babfc9 in KFilePreviewGenerator::qt_metacall (this=0x1acf4f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x1f4bff0)
    at /home/kde-devel/kde/build/KDE/kdelibs/kfile/kfilepreviewgenerator.moc:80
#12 0x00007f8363ccec6e in QObject::event (this=0x1acf4f0, e=0x1e95d20) at kernel/qobject.cpp:1152
#13 0x00007f83641260ad in QApplicationPrivate::notify_helper (this=0x141b960, receiver=0x1acf4f0, e=0x1e95d20) at kernel/qapplication.cpp:3803
#14 0x00007f836412d40e in QApplication::notify (this=0x7fff6f4c5290, receiver=0x1acf4f0, e=0x1e95d20) at kernel/qapplication.cpp:3768
#15 0x00007f836556822b in KApplication::notify (this=0x7fff6f4c5290, receiver=0x1acf4f0, event=0x1e95d20) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#16 0x00007f8363cbfd90 in QCoreApplication::notifyInternal (this=0x7fff6f4c5290, receiver=0x1acf4f0, event=0x1e95d20) at kernel/qcoreapplication.cpp:583
#17 0x00007f8363cc3643 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x13d5eb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#18 0x00007f8363ce6fa3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#19 0x00007f835febeaa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0x00007f835fec221d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#21 0x00007f835fec23db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0x00007f8363ce6cdf in QEventDispatcherGlib::processEvents (this=0x13e49b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#23 0x00007f83641adf7f in QGuiEventDispatcherGlib::processEvents (this=0x2ea8, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#24 0x00007f8363cbe9c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1867272640}) at kernel/qeventloop.cpp:143
#25 0x00007f8363cbeb55 in QEventLoop::exec (this=0x7fff6f4c5200, flags={i = 1867272720}) at kernel/qeventloop.cpp:190
#26 0x00007f8363cc38f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#27 0x000000000044376d in main (argc=6, argv=0x7fff6f4c5778) at /home/kde-devel/kde/src/KDE/kdebase/apps/dolphin/src/main.cpp:94

Comment 4 Dario Andres 2009-02-21 15:23:32 UTC
I can't reproduce here now using a recent 4.3trunk build. Can anyone else reproduce ? Thanks
Comment 5 Frank Reininghaus 2009-03-21 14:56:19 UTC
(In reply to comment #4)
> I can't reproduce here now using a recent 4.3trunk build. Can anyone else
> reproduce ? Thanks

Neither 4.2.1 nor trunk rev. 942216 crash for me. Ritesh, please reopen this report if you see this crash again in KDE 4.2.1 or later. Thanks!
Comment 6 Ritesh Raj Sarraf 2009-03-21 15:04:41 UTC
Just did a quick verification on both Konq and Dolphin (4.2.1) and I can't see the crash anymore.