Bug 346698 - Delete Duplicate on NAS - Crash
Summary: Delete Duplicate on NAS - Crash
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 4.9.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-04-26 10:06 UTC by Tobias
Modified: 2018-03-05 12:25 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias 2015-04-26 10:06:57 UTC
Application: digikam (4.9.0)
KDE Platform Version: 4.14.2 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 3.16.0-4-amd64 x86_64
Distribution: Debian GNU/Linux 8.0 (jessie)

-- Information about the crash:
I delete an duplicate on a mounted network (NAS) share. 4 deletes successful then crash. Other Times it crash directly

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3c19d93ac0 (LWP 8011))]

Thread 6 (Thread 0x7f3be9201700 (LWP 8013)):
#0  0x00007f3c0de67be0 in __close_nocancel () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3c0de02bf0 in _IO_new_file_close_it (fp=fp@entry=0x7f3be443f760) at fileops.c:171
#2  0x00007f3c0ddf77c0 in _IO_new_fclose (fp=0x7f3be443f760) at iofclose.c:59
#3  0x00007f3c0c2bfecb in Exiv2::FileIo::close() () from /usr/lib/x86_64-linux-gnu/libexiv2.so.13
#4  0x00007f3c0c306c9a in Exiv2::Image::good() const () from /usr/lib/x86_64-linux-gnu/libexiv2.so.13
#5  0x00007f3c0c312604 in Exiv2::newJpegInstance(std::auto_ptr<Exiv2::BasicIo>, bool) () from /usr/lib/x86_64-linux-gnu/libexiv2.so.13
#6  0x00007f3c0c307bda in Exiv2::ImageFactory::open(std::auto_ptr<Exiv2::BasicIo>) () from /usr/lib/x86_64-linux-gnu/libexiv2.so.13
#7  0x00007f3c0c307e2e in Exiv2::ImageFactory::open(std::string const&) () from /usr/lib/x86_64-linux-gnu/libexiv2.so.13
#8  0x00007f3c17cf2bd2 in KExiv2Iface::KExiv2::load (this=0x7f3be4225d20, filePath=...) at /home/tobias/dk/extra/libkexiv2/libkexiv2/kexiv2.cpp:308
#9  0x00007f3c1730a785 in Digikam::DMetadata::load (this=0x7f3be4225d20, filePath=...) at /home/tobias/dk/core/libs/dmetadata/dmetadata.cpp:110
#10 0x00007f3c16ca644e in Digikam::ImageScanner::loadFromDisk (this=0x7f3be91ffd00) at /home/tobias/dk/core/libs/database/imagescanner.cpp:1525
#11 0x00007f3c16ca01d3 in Digikam::ImageScanner::newFile (this=0x7f3be91ffd00, albumId=0) at /home/tobias/dk/core/libs/database/imagescanner.cpp:285
#12 0x00007f3c16c41826 in Digikam::CollectionScanner::scanNewFile (this=0x7f3be9200a20, info=..., albumId=0) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:1247
#13 0x00007f3c16c40a87 in Digikam::CollectionScanner::scanAlbum (this=0x7f3be9200a20, location=..., album=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:1089
#14 0x00007f3c16c40cb5 in Digikam::CollectionScanner::scanAlbum (this=0x7f3be9200a20, location=..., album=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:1112
#15 0x00007f3c16c40cb5 in Digikam::CollectionScanner::scanAlbum (this=0x7f3be9200a20, location=..., album=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:1112
#16 0x00007f3c16c40cb5 in Digikam::CollectionScanner::scanAlbum (this=0x7f3be9200a20, location=..., album=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:1112
#17 0x00007f3c16c3f33f in Digikam::CollectionScanner::scanAlbumRoot (this=0x7f3be9200a20, location=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:828
#18 0x00007f3c16c3e8a8 in Digikam::CollectionScanner::partialScan (this=0x7f3be9200a20, albumRoot=..., album=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:687
#19 0x00007f3c16c3e46c in Digikam::CollectionScanner::partialScan (this=0x7f3be9200a20, filePath=...) at /home/tobias/dk/core/libs/database/collectionscanner.cpp:617
#20 0x0000000000604ca6 in Digikam::ScanController::run (this=0x2008440) at /home/tobias/dk/core/app/database/scancontroller.cpp:798
#21 0x00007f3c0e95170f in QThreadPrivate::start (arg=0x2008440) at thread/qthread_unix.cpp:349
#22 0x00007f3c0db790a4 in start_thread (arg=0x7f3be9201700) at pthread_create.c:309
#23 0x00007f3c0de7404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f3be8a00700 (LWP 8014)):
#0  0x00007f3c0de6b50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3c064b1ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c064b1ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c0ea8ad37 in QEventDispatcherGlib::processEvents (this=0x7f3bdc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f3c0ea5a271 in QEventLoop::processEvents (this=this@entry=0x7f3be89ffac0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3c0ea5a5d5 in QEventLoop::exec (this=this@entry=0x7f3be89ffac0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3c0e94ee99 in QThread::exec (this=this@entry=0x2006070) at thread/qthread.cpp:538
#7  0x00007f3c0ea3aac3 in QInotifyFileSystemWatcherEngine::run (this=0x2006070) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f3c0e95170f in QThreadPrivate::start (arg=0x2006070) at thread/qthread_unix.cpp:349
#9  0x00007f3c0db790a4 in start_thread (arg=0x7f3be8a00700) at pthread_create.c:309
#10 0x00007f3c0de7404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f3be3fff700 (LWP 8016)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f3c0e951c66 in wait (time=18446744073709551615, this=0x21c1a60) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2158f98, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3c173782e7 in Digikam::ParkingThread::run (this=0x2158f80) at /home/tobias/dk/core/libs/threads/threadmanager.cpp:119
#4  0x00007f3c0e95170f in QThreadPrivate::start (arg=0x2158f80) at thread/qthread_unix.cpp:349
#5  0x00007f3c0db790a4 in start_thread (arg=0x7f3be3fff700) at pthread_create.c:309
#6  0x00007f3c0de7404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f3bd393e700 (LWP 8018)):
#0  0x00007f3c0de6b50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3c0d952cc1 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f3c0d9442a1 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f3c0d94493e in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f3c0d9449f0 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f3c0d952c56 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f3bff4b7a98 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
#7  0x00007f3c0db790a4 in start_thread (arg=0x7f3bd393e700) at pthread_create.c:309
#8  0x00007f3c0de7404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f3bb6ffd700 (LWP 8027)):
#0  0x00007f3c0de6b50d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3c064b1ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c064b1ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c0ea8ad37 in QEventDispatcherGlib::processEvents (this=0x7f3ba40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f3c0ea5a271 in QEventLoop::processEvents (this=this@entry=0x7f3bb6ffcab0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3c0ea5a5d5 in QEventLoop::exec (this=0x7f3bb6ffcab0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3c173778d8 in Digikam::WorkerObjectRunnable::run (this=0xe878020) at /home/tobias/dk/core/libs/threads/threadmanager.cpp:196
#7  0x00007f3c0e944b80 in QThreadPoolThread::run (this=0x3b20140) at concurrent/qthreadpool.cpp:108
#8  0x00007f3c0e95170f in QThreadPrivate::start (arg=0x3b20140) at thread/qthread_unix.cpp:349
#9  0x00007f3c0db790a4 in start_thread (arg=0x7f3bb6ffd700) at pthread_create.c:309
#10 0x00007f3c0de7404d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f3c19d93ac0 (LWP 8011)):
[KCrash Handler]
#6  0x00000000005b66e6 in Digikam::Album::next (this=0x41) at /home/tobias/dk/core/app/album/album.cpp:96
#7  0x000000000058d1de in Digikam::AbstractAlbumModel::Private::findNthChild (this=0x3083850, parent=0x27bf340, n=1) at /home/tobias/dk/core/libs/models/abstractalbummodelpriv.h:70
#8  0x000000000058a161 in Digikam::AbstractAlbumModel::index (this=0x3082c10, row=1, column=0, parent=...) at /home/tobias/dk/core/libs/models/abstractalbummodel.cpp:213
#9  0x00000000005eff95 in Digikam::AbstractCheckableAlbumTreeView::rowsInserted (this=0x3079660, parent=..., start=1, end=1) at /home/tobias/dk/core/app/album/albumtreeview.cpp:1396
#10 0x00007f3c0ea7071c in QMetaObject::activate (sender=sender@entry=0x3083c70, m=m@entry=0x7f3c0edc0860 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7ffec3cecbd0) at kernel/qobject.cpp:3567
#11 0x00007f3c0eabcc44 in QAbstractItemModel::rowsInserted (this=this@entry=0x3083c70, _t1=..., _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:196
#12 0x00007f3c0ea54aa2 in QAbstractItemModel::endInsertRows (this=0x3083c70) at kernel/qabstractitemmodel.cpp:2433
#13 0x00007f3c0fcb6275 in QSortFilterProxyModelPrivate::insert_source_items (this=this@entry=0x3083e40, source_to_proxy=..., proxy_to_source=..., source_items=..., source_parent=..., orient=orient@entry=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:695
#14 0x00007f3c0fcb663e in QSortFilterProxyModelPrivate::source_items_inserted (this=this@entry=0x3083e40, source_parent=..., start=<optimized out>, end=<optimized out>, orient=orient@entry=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:806
#15 0x00007f3c0fcb68ef in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x3083e40, source_parent=..., start=<optimized out>, end=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:1297
#16 0x00007f3c0ea7071c in QMetaObject::activate (sender=sender@entry=0x3082c10, m=m@entry=0x7f3c0edc0860 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7ffec3cecf30) at kernel/qobject.cpp:3567
#17 0x00007f3c0eabcc44 in QAbstractItemModel::rowsInserted (this=this@entry=0x3082c10, _t1=..., _t2=1, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:196
#18 0x00007f3c0ea54aa2 in QAbstractItemModel::endInsertRows (this=0x3082c10) at kernel/qabstractitemmodel.cpp:2433
#19 0x000000000058aa7e in Digikam::AbstractAlbumModel::slotAlbumAdded (this=0x3082c10, album=0xe0967d0) at /home/tobias/dk/core/libs/models/abstractalbummodel.cpp:459
#20 0x0000000000588f17 in Digikam::AbstractAlbumModel::qt_static_metacall (_o=0x3082c10, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7ffec3ced150) at /home/tobias/dk/build/core/app/abstractalbummodel.moc:66
#21 0x00007f3c0ea7071c in QMetaObject::activate (sender=0x1fbdd50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffec3ced150) at kernel/qobject.cpp:3567
#22 0x00000000005be171 in Digikam::AlbumManager::signalAlbumAdded (this=0x1fbdd50, _t1=0xe0967d0) at /home/tobias/dk/build/core/app/albummanager.moc:237
#23 0x00000000005cc555 in Digikam::AlbumManager::insertPAlbum (this=0x1fbdd50, album=0xe0967d0, parent=0x27bbcb0) at /home/tobias/dk/core/app/album/albummanager.cpp:2899
#24 0x00000000005c5958 in Digikam::AlbumManager::scanPAlbums (this=0x1fbdd50) at /home/tobias/dk/core/app/album/albummanager.cpp:1426
#25 0x00000000005bdf3f in Digikam::AlbumManager::qt_static_metacall (_o=0x1fbdd50, _c=QMetaObject::InvokeMetaMethod, _id=37, _a=0x7ffec3ced460) at /home/tobias/dk/build/core/app/albummanager.moc:174
#26 0x00007f3c0ea7071c in QMetaObject::activate (sender=0x1fd4c00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3567
#27 0x00007f3c0ea74ce3 in QObject::event (this=0x1fd4c00, e=<optimized out>) at kernel/qobject.cpp:1253
#28 0x00007f3c0f70248c in QApplicationPrivate::notify_helper (this=this@entry=0x1ef9730, receiver=receiver@entry=0x1fd4c00, e=e@entry=0x7ffec3ced820) at kernel/qapplication.cpp:4570
#29 0x00007f3c0f708fa8 in QApplication::notify (this=this@entry=0x7ffec3cedc00, receiver=receiver@entry=0x1fd4c00, e=e@entry=0x7ffec3ced820) at kernel/qapplication.cpp:4356
#30 0x00007f3c106d21aa in KApplication::notify (this=0x7ffec3cedc00, receiver=0x1fd4c00, event=0x7ffec3ced820) at ../../kdeui/kernel/kapplication.cpp:311
#31 0x00007f3c0ea5b71d in QCoreApplication::notifyInternal (this=0x7ffec3cedc00, receiver=0x1fd4c00, event=event@entry=0x7ffec3ced820) at kernel/qcoreapplication.cpp:955
#32 0x00007f3c0ea8d38b in sendEvent (event=0x7ffec3ced820, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#33 QTimerInfoList::activateTimers (this=0x1efa480) at kernel/qeventdispatcher_unix.cpp:621
#34 0x00007f3c0ea8a3c1 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#35 0x00007f3c064b1c5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f3c064b1f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f3c064b1ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007f3c0ea8ad1d in QEventDispatcherGlib::processEvents (this=0x1e2f250, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#39 0x00007f3c0f7a6f96 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007f3c0ea5a271 in QEventLoop::processEvents (this=this@entry=0x7ffec3cedaa0, flags=...) at kernel/qeventloop.cpp:149
#41 0x00007f3c0ea5a5d5 in QEventLoop::exec (this=this@entry=0x7ffec3cedaa0, flags=...) at kernel/qeventloop.cpp:204
#42 0x00007f3c0ea60059 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#43 0x000000000071296b in main (argc=1, argv=0x7ffec3cee318) at /home/tobias/dk/core/app/main/main.cpp:237

Reported using DrKonqi
Comment 1 caulier.gilles 2015-04-26 10:15:00 UTC
The crash do not show anything wrong here.

Where is located your database ? Localy ? NAS ? Sqlite ? MySQL ?

[KCrash Handler]
#6  0x00000000005b66e6 in Digikam::Album::next (this=0x41) at /home/tobias/dk/core/app/album/album.cpp:96
#7  0x000000000058d1de in Digikam::AbstractAlbumModel::Private::findNthChild (this=0x3083850, parent=0x27bf340, n=1) at /home/tobias/dk/core/libs/models/abstractalbummodelpriv.h:70
Comment 2 Tobias 2015-04-26 10:19:20 UTC
Database is localy. (SQLite)
/home/USER/Bilder/digikam4.db 
/home/USER/Bilder/thumbnails-digikam.db
Comment 3 caulier.gilles 2015-08-13 08:02:09 UTC
digiKam 4.12.0 is out.

https://www.digikam.org/node/741

Problem still reproducible ?

Gilles Caulier
Comment 4 caulier.gilles 2016-06-30 13:00:11 UTC
Problem still reproducible using last digiKam 5.0.0-beta7 ?

Gilles Caulier
Comment 5 caulier.gilles 2016-07-02 18:44:55 UTC
digiKam 5.0.0 will be released soon.

Please test with this version quickly and give us a fresh feedback.
Comment 6 caulier.gilles 2016-07-14 12:47:45 UTC
Tobias , 

digiKam 5.0.0 is released.

Can you reproduce this problem ?

Gilles Caulier
Comment 7 caulier.gilles 2016-11-21 16:05:30 UTC
We need feedback with last digiKam AppImage Linux Bundle:

https://drive.google.com/open?id=0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 8 caulier.gilles 2016-11-26 10:34:11 UTC
This problem still reproducible using digiKam AppImage bundle 5.4.0 pre release
?

It available at this url :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Gilles Caulier
Comment 9 caulier.gilles 2017-04-16 20:08:31 UTC
digiKam 5.5.0 is released officially

https://download.kde.org/stable/digikam/

...and new 5.6.0 pre-release as bundle is available here :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Please check if this problem still reproducible with these versions.

Thanks in advance

Gilles Caulier
Comment 10 caulier.gilles 2017-06-22 21:38:45 UTC
digiKam 5.6.0 is now release and available as bundle for Linux, MacOS and Windows.

Can you check if problem still exists with this version ?

Thanks in advance

Gilles Caulier
Comment 11 caulier.gilles 2017-11-30 09:31:12 UTC
Please update this entry from bugzilla with current 5.8.0 pre-release bundle to see if problem remain.

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 12 caulier.gilles 2018-03-05 12:25:08 UTC
No feedback, not reproducible, and probably relevant of an older Exiv2 version.
Closed.