Bug 407914 - Crash when tagging, finding duplicates, moving between albums...
Summary: Crash when tagging, finding duplicates, moving between albums...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 6.2.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-24 17:12 UTC by MarcP
Modified: 2020-08-10 10:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarcP 2019-05-24 17:12:16 UTC
SUMMARY

My digikam crashed when I was using it in debug mode, so I thought of reporting the output in case it is of interest.

This crash is quite nonspecific, because I don't recall doing anything special at the moment. I was using the "Find similar" on pictures, deleting duplicates, and switching back to the original album where the picture was stored, that's all.

Here are the last lines before the crash:



Digikam::DImg::load: "/media/sshfs/nas/media/usb2/Fotos/FotosUser1/Canada Others/2008-10 Visita   Toronto/imgp3589.jpg"  : JPEG file identified
Digikam::DImg::load: "/media/sshfs/nas/media/usb2/Fotos/FotosUser1/Canada Others/2008-10 Visita   Toronto/imgp3589.jpg"  : JPEG file identified
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
[New Thread 0x7fffad1eb700 (LWP 29333)]
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff93fff700 (LWP 29335)]
[New Thread 0x7fff937fe700 (LWP 29334)]
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff91ffb700 (LWP 29336)]
Digikam::ActionThreadBase::slotJobFinished: One job is done
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fffad1eb700 (LWP 29333) exited]
[Thread 0x7fff937fe700 (LWP 29334) exited]
Digikam::ActionThreadBase::slotJobFinished: One job is done
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff93fff700 (LWP 29335) exited]
[Thread 0x7fff91ffb700 (LWP 29336) exited]
Digikam::DeleteDialog::slotUser1Clicked: setShowTrashDeleteDialog  true
Digikam::DIO::processJob: Number of files to be deleted: 1
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
[New Thread 0x7fff91ffb700 (LWP 29337)]
Digikam::AlbumManager::slotImagesDeleted: Got image deletion notification from ItemViewUtilities for  1  images.
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff93fff700 (LWP 29338)]
Digikam::DeleteJob::run: Deleting:    "/media/sshfs/nas/media/usb2/Fotos/FotosUser1/Canada Others/Canadà 08-09 - the canadian life (2)/9316_1253175769222_1224387293_792729_4825454_n.jpg"
Digikam::DeleteJob::run: File exists? true
Digikam::DeleteJob::run: Is to trash? true
Digikam::DTrash::deleteImage: DTrash: Image album root path: "/media/sshfs/nas/media/usb2/Fotos/FotosUser1"
Digikam::DTrash::prepareCollectionTrash: Trash folder for collection:  "/media/sshfs/nas/media/usb2/Fotos/FotosUser1/.dtrash"
Digikam::IOJobsThread::slotOneJobFinished: Thread Finished
Digikam::ActionThreadBase::slotJobFinished: One job is done
[Thread 0x7fff91ffb700 (LWP 29337) exited]
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff93fff700 (LWP 29338) exited]
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
[New Thread 0x7fff93fff700 (LWP 29339)]
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff91ffb700 (LWP 29340)]
Digikam::ScanController::slotRelaxedScanning: Starting scan!
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff93fff700 (LWP 29339) exited]
Digikam::ActionThreadBase::slotJobFinished: One job is done
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff91ffb700 (LWP 29340) exited]
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
[New Thread 0x7fff91ffb700 (LWP 29341)]
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff93fff700 (LWP 29342)]
Digikam::ActionThreadBase::slotJobFinished: One job is done
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff91ffb700 (LWP 29341) exited]
[Thread 0x7fff93fff700 (LWP 29342) exited]
Digikam::ItemMarkerTiler::slotSourceModelReset: ----
Digikam::ItemMarkerTiler::slotSourceModelReset: ----
Digikam::ActionThreadBase::setMaximumNumberOfThreads: Using  8  CPU core to run threads
[New Thread 0x7fff93fff700 (LWP 29343)]
Digikam::ActionThreadBase::run: Action Thread run  1  new jobs
[New Thread 0x7fff91ffb700 (LWP 29344)]
Digikam::ActionThreadBase::cancel: Cancel Main Thread
Digikam::ActionThreadBase::slotJobFinished: One job is done
[Thread 0x7fff93fff700 (LWP 29343) exited]
Digikam::ActionThreadBase::cancel: Cancel Main Thread
[Thread 0x7fff91ffb700 (LWP 29344) exited]
Digikam::ItemMarkerTiler::slotSourceModelReset: ----

Thread 1 "digikam" received signal SIGSEGV, Segmentation fault.
0x000000371b85a678 in QSortFilterProxyModel::parent(QModelIndex const&) const
    () from /tmp/.mount_digikakS20M3/usr/lib/libQt5Core.so.5
(gdb) 





(if you want the full logfile, I can provide it to you).



SOFTWARE/OS VERSIONS

Ubuntu 18.04 with Gnome.
digikam-6.2.0-git-20190522T104638-qtwebkit-x86-64.appimage
Comment 1 Maik Qualmann 2019-05-24 18:49:44 UTC
The duplicate also crashes in QSortFilterProxyModel::parent(). It should be the same crash.

Maik

*** This bug has been marked as a duplicate of bug 392607 ***
Comment 2 Maik Qualmann 2019-05-24 19:15:02 UTC
Full logfile please.

Maik
Comment 3 Maik Qualmann 2019-05-24 21:00:32 UTC
Git commit 941f7cfae0416f9f123ce47a995041b566ff85ec by Maik Qualmann.
Committed on 24/05/2019 at 20:57.
Pushed by mqualmann into branch 'master'.

add checks for valid QModelIndex
Related: bug 392607

M  +15   -0    core/libs/database/models/itemfiltermodel.cpp
M  +10   -0    core/libs/models/albumfiltermodel.cpp
M  +18   -3    core/showfoto/thumbbar/showfotofiltermodel.cpp
M  +1    -1    core/showfoto/thumbbar/showfotofiltermodel.h
M  +15   -0    core/utilities/import/models/importfiltermodel.cpp

https://invent.kde.org/kde/digikam/commit/941f7cfae0416f9f123ce47a995041b566ff85ec
Comment 4 caulier.gilles 2019-07-24 05:47:53 UTC
Hi,

This problem still reproducible using last Linux AppImage bundle 6.2.0 pre release available here : https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 5 caulier.gilles 2020-01-19 09:35:10 UTC
Not reproducible with AppImage bundle pre-release 7.0.0-beta2 based on Qt 5.14

Please repon this file if problem remain.

Gilles Caulier