Summary: | Dolphin crashes after unplugging a USB stick [Solid::DevicePrivate::udi, Solid::Device::udi, KFilePlacesItem::device, KFilePlacesModel::deviceForIndex] | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Bruno Bigras <bigras.bruno> |
Component: | general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | anselmolsm, bigras.bruno, connelhooley, dpalacio, ervin, hephooey_dev, kdelibs-bugs-null, linuxhippy, m.wege, mad.f3ka, moabi2000, mpartap, one.timothy.jones, slashdevdsp, the.alpha.nerd, vivekumasuthan |
Priority: | NOR | ||
Version First Reported In: | 16.12.2 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Bruno Bigras
2010-03-02 05:23:24 UTC
Created attachment 41646 [details]
New crash information added by DrKonqi
- What I was doing when the application crashed:
It seems that the crash happens when I unplug the usb stick. Unmounting is okay.
It still happens everytime.
*** Bug 230984 has been marked as a duplicate of this bug. *** Created attachment 42394 [details]
New crash information added by DrKonqi
dolphin (1.4) on KDE Platform 4.4.69 (KDE 4.4.69 (KDE 4.5 >= 20100324)) using Qt 4.6.2
- What I was doing when the application crashed:
Unplugged USB flash driver without umounting
-- Backtrace (Reduced):
#7 QString (this=0x1585fe8) at /usr/include/qt4/QtCore/qstring.h:715
#8 Solid::DevicePrivate::udi (this=0x1585fe8) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41
#9 Solid::Device::udi (this=0x1585fe8) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fabb155295c in KFilePlacesItem::device (this=0x1585fb0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fabb15556fb in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
confirmed here with kde trunk. Unplugged an USB stick without unmounting it. [KCrash Handler] #6 QBasicAtomicInt::ref (this=0x7400740068e5e0) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121 #7 0x00007fa8082fb52d in Solid::DevicePrivate::udi (this=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41 #8 0x00007fa8082f9c97 in Solid::Device::udi (this=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99 #9 0x00007fa802fb2d28 in KFilePlacesItem::device (this=0xd2c0e0) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105 #10 0x00007fa802fb6763 in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238 #11 0x00007fa802fbf680 in KFilePlacesViewDelegate::sizeHint (this=<value optimized out>, option=..., index=...) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesview.cpp:131 #12 0x00007fa80e1af142 in QListViewPrivate::itemSize (this=0x92c8c0, option=..., index=...) at itemviews/qlistview.cpp:1780 #13 0x00007fa80e1b57fd in QCommonListViewBase::itemSize (this=0x936120, index=<value optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qlistview_p.h:473 #14 QListModeViewBase::indexToListViewItem (this=0x936120, index=<value optimized out>) at itemviews/qlistview.cpp:2207 #15 0x00007fa80e1af4d5 in QListViewPrivate::indexToListViewItem (this=0x92c8c0, index=...) at itemviews/qlistview.cpp:1725 #16 0x00007fa80e1afd45 in QListViewPrivate::rectForIndex (this=<value optimized out>, index=...) at ../../include/QtGui/private/../../../src/gui/itemviews/qlistview_p.h:345 #17 QListView::rectForIndex (this=<value optimized out>, index=...) at itemviews/qlistview.cpp:1226 #18 0x00007fa80e1afe0e in QListView::visualRect (this=0x7400740068e5e0, index=...) at itemviews/qlistview.cpp:561 #19 0x00007fa80e1ad6bf in QListView::visualRegionForSelection (this=0x925ef0, selection=<value optimized out>) at itemviews/qlistview.cpp:1416 #20 0x00007fa80e184496 in QAbstractItemView::selectionChanged (this=0x925ef0, selected=<value optimized out>, deselected=...) at itemviews/qabstractitemview.cpp:3312 Created attachment 43864 [details]
New crash information added by DrKonqi
konqueror (4.4.80 (KDE 4.4.80 (KDE 4.5 Beta1))) on KDE Platform 4.4.80 (KDE 4.4.80 (KDE 4.5 Beta1)) using Qt 4.7.0
Still reproducable with on 4.5 Beta 1 (4.4.80)... seems to be within the places panel as konqueror is taken down aswell if that is opened while removing an USB volume.
-- Backtrace (Reduced):
#7 QString (this=0x2055c08) at /usr/include/qt4/QtCore/qstring.h:728
#8 Solid::DevicePrivate::udi (this=0x2055c08) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/solid/solid/device_p.h:41
#9 Solid::Device::udi (this=0x2055c08) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fdbc2495545 in KFilePlacesItem::device (this=0x2055bd0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fdbc2497afb in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
Tried to reproduce it today without success (r1131691). Could someone try again with this revision? If you manage to reproduce it, we'll very likely need a more detailed description on how to reproduce it (in case some steps are missing or could be ambiguous). Still valid here, KDE svn compiled on Fri May 28 18:45:01 2010 To reproduce: - plug in an usb stick - mount it through the devices plasmoid applet - (Dolphin should open automatically now) - unplug the stick without un-mounting it - crash. Still can't reproduce... Someone else will have to pick this one I'm afraid. Created attachment 47539 [details]
New crash information added by DrKonqi
dolphin (1.4.9) on KDE Platform 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527)) using Qt 4.6.2
- What I was doing when the application crashed:
Here is more data, hopefully of some use:
- Dolphin crashes regardless of how the USB stick was mounted -- I tried via Notifier plasmoid and directly in Dolphin
- It crashes regardless of whether you dismount the stick or not before unplugging it
- If you open a folder that is *not* on the USB stick (eg, Home folder) and then pull the stick (with or without unmounting it), the Dolphin does *not* crash
Who's your daddy now? ;) Just kidding. :P Thanks guys, you are the bombs! I love KDE 4 :)
-TJ
-- Backtrace (Reduced):
#7 QString (this=0x2129568) at /usr/include/qt4/QtCore/qstring.h:715
#8 Solid::DevicePrivate::udi (this=0x2129568) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device_p.h:41
#9 Solid::Device::udi (this=0x2129568) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/solid/solid/device.cpp:99
#10 0x00007fd3824fc4bc in KFilePlacesItem::device (this=0x2129530) at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesitem.cpp:105
#11 0x00007fd3824ff25b in KFilePlacesModel::deviceForIndex (this=<value optimized out>, index=<value optimized out>)
at /var/tmp/paludis/kde-base-kdelibs-9999/work/kdelibs-9999/kfile/kfileplacesmodel.cpp:238
Now we're talking I can reliably reproduce it. *** Bug 240807 has been marked as a duplicate of this bug. *** *** Bug 240486 has been marked as a duplicate of this bug. *** *** Bug 240713 has been marked as a duplicate of this bug. *** Created attachment 47869 [details]
New crash information added by DrKonqi
dolphin (1.4.9) on KDE Platform 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) "release 3" using Qt 4.6.2
- What I was doing when the application crashed:
I browsed to my USB stick in dolphin. I then unplugged my stick (without unmonuting it) and dolphin crashed.
-- Backtrace (Reduced):
#7 ref (this=0x82f2014) at /usr/include/QtCore/qatomic_i386.h:120
#8 QString (this=0x82f2014) at /usr/include/QtCore/qstring.h:715
#9 udi (this=0x82f2014) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device_p.h:41
#10 Solid::Device::udi (this=0x82f2014) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device.cpp:99
#11 0xb2c65589 in KFilePlacesItem::device (this=0x82f1ff8) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:105
4.4.85/QT-4.7: #7 ref (this=0xa0f3084) at /usr/include/QtCore/qatomic_i386.h:120 #8 QString (this=0xa0f3084) at /usr/include/QtCore/qstring.h:715 #9 udi (this=0xa0f3084) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device_p.h:41 #10 Solid::Device::udi (this=0xa0f3084) at /usr/src/debug/kdelibs-4.4.85/solid/solid/device.cpp:99 #11 0x03afb60a in KFilePlacesItem::device (this=0xa0f3068) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:105 #12 0x03afdb44 in KFilePlacesModel::deviceForIndex (this=0x9d406b8, index=...) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesmodel.cpp:238 #13 0x03b0498f in KFilePlacesViewDelegate::sizeHint (this=0xa013990, option=..., index=...) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesview.cpp:131 Should be fixed in revision 1138395. I forgot the "BUG:" keyword in the commit message... Created attachment 48052 [details]
New crash information added by DrKonqi
dolphin (1.4.9) on KDE Platform 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2)) using Qt 4.7.0
- What I was doing when the application crashed:
I closed dolphin, after removing an external medium (which I had unmounted)
-- Backtrace (Reduced):
#8 QString (this=0x9083374) at /usr/include/qt4/QtCore/qstring.h:728
#9 Solid::DevicePrivate::udi (this=0x9083374) at ../../../solid/solid/device_p.h:41
#10 Solid::Device::udi (this=0x9083374) at ../../../solid/solid/device.cpp:99
#11 0xb75d3009 in KFilePlacesItem::device (this=0x9083358) at ../../kfile/kfileplacesitem.cpp:105
#12 0xb75d58d4 in KFilePlacesModel::deviceForIndex (this=0x8a3d9f8, index=...) at ../../kfile/kfileplacesmodel.cpp:238
*** Bug 241382 has been marked as a duplicate of this bug. *** *** Bug 235239 has been marked as a duplicate of this bug. *** *** Bug 230784 has been marked as a duplicate of this bug. *** *** Bug 243737 has been marked as a duplicate of this bug. *** (In reply to comment #16) > Should be fixed in revision 1138395. I forgot the "BUG:" keyword in the commit > message... quoting the commit msg (http://websvn.kde.org/?view=revision&revision=1138395) : > Make sure we call deref() as many time as ref() was called... > Also only delete the DevicePrivate instances which have no > QExplicitSharedPointer pointing to them anymore when > DeviceManagerPrivate goes away, otherwise we'll have troubles if some > app actually keeps a Solid::Device instance longer. > > device.cpp | 4 ++-- > devicemanager.cpp | 4 +++- > 2 files changed, 5 insertions(+), 3 deletions(-) Hi Kevin, big thx for squashishing this one! As it was a (un)pretty nasty bug and did survive for a relatively long time, this one might be especially interesting for experienced and unexperienced KDE developers alike. It would be great if you could elaborate a bit on why this one was so hard to track down, and how you exactly did it - merci ;) *** Bug 275554 has been marked as a duplicate of this bug. *** |