Bug 344587 - digiKam crash while downloading photos from SDcard
Summary: digiKam crash while downloading photos from SDcard
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 4.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-02-26 10:49 UTC by Lukas Kripner
Modified: 2021-05-10 15:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Kripner 2015-02-26 10:49:19 UTC
Application: digikam (4.0.0)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-44-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I've just tried to download new photos from SD card to my album. After each try digikam crashed. If I wait for loading of all photos (as thumbnails) befor downloading, the problem dowsn't seem to appeare.

The crash can be reproduced sometimes.

-- 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 0x7fec1dfd6ac0 (LWP 3567))]

Thread 8 (Thread 0x7febf8c6f700 (LWP 3570)):
#0  0x00007fec1712acbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007febfd81a248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fec13613182 in start_thread (arg=0x7febf8c6f700) at pthread_create.c:312
#3  0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7febeddc2700 (LWP 3571)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fec18e0fdd3 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x2d5a4a0) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x2d5a4a0, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007fec18e0c3bd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007fec1aff9519 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /build/buildd/digikam-4.0.0/core/libs/database/databaseaccess.cpp:101
#5  0x00007fec1aff098a in Digikam::CollectionManager::albumRootPath (this=0x2c07440, givenPath=...) at /build/buildd/digikam-4.0.0/core/libs/database/collectionmanager.cpp:1369
#6  0x00007fec1afeaec6 in Digikam::CollectionScanner::partialScan (this=this@entry=0x7febeddc1ae0, filePath=...) at /build/buildd/digikam-4.0.0/core/libs/database/collectionscanner.cpp:615
#7  0x00000000005e3d09 in Digikam::ScanController::run (this=0x29b1e80) at /build/buildd/digikam-4.0.0/core/digikam/database/scancontroller.cpp:798
#8  0x00007fec18e1132f in QThreadPrivate::start (arg=0x29b1e80) at thread/qthread_unix.cpp:349
#9  0x00007fec13613182 in start_thread (arg=0x7febeddc2700) at pthread_create.c:312
#10 0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7febed5c1700 (LWP 3572)):
#0  0x00007fec1712acbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fec10070fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fec100710ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fec18f407be in QEventDispatcherGlib::processEvents (this=0x7febe00008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fec18f120af in QEventLoop::processEvents (this=this@entry=0x7febed5c0ae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fec18f123a5 in QEventLoop::exec (this=this@entry=0x7febed5c0ae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fec18e0ec5f in QThread::exec (this=this@entry=0x2a50200) at thread/qthread.cpp:537
#7  0x00007fec18ef3823 in QInotifyFileSystemWatcherEngine::run (this=0x2a50200) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fec18e1132f in QThreadPrivate::start (arg=0x2a50200) at thread/qthread_unix.cpp:349
#9  0x00007fec13613182 in start_thread (arg=0x7febed5c1700) at pthread_create.c:312
#10 0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7febecdc0700 (LWP 3576)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fec18e11816 in wait (time=18446744073709551615, this=0x2a630f0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x29eae20, mutex=mutex@entry=0x29eae18, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fec1b6518aa in Digikam::ParkingThread::run (this=0x29eae00) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007fec18e1132f in QThreadPrivate::start (arg=0x29eae00) at thread/qthread_unix.cpp:349
#5  0x00007fec13613182 in start_thread (arg=0x7febecdc0700) at pthread_create.c:312
#6  0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7febdf987700 (LWP 3580)):
#0  __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7febd8000a80) at pthread_mutex_unlock.c:81
#1  __GI___pthread_mutex_unlock (mutex=0x7febd8000a80) at pthread_mutex_unlock.c:310
#2  0x00007fec100b29b1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fec10070ef6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fec100710ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fec18f407be in QEventDispatcherGlib::processEvents (this=0x7febd80008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007fec18f120af in QEventLoop::processEvents (this=this@entry=0x7febdf986ae0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fec18f123a5 in QEventLoop::exec (this=this@entry=0x7febdf986ae0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fec18e0ec5f in QThread::exec (this=this@entry=0x32d6cc0) at thread/qthread.cpp:537
#9  0x00007fec18ef3823 in QInotifyFileSystemWatcherEngine::run (this=0x32d6cc0) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007fec18e1132f in QThreadPrivate::start (arg=0x32d6cc0) at thread/qthread_unix.cpp:349
#11 0x00007fec13613182 in start_thread (arg=0x7febdf987700) at pthread_create.c:312
#12 0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7febddb0c700 (LWP 3585)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fec18e0fdd3 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x2d5a4a0) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x2d5a4a0, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007fec18e0c3bd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007fec1aff9519 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /build/buildd/digikam-4.0.0/core/libs/database/databaseaccess.cpp:101
#5  0x00007fec1aff0e3a in Digikam::CollectionManager::locationForPath (this=this@entry=0x2c07440, givenPath=...) at /build/buildd/digikam-4.0.0/core/libs/database/collectionmanager.cpp:1326
#6  0x00007fec1aff11dc in Digikam::CollectionManager::locationForUrl (this=0x2c07440, fileUrl=...) at /build/buildd/digikam-4.0.0/core/libs/database/collectionmanager.cpp:1321
#7  0x00007fec1b017bf9 in Digikam::ImageInfo::ImageInfo (this=0x7febddb0b600, url=...) at /build/buildd/digikam-4.0.0/core/libs/database/imageinfo.cpp:320
#8  0x00007fec1b00846a in Digikam::DatabaseThumbnailInfoProvider::thumbnailInfo (this=<optimized out>, path=...) at /build/buildd/digikam-4.0.0/core/libs/database/databasethumbnailinfoprovider.cpp:45
#9  0x00007fec1b63a024 in Digikam::ThumbnailCreator::makeThumbnailInfo (this=this@entry=0x3d01cc0, path=..., rect=...) at /build/buildd/digikam-4.0.0/core/libs/threadimageio/thumbnailcreator.cpp:347
#10 0x00007fec1b63e2f1 in Digikam::ThumbnailCreator::load (this=0x3d01cc0, path=..., rect=..., pregenerate=pregenerate@entry=false) at /build/buildd/digikam-4.0.0/core/libs/threadimageio/thumbnailcreator.cpp:228
#11 0x00007fec1b63f192 in Digikam::ThumbnailCreator::load (this=<optimized out>, path=...) at /build/buildd/digikam-4.0.0/core/libs/threadimageio/thumbnailcreator.cpp:199
#12 0x00007fec1b64d707 in Digikam::ThumbnailLoadingTask::execute (this=0x388c230) at /build/buildd/digikam-4.0.0/core/libs/threadimageio/thumbnailtask.cpp:172
#13 0x00007fec1b625ab6 in Digikam::LoadSaveThread::run (this=0x3d01970) at /build/buildd/digikam-4.0.0/core/libs/threadimageio/loadsavethread.cpp:136
#14 0x00007fec1b6536ee in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x3d01a70) at /build/buildd/digikam-4.0.0/core/libs/threads/dynamicthread.cpp:186
#15 0x00007fec18e04fee in QThreadPoolThread::run (this=0x4800b40) at concurrent/qthreadpool.cpp:108
#16 0x00007fec18e1132f in QThreadPrivate::start (arg=0x4800b40) at thread/qthread_unix.cpp:349
#17 0x00007fec13613182 in start_thread (arg=0x7febddb0c700) at pthread_create.c:312
#18 0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7feb0f388700 (LWP 3647)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fec18e11816 in wait (time=18446744073709551615, this=0x7feb0805aa00) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x7feb0808ec70, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fec18e0d95b in QSemaphore::acquire (this=this@entry=0x7feb0f387580, n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x00007fec18f27cb2 in QMetaObject::activate (sender=sender@entry=0xbbb7610, m=m@entry=0x8c8420 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=17, argv=argv@entry=0x7feb0f3875d0) at kernel/qobject.cpp:3513
#5  0x00000000007dcfa7 in Digikam::CameraController::signalInternalCheckRename (this=this@entry=0xbbb7610, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /build/buildd/digikam-4.0.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:310
#6  0x00000000007e2c87 in Digikam::CameraController::executeCommand (this=this@entry=0xbbb7610, cmd=cmd@entry=0xdc15390) at /build/buildd/digikam-4.0.0/core/utilities/importui/backend/cameracontroller.cpp:695
#7  0x00000000007e57a6 in Digikam::CameraController::run (this=0xbbb7610) at /build/buildd/digikam-4.0.0/core/utilities/importui/backend/cameracontroller.cpp:413
#8  0x00007fec18e1132f in QThreadPrivate::start (arg=0xbbb7610) at thread/qthread_unix.cpp:349
#9  0x00007fec13613182 in start_thread (arg=0x7feb0f388700) at pthread_create.c:312
#10 0x00007fec1713800d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fec1dfd6ac0 (LWP 3567)):
[KCrash Handler]
#6  0x0000000000004800 in ?? ()
#7  0x00007fec01d1ee85 in sqlite3MemCompare (pMem1=pMem1@entry=0x7fff98bd3890, pMem2=0xc24bb10, pColl=0xd942e08) at sqlite3.c:60470
#8  0x00007fec01d1ef63 in sqlite3VdbeRecordCompare (nKey1=74, pKey1=0xc10004e, pPKey2=pPKey2@entry=0x7fff98bd3ba8) at sqlite3.c:64162
#9  0x00007fec01d33579 in sqlite3BtreeMovetoUnpacked (pCur=0x3890c38, pIdxKey=0x7fff98bd3ba8, intKey=0, biasRight=<optimized out>, pRes=0x7fff98bd3b90) at sqlite3.c:55077
#10 0x00007fec01d5b848 in sqlite3VdbeExec (p=p@entry=0x2f65528) at sqlite3.c:70345
#11 0x00007fec01d63ed7 in sqlite3Step (p=0x2f65528) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007febec3bb11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0xdc1c210, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007febec3bbe48 in QSQLiteResult::exec (this=0x388c730) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007fec1dc07b7d in QSqlQuery::exec (this=this@entry=0x7fff98bd4108) at kernel/qsqlquery.cpp:949
#16 0x00007fec1b60aa46 in Digikam::DatabaseCoreBackend::exec (this=0x29e5d90, query=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1415
#17 0x00007fec1b60ad0e in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x29e5d90, query=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1086
#18 0x00007fec1b60bdb5 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x29e5d90, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1031
#19 0x00007fec1b60be09 in Digikam::DatabaseCoreBackend::execSql (this=0x29e5d90, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=..., values=values@entry=0x0, lastInsertId=lastInsertId@entry=0x7fff98bd4180) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:929
#20 0x00007fec1afbb185 in Digikam::AlbumDB::addToDownloadHistory (this=0x2a5ba60, identifier=..., name=..., fileSize=fileSize@entry=8116412, date=...) at /build/buildd/digikam-4.0.0/core/libs/database/albumdb.cpp:3166
#21 0x00007fec1b008be1 in Digikam::DownloadHistory::setDownloaded (identifier=..., name=..., fileSize=fileSize@entry=8116412, date=...) at /build/buildd/digikam-4.0.0/core/libs/database/downloadhistory.cpp:52
#22 0x00000000007d12d8 in Digikam::ImportUI::slotDownloaded (this=0xb861250, folder=..., file=..., status=<optimized out>) at /build/buildd/digikam-4.0.0/core/utilities/importui/main/importui.cpp:1560
#23 0x00000000007d4c71 in Digikam::ImportUI::qt_static_metacall (_o=0xb861250, _c=32, _id=202375252, _a=0x20) at /build/buildd/digikam-4.0.0/obj-x86_64-linux-gnu/core/utilities/importui/importui.moc:210
#24 0x00007fec18f2787a in QMetaObject::activate (sender=sender@entry=0xbbb7610, m=m@entry=0x8c8420 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=9, argv=argv@entry=0x7fff98bd45e0) at kernel/qobject.cpp:3539
#25 0x00000000007dcda9 in Digikam::CameraController::signalDownloaded (this=this@entry=0xbbb7610, _t1=..., _t2=..., _t3=_t3@entry=1) at /build/buildd/digikam-4.0.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:254
#26 0x00000000007e5add in Digikam::CameraController::slotCheckRename (this=0xbbb7610, folder=..., file=..., destination=..., temp=..., script=...) at /build/buildd/digikam-4.0.0/core/utilities/importui/backend/cameracontroller.cpp:904
#27 0x00000000007e6b69 in Digikam::CameraController::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/digikam-4.0.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:138
#28 0x00007fec18f2bc1e in QObject::event (this=0xbbb7610, e=<optimized out>) at kernel/qobject.cpp:1194
#29 0x00007fec18031e2c in QApplicationPrivate::notify_helper (this=this@entry=0x2903e40, receiver=receiver@entry=0xbbb7610, e=e@entry=0x7feb080bfc80) at kernel/qapplication.cpp:4567
#30 0x00007fec180384a0 in QApplication::notify (this=this@entry=0x7fff98bd5490, receiver=receiver@entry=0xbbb7610, e=e@entry=0x7feb080bfc80) at kernel/qapplication.cpp:4353
#31 0x00007fec1995dcca in KApplication::notify (this=0x7fff98bd5490, receiver=0xbbb7610, event=0x7feb080bfc80) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007fec18f134dd in QCoreApplication::notifyInternal (this=0x7fff98bd5490, receiver=receiver@entry=0xbbb7610, event=event@entry=0x7feb080bfc80) at kernel/qcoreapplication.cpp:953
#33 0x00007fec18f16b3d in sendEvent (event=0x7feb080bfc80, receiver=0xbbb7610) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x287fb20) at kernel/qcoreapplication.cpp:1577
#35 0x00007fec18f16fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#36 0x00007fec18f40f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#37 postEventSourceDispatch (s=0x2904890) at kernel/qeventdispatcher_glib.cpp:287
#38 0x00007fec10070e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007fec10071048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fec100710ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007fec18f407a1 in QEventDispatcherGlib::processEvents (this=0x2828480, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#42 0x00007fec180d3bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007fec18f120af in QEventLoop::processEvents (this=this@entry=0x7fff98bd4f70, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007fec18f123a5 in QEventLoop::exec (this=this@entry=0x7fff98bd4f70, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007fec18f17b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#46 0x00007fec1803037c in QApplication::exec () at kernel/qapplication.cpp:3828
#47 0x00000000004948f0 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.0.0/core/digikam/main/main.cpp:236

Possible duplicates by query: bug 344216, bug 343243, bug 343014, bug 342802, bug 342143.

Reported using DrKonqi
Comment 1 caulier.gilles 2015-02-26 11:19:30 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-05-10 15:00:39 UTC
Fixed with # 329697