Summary: | [Fixed in KDESC 4.3.5 and 4.4.x] Dolphin crashes when unmounting/disconnecting a partition/drive [KUrl, KFileItem::url, ..., KFilePreviewGenerator::Private::orderItems] | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Leo <sir_kalot> |
Component: | general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | al, alberich, andresbajotierra, benklop, chano.binau, dr1ver38, ea.grassete, frank78ac, gwillems1, ilpo, info, meding, piotr.luczko, rleigh, Skelaton4, sobik2, steffenkoch81, svenkettner, sylvain.garsault, walbertr |
Priority: | NOR | ||
Version: | 16.12.2 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Suggested patch |
Description
Leo
2009-10-23 11:58:52 UTC
Mh, it looks like a new case of bug 200125 on 4.3.2 :-\ Thanks (In reply to comment #1) > Mh, it looks like a new case of bug 200125 on 4.3.2 :-\ Mh, yes, it does :-( I suppose you copied or moved the archive to the current folder just before you tried to open it? Can you reproduce this crash? Thanks! *** Bug 211988 has been marked as a duplicate of this bug. *** *** Bug 213085 has been marked as a duplicate of this bug. *** From bug 213231: What I was doing when the application crashed: - 2 dolphin windows open. - copied large file (600mb) to usb-stick. - immediately after file-copy complete i 'safely removed'/unmounted the usb-stick via the default plasma-widget in the taskbar. => dolphin crashes. *** Bug 213231 has been marked as a duplicate of this bug. *** *** Bug 213166 has been marked as a duplicate of this bug. *** *** Bug 214285 has been marked as a duplicate of this bug. *** *** Bug 214941 has been marked as a duplicate of this bug. *** *** Bug 214946 has been marked as a duplicate of this bug. *** @Peter: most crashes here occurred after unmounting a USB drive. It seems that KFilePreviewGenerator::Private::killPreviewJobs() / KFilePreviewGenerator::cancelPreviews() is not called in this case? I haven't checked yet if that can be done easily. One could also fix this by checking if each file item is valid in KFilePreviewGenerator::Private::orderItems(KFileItemList& items) before calling KDirModel::indexForItem(...) and removing it from the list if that is not the case - maybe that should be done for safety in any case because you never know if a file gets deleted by an external application... *** Bug 215188 has been marked as a duplicate of this bug. *** *** Bug 215550 has been marked as a duplicate of this bug. *** Created attachment 38591 [details]
Suggested patch
Maybe one could fix it like this - if model indexes are removed from the dir model, also remove their URLs (and the URLs of all children) from m_changedItems. Unfortunately, I can't really test it because some quick attempts to reproduce the crash failed.
@Peter: Does this make sense to you?
@Frank: Thanks for the patch. Yes: this makes sense. BTW: I additionally added the isValid() check in orderItems() a few weeks ago on trunk. Please commit the patch, so that we have the chance to get feedback after beta2 :-) *** Bug 216444 has been marked as a duplicate of this bug. *** SVN commit 1055748 by freininghaus: If items are removed from the dir model, remove them also from KFilePreviewGenerator's list of recently changed items. This should fix crashes that occur when a file item becomes invalid just after it is changed, e.g., if a large file is moved to a volume which is then unmounted immediately. Fix will be in KDE 4.4 Beta 1. BUG: 211525 M +28 -1 kfilepreviewgenerator.cpp M +1 -0 kfilepreviewgenerator.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1055748 *** Bug 216524 has been marked as a duplicate of this bug. *** *** Bug 217127 has been marked as a duplicate of this bug. *** *** Bug 217269 has been marked as a duplicate of this bug. *** *** Bug 217857 has been marked as a duplicate of this bug. *** *** Bug 218345 has been marked as a duplicate of this bug. *** *** Bug 218969 has been marked as a duplicate of this bug. *** *** Bug 216943 has been marked as a duplicate of this bug. *** *** Bug 219608 has been marked as a duplicate of this bug. *** *** Bug 217712 has been marked as a duplicate of this bug. *** *** Bug 220249 has been marked as a duplicate of this bug. *** *** Bug 219904 has been marked as a duplicate of this bug. *** *** Bug 220835 has been marked as a duplicate of this bug. *** *** Bug 222307 has been marked as a duplicate of this bug. *** *** Bug 222577 has been marked as a duplicate of this bug. *** SVN commit 1075313 by freininghaus: Backport of commit 1055748 to the 4.3 branch: If items are removed from the dir model, remove them also from KFilePreviewGenerator's list of recently changed items. This should fix crashes that occur when a file item becomes invalid just after it is changed, e.g., if a large file is moved to a volume which is then unmounted immediately. Fix will be in KDE 4.3.5. CCBUG: 211525 M +27 -0 kfilepreviewgenerator.cpp M +1 -0 kfilepreviewgenerator.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1075313 Fixing title, sorry about the noise *** Bug 223239 has been marked as a duplicate of this bug. *** *** Bug 223549 has been marked as a duplicate of this bug. *** *** Bug 223551 has been marked as a duplicate of this bug. *** *** Bug 224061 has been marked as a duplicate of this bug. *** *** Bug 224669 has been marked as a duplicate of this bug. *** *** Bug 225102 has been marked as a duplicate of this bug. *** *** Bug 225335 has been marked as a duplicate of this bug. *** *** Bug 227860 has been marked as a duplicate of this bug. *** *** Bug 220169 has been marked as a duplicate of this bug. *** *** Bug 228484 has been marked as a duplicate of this bug. *** *** Bug 229773 has been marked as a duplicate of this bug. *** *** Bug 230980 has been marked as a duplicate of this bug. *** *** Bug 231228 has been marked as a duplicate of this bug. *** *** Bug 231349 has been marked as a duplicate of this bug. *** *** Bug 232074 has been marked as a duplicate of this bug. *** *** Bug 234472 has been marked as a duplicate of this bug. *** *** Bug 234493 has been marked as a duplicate of this bug. *** *** Bug 235482 has been marked as a duplicate of this bug. *** |