Bug 374472 - Crash on Import after going into shell
Summary: Crash on Import after going into shell
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-02 23:05 UTC by Mihaela
Modified: 2020-07-26 08:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihaela 2017-01-02 23:05:10 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-51-generic x86_64
Distribution: Ubuntu 14.04.5 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I opened the Import dialogue, PTP, kept my default import settings and selected Download All. The Import started. Then I moved my mouse to top left screen corner to switch windows/desktop (I'm on Ubuntu 14.04 with Gnome shell).  After that digiKam crashed. Some of the photos have been downloaded before the crash. 

-- 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 0x7f9526553ac0 (LWP 14887))]

Thread 9 (Thread 0x7f95015d2700 (LWP 14890)):
#0  0x00007f951ff76fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f95069e6248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f951b207184 in start_thread (arg=0x7f95015d2700) at pthread_create.c:312
#3  0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7f94fa1a7700 (LWP 14891)):
#0  0x00007f9518a7061d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9518a70979 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9518a2eed5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9518a2f30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f95081f6336 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007f9518a53f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f951b207184 in start_thread (arg=0x7f94fa1a7700) at pthread_create.c:312
#7  0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7f94f99a6700 (LWP 14892)):
#0  0x00007f9518a70622 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9518a70979 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9518a2e87b in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9518a2ef52 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9518a2f0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9518a2f129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f9518a53f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f951b207184 in start_thread (arg=0x7f94f99a6700) at pthread_create.c:312
#8  0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f94e8cb0700 (LWP 14896)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f9520d63dd3 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x146a200) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x146a200, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007f9520d603bd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f9523585a69 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /build/buildd/digikam-3.5.0/core/libs/database/databaseaccess.cpp:101
#5  0x00007f952357ceda in Digikam::CollectionManager::albumRootPath (this=0x1449140, givenPath=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionmanager.cpp:1369
#6  0x00007f9523577456 in Digikam::CollectionScanner::partialScan (this=this@entry=0x7f94e8cafae0, filePath=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionscanner.cpp:615
#7  0x00000000005d5e49 in Digikam::ScanController::run (this=0x14481f0) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:798
#8  0x00007f9520d6532f in QThreadPrivate::start (arg=0x14481f0) at thread/qthread_unix.cpp:349
#9  0x00007f951b207184 in start_thread (arg=0x7f94e8cb0700) at pthread_create.c:312
#10 0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f94dffff700 (LWP 14897)):
#0  0x00007f951ff76fdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9518a2efe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9518a2f0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9520e947be in QEventDispatcherGlib::processEvents (this=0x7f94d80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f9520e660af in QEventLoop::processEvents (this=this@entry=0x7f94dfffeae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9520e663a5 in QEventLoop::exec (this=this@entry=0x7f94dfffeae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9520d62c5f in QThread::exec (this=this@entry=0x144ae90) at thread/qthread.cpp:537
#7  0x00007f9520e47823 in QInotifyFileSystemWatcherEngine::run (this=0x144ae90) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f9520d6532f in QThreadPrivate::start (arg=0x144ae90) at thread/qthread_unix.cpp:349
#9  0x00007f951b207184 in start_thread (arg=0x7f94dffff700) at pthread_create.c:312
#10 0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f94f91a5700 (LWP 14899)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9520d65816 in wait (time=18446744073709551615, this=0x1487370) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1486fe0, mutex=mutex@entry=0x1486fd8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9523bdb79a in Digikam::ParkingThread::run (this=0x1486fc0) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f9520d6532f in QThreadPrivate::start (arg=0x1486fc0) at thread/qthread_unix.cpp:349
#5  0x00007f951b207184 in start_thread (arg=0x7f94f91a5700) at pthread_create.c:312
#6  0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f9493fff700 (LWP 14918)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f9520d63dd3 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x146a200) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x146a200, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007f9520d603bd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f9523585a69 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /build/buildd/digikam-3.5.0/core/libs/database/databaseaccess.cpp:101
#5  0x00007f952357d38a in Digikam::CollectionManager::locationForPath (this=this@entry=0x1449140, givenPath=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionmanager.cpp:1326
#6  0x00007f952357d72c in Digikam::CollectionManager::locationForUrl (this=0x1449140, fileUrl=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionmanager.cpp:1321
#7  0x00007f95235a3e79 in Digikam::ImageInfo::ImageInfo (this=0x7f9493ffe600, url=...) at /build/buildd/digikam-3.5.0/core/libs/database/imageinfo.cpp:320
#8  0x00007f95235949ca in Digikam::DatabaseThumbnailInfoProvider::thumbnailInfo (this=<optimized out>, path=...) at /build/buildd/digikam-3.5.0/core/libs/database/databasethumbnailinfoprovider.cpp:45
#9  0x00007f9523bc3f74 in Digikam::ThumbnailCreator::makeThumbnailInfo (this=this@entry=0x1ef90e0, path=..., rect=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:347
#10 0x00007f9523bc8241 in Digikam::ThumbnailCreator::load (this=0x1ef90e0, path=..., rect=..., pregenerate=pregenerate@entry=false) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:228
#11 0x00007f9523bc90e2 in Digikam::ThumbnailCreator::load (this=<optimized out>, path=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:199
#12 0x00007f9523bd7737 in Digikam::ThumbnailLoadingTask::execute (this=0x537b9e0) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailtask.cpp:172
#13 0x00007f9523bafa96 in Digikam::LoadSaveThread::run (this=0x1ef9260) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/loadsavethread.cpp:136
#14 0x00007f9523bdd5de in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x1ef9360) at /build/buildd/digikam-3.5.0/core/libs/threads/dynamicthread.cpp:186
#15 0x00007f9520d58fee in QThreadPoolThread::run (this=0x2853a70) at concurrent/qthreadpool.cpp:108
#16 0x00007f9520d6532f in QThreadPrivate::start (arg=0x2853a70) at thread/qthread_unix.cpp:349
#17 0x00007f951b207184 in start_thread (arg=0x7f9493fff700) at pthread_create.c:312
#18 0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f94f89a4700 (LWP 14945)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9520d65816 in wait (time=18446744073709551615, this=0x7f94e4227ad0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x7f94e4210a60, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9520d6195b in QSemaphore::acquire (this=this@entry=0x7f94f89a3580, n=n@entry=1) at thread/qsemaphore.cpp:144
#4  0x00007f9520e7bcb2 in QMetaObject::activate (sender=sender@entry=0x3357100, m=m@entry=0x89c980 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=18, argv=argv@entry=0x7f94f89a35d0) at kernel/qobject.cpp:3513
#5  0x00000000007b68b7 in Digikam::CameraController::signalInternalCheckRename (this=this@entry=0x3357100, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:319
#6  0x00000000007bb95f in Digikam::CameraController::executeCommand (this=this@entry=0x3357100, cmd=cmd@entry=0x5422ad0) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:690
#7  0x00000000007be766 in Digikam::CameraController::run (this=0x3357100) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:402
#8  0x00007f9520d6532f in QThreadPrivate::start (arg=0x3357100) at thread/qthread_unix.cpp:349
#9  0x00007f951b207184 in start_thread (arg=0x7f94f89a4700) at pthread_create.c:312
#10 0x00007f951ff8437d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f9526553ac0 (LWP 14887)):
[KCrash Handler]
#6  0x0000000000000032 in ?? ()
#7  0x00007f950aac7e5c in sqlite3MemCompare (pMem1=pMem1@entry=0x7ffe44c94550, pMem2=<optimized out>, pColl=0x537e3e0) at sqlite3.c:60495
#8  0x00007f950aac8013 in sqlite3VdbeRecordCompare (nKey1=138, pKey1=0x5447cbe, pPKey2=pPKey2@entry=0x7ffe44c94868) at sqlite3.c:64173
#9  0x00007f950aadc6dd in sqlite3BtreeMovetoUnpacked (pCur=0x322fc28, pIdxKey=0x7ffe44c94868, intKey=0, biasRight=<optimized out>, pRes=0x7ffe44c94850) at sqlite3.c:55096
#10 0x00007f950ab048f8 in sqlite3VdbeExec (p=p@entry=0x526aa78) at sqlite3.c:70356
#11 0x00007f950ab0cf87 in sqlite3Step (p=0x526aa78) at sqlite3.c:64839
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64905
#13 0x00007f94e82ab11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x350e790, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007f94e82abe48 in QSQLiteResult::exec (this=0x53acdc0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007f9526189b7d in QSqlQuery::exec (this=this@entry=0x7ffe44c94dc8) at kernel/qsqlquery.cpp:949
#16 0x00007f9523b94a26 in Digikam::DatabaseCoreBackend::exec (this=0x1459860, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#17 0x00007f9523b94cee in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x1459860, query=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1085
#18 0x00007f9523b95d95 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x1459860, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1030
#19 0x00007f9523b95de9 in Digikam::DatabaseCoreBackend::execSql (this=0x1459860, sql=..., boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=..., values=values@entry=0x0, lastInsertId=lastInsertId@entry=0x7ffe44c94e40) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:928
#20 0x00007f9523547be5 in Digikam::AlbumDB::addToDownloadHistory (this=0x1464950, identifier=..., name=..., fileSize=fileSize@entry=934330, date=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:3131
#21 0x00007f9523595141 in Digikam::DownloadHistory::setDownloaded (identifier=..., name=..., fileSize=fileSize@entry=934330, date=...) at /build/buildd/digikam-3.5.0/core/libs/database/downloadhistory.cpp:52
#22 0x00000000007aa998 in Digikam::ImportUI::slotDownloaded (this=0x47fc910, folder=..., file=..., status=<optimized out>) at /build/buildd/digikam-3.5.0/core/utilities/importui/main/importui.cpp:1570
#23 0x00000000007ae721 in Digikam::ImportUI::qt_static_metacall (_o=0x47fc910, _c=64, _id=88033384, _a=0x40) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/importui.moc:210
#24 0x00007f9520e7b87a in QMetaObject::activate (sender=sender@entry=0x3357100, m=m@entry=0x89c980 <Digikam::CameraController::staticMetaObject>, local_signal_index=local_signal_index@entry=9, argv=argv@entry=0x7ffe44c95280) at kernel/qobject.cpp:3539
#25 0x00000000007b6699 in Digikam::CameraController::signalDownloaded (this=this@entry=0x3357100, _t1=..., _t2=..., _t3=_t3@entry=1) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:257
#26 0x00000000007bea9d in Digikam::CameraController::slotCheckRename (this=0x3357100, folder=..., file=..., destination=..., temp=..., script=...) at /build/buildd/digikam-3.5.0/core/utilities/importui/backend/cameracontroller.cpp:898
#27 0x00000000007bfb29 in Digikam::CameraController::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/utilities/importui/cameracontroller.moc:141
#28 0x00007f9520e7fc1e in QObject::event (this=0x3357100, e=<optimized out>) at kernel/qobject.cpp:1194
#29 0x00007f9521858e2c in QApplicationPrivate::notify_helper (this=this@entry=0x115e400, receiver=receiver@entry=0x3357100, e=e@entry=0x7f94e4211150) at kernel/qapplication.cpp:4567
#30 0x00007f952185f4a0 in QApplication::notify (this=this@entry=0x7ffe44c96130, receiver=receiver@entry=0x3357100, e=e@entry=0x7f94e4211150) at kernel/qapplication.cpp:4353
#31 0x00007f952256363a in KApplication::notify (this=0x7ffe44c96130, receiver=0x3357100, event=0x7f94e4211150) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007f9520e674dd in QCoreApplication::notifyInternal (this=0x7ffe44c96130, receiver=receiver@entry=0x3357100, event=event@entry=0x7f94e4211150) at kernel/qcoreapplication.cpp:953
#33 0x00007f9520e6ab3d in sendEvent (event=0x7f94e4211150, receiver=0x3357100) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x10cecf0) at kernel/qcoreapplication.cpp:1577
#35 0x00007f9520e6afe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#36 0x00007f9520e94f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#37 postEventSourceDispatch (s=0x115c960) at kernel/qeventdispatcher_glib.cpp:287
#38 0x00007f9518a2ee04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#39 0x00007f9518a2f048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f9518a2f0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f9520e947a1 in QEventDispatcherGlib::processEvents (this=0x115eeb0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#42 0x00007f95218fabe6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007f9520e660af in QEventLoop::processEvents (this=this@entry=0x7ffe44c95c10, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007f9520e663a5 in QEventLoop::exec (this=this@entry=0x7ffe44c95c10, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007f9520e6bb79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#46 0x00007f952185737c in QApplication::exec () at kernel/qapplication.cpp:3828
#47 0x0000000000492023 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 363736, bug 360665, bug 359977, bug 359540, bug 358832.

Report to https://bugs.kde.org/
Comment 1 caulier.gilles 2017-01-03 08:32:44 UTC
Hi and happy new year,

digiKam 3.5.0 is very old and not maintained.

This problem has been fixed few year ago. Please use the Linux Universal AppImage 5.4.0 bundle instead available here :

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

BEst

Gilles Caulier

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2020-07-26 08:21:53 UTC
Fixed with #329697