Bug 347786 - Digikam crashes when image is saved by external editor
Summary: Digikam crashes when image is saved by external editor
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 4.10.0
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-05-16 10:34 UTC by Roger Foss
Modified: 2021-04-04 08:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0


Attachments
New crash information added by DrKonqi (12.22 KB, text/plain)
2015-05-17 01:13 UTC, Craig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Foss 2015-05-16 10:34:29 UTC
Application: digikam (4.10.0)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-51-generic x86_64
Distribution: Linux Mint 17 Qiana

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

I was editing a picture in GIMP. When finished editing, I chose File / Overwrite image in GIMP.
This is when Digikam crashed.  This happens very often, but not always. Sometimes Digikam detects the changed file and updates its thumbnail.
Other times it crashes and I have to restart.

The pictures in question are in a directory on a local SSD drive.

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".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7fdcde428ac0 (LWP 27765))]

Thread 7 (Thread 0x7fdcb8bbd700 (LWP 27766)):
#0  0x00007fdcd711512d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fdcbd825248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fdcd42b6182 in start_thread (arg=0x7fdcb8bbd700) at pthread_create.c:312
#3  0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7fdcb20e6700 (LWP 27769)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdcd7bfd816 in wait (time=18446744073709551615, this=0x2c00f90) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2cf8430, mutex=mutex@entry=0x2cf8428, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005daf2e in Digikam::ScanController::run (this=0x2be94e0) at /build/buildd/digikam-4.10.0/core/app/database/scancontroller.cpp:725
#4  0x00007fdcd7bfd32f in QThreadPrivate::start (arg=0x2be94e0) at thread/qthread_unix.cpp:349
#5  0x00007fdcd42b6182 in start_thread (arg=0x7fdcb20e6700) at pthread_create.c:312
#6  0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fdcb18e5700 (LWP 27770)):
#0  0x00007fdcd42b97ee in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7fdca4000a60) at pthread_mutex_unlock.c:57
#1  __GI___pthread_mutex_unlock (mutex=0x7fdca4000a60) at pthread_mutex_unlock.c:310
#2  0x00007fdccf31c9b1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdccf2da0f0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fdccf2daea5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fdccf2db0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fdcd7d2c7be in QEventDispatcherGlib::processEvents (this=0x7fdca40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007fdcd7cfe0af in QEventLoop::processEvents (this=this@entry=0x7fdcb18e4ae0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fdcd7cfe3a5 in QEventLoop::exec (this=this@entry=0x7fdcb18e4ae0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fdcd7bfac5f in QThread::exec (this=this@entry=0x2ca9640) at thread/qthread.cpp:537
#10 0x00007fdcd7cdf823 in QInotifyFileSystemWatcherEngine::run (this=0x2ca9640) at io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007fdcd7bfd32f in QThreadPrivate::start (arg=0x2ca9640) at thread/qthread_unix.cpp:349
#12 0x00007fdcd42b6182 in start_thread (arg=0x7fdcb18e5700) at pthread_create.c:312
#13 0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fdcb10e4700 (LWP 27779)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdcd7bfd816 in wait (time=18446744073709551615, this=0x31d0d90) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x30f16e0, mutex=mutex@entry=0x30f16d8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fdcdc2cfeda in Digikam::ParkingThread::run (this=0x30f16c0) at /build/buildd/digikam-4.10.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007fdcd7bfd32f in QThreadPrivate::start (arg=0x30f16c0) at thread/qthread_unix.cpp:349
#5  0x00007fdcd42b6182 in start_thread (arg=0x7fdcb10e4700) at pthread_create.c:312
#6  0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fdca3dad700 (LWP 27789)):
#0  0x00007fdcd711512d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fdccf2dafe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdccf2db0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdcd7d2c7be in QEventDispatcherGlib::processEvents (this=0x7fdc9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fdcd7cfe0af in QEventLoop::processEvents (this=this@entry=0x7fdca3dacae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fdcd7cfe3a5 in QEventLoop::exec (this=this@entry=0x7fdca3dacae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fdcd7bfac5f in QThread::exec (this=this@entry=0x35b7d00) at thread/qthread.cpp:537
#7  0x00007fdcd7cdf823 in QInotifyFileSystemWatcherEngine::run (this=0x35b7d00) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fdcd7bfd32f in QThreadPrivate::start (arg=0x35b7d00) at thread/qthread_unix.cpp:349
#9  0x00007fdcd42b6182 in start_thread (arg=0x7fdca3dad700) at pthread_create.c:312
#10 0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fdc8aff5700 (LWP 31094)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007fdcc1d29dac in sqlite3MemCompare (pMem1=pMem1@entry=0x7fdc8aff3c80, pMem2=<optimized out>, pColl=0x7fdc7c176738) at sqlite3.c:60484
#8  0x00007fdcc1d29f63 in sqlite3VdbeRecordCompare (nKey1=42, pKey1=0x7fdc7c04a0e5, pPKey2=pPKey2@entry=0x7fdc8aff3f80) at sqlite3.c:64162
#9  0x00007fdcc1d3e579 in sqlite3BtreeMovetoUnpacked (pCur=0x7fdc7c1767c8, pIdxKey=0x7fdc8aff3f80, intKey=0, biasRight=<optimized out>, pRes=0x7fdc8aff3f70) at sqlite3.c:55077
#10 0x00007fdcc1d669c5 in sqlite3VdbeExec (p=p@entry=0x7fdc7c037cf8) at sqlite3.c:70168
#11 0x00007fdcc1d6eed7 in sqlite3Step (p=0x7fdc7c037cf8) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007fdcb06df11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x7fdc7c2d9c40, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007fdcb06dfe48 in QSQLiteResult::exec (this=0x7fdc7c0f9380) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007fdcde18ab7d in QSqlQuery::exec (this=this@entry=0x7fdc8aff44d8) at kernel/qsqlquery.cpp:949
#16 0x00007fdcdc288896 in Digikam::DatabaseCoreBackend::exec (this=0x2cc9f60, query=...) at /build/buildd/digikam-4.10.0/core/libs/database/core/databasecorebackend.cpp:1422
#17 0x00007fdcdc2889c2 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2cc9f60, query=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.10.0/core/libs/database/core/databasecorebackend.cpp:1070
#18 0x00007fdcdc2896dc in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2cc9f60, sql=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.10.0/core/libs/database/core/databasecorebackend.cpp:1019
#19 0x00007fdcdc28972c in Digikam::DatabaseCoreBackend::execSql (this=0x2cc9f60, sql=..., boundValue1=..., boundValue2=..., values=values@entry=0x7fdc8aff4520, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-4.10.0/core/libs/database/core/databasecorebackend.cpp:919
#20 0x00007fdcdc29547a in Digikam::ThumbnailDB::findByHash (this=0x308c3b0, uniqueHash=..., fileSize=<optimized out>) at /build/buildd/digikam-4.10.0/core/libs/database/core/thumbnaildb.cpp:114
#21 0x00007fdcdc2b7b6e in Digikam::ThumbnailCreator::loadDatabaseThumbnailInfo (this=this@entry=0x3c46060, info=...) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailcreator.cpp:887
#22 0x00007fdcdc2bb01f in Digikam::ThumbnailCreator::loadFromDatabase (this=this@entry=0x3c46060, info=...) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailcreator.cpp:922
#23 0x00007fdcdc2bc84c in Digikam::ThumbnailCreator::load (this=0x3c46060, identifier=..., rect=..., pregenerate=pregenerate@entry=false) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailcreator.cpp:260
#24 0x00007fdcdc2bd092 in Digikam::ThumbnailCreator::load (this=<optimized out>, identifier=...) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailcreator.cpp:196
#25 0x00007fdcdc2cb92e in Digikam::ThumbnailLoadingTask::execute (this=0x46ea4d0) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailtask.cpp:172
#26 0x00007fdcdc2a2f16 in Digikam::LoadSaveThread::run (this=0x3c45cf0) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/loadsavethread.cpp:136
#27 0x00007fdcdc2d1d1e in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x3c45df0) at /build/buildd/digikam-4.10.0/core/libs/threads/dynamicthread.cpp:186
#28 0x00007fdcd7bf0fee in QThreadPoolThread::run (this=0x451a050) at concurrent/qthreadpool.cpp:108
#29 0x00007fdcd7bfd32f in QThreadPrivate::start (arg=0x451a050) at thread/qthread_unix.cpp:349
#30 0x00007fdcd42b6182 in start_thread (arg=0x7fdc8aff5700) at pthread_create.c:312
#31 0x00007fdcd712247d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fdcde428ac0 (LWP 27765)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fdcd7bfd816 in wait (time=18446744073709551615, this=0x3c45e70) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x3c45e20, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fdcdc2d1388 in Digikam::DynamicThread::wait (this=this@entry=0x3c45cf0, locker=...) at /build/buildd/digikam-4.10.0/core/libs/threads/dynamicthread.cpp:351
#4  0x00007fdcdc2d1404 in Digikam::DynamicThread::shutDown (this=this@entry=0x3c45cf0) at /build/buildd/digikam-4.10.0/core/libs/threads/dynamicthread.cpp:222
#5  0x00007fdcdc2a6681 in Digikam::ManagedLoadSaveThread::shutDown (this=this@entry=0x3c45cf0) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/managedloadsavethread.cpp:94
#6  0x00007fdcdc2bf7df in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x3c45cf0, __in_chrg=<optimized out>) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailloadthread.cpp:177
#7  0x00007fdcdc2bf919 in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x3c45cf0, __in_chrg=<optimized out>) at /build/buildd/digikam-4.10.0/core/libs/threadimageio/thumbnailloadthread.cpp:180
#8  0x00007fdcd7064259 in __run_exit_handlers (status=1, listp=0x7fdcd73e66c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#9  0x00007fdcd70642a5 in __GI_exit (status=<optimized out>) at exit.c:104
#10 0x00007fdcd8758878 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:783
#11 0x00007fdcd93fb880 in KApplication::xioErrhandler (this=0x7ffd2c2d4270, dpy=0x2b675a0) at ../../kdeui/kernel/kapplication.cpp:419
#12 0x00007fdcd5b1f5ee in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007fdcd5b1cfed in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007fdcd5b0f0db in XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007fdcd879362c in x11EventSourceCheck (s=0x2b5f520) at kernel/qguieventdispatcher_glib.cpp:85
#16 0x00007fdccf2daa61 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fdccf2daf7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007fdccf2db0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007fdcd7d2c7be in QEventDispatcherGlib::processEvents (this=0x2b606f0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#20 0x00007fdcd8793bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#21 0x00007fdcd7cfe0af in QEventLoop::processEvents (this=this@entry=0x7ffd2c2d3d50, flags=...) at kernel/qeventloop.cpp:149
#22 0x00007fdcd7cfe3a5 in QEventLoop::exec (this=this@entry=0x7ffd2c2d3d50, flags=...) at kernel/qeventloop.cpp:204
#23 0x00007fdcd7d03b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#24 0x00007fdcd86f037c in QApplication::exec () at kernel/qapplication.cpp:3828
#25 0x0000000000497a20 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.10.0/core/app/main/main.cpp:237

Possible duplicates by query: bug 347340, bug 347054, bug 345907, bug 344587, bug 344216.

Reported using DrKonqi
Comment 1 caulier.gilles 2015-05-16 10:38:51 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 Craig 2015-05-17 01:13:12 UTC
Created attachment 92648 [details]
New crash information added by DrKonqi

digikam (4.10.0) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:

Processing an image in RawTherapee, which wrote a file to disk in an existing album directory tracked by digikam

-- Backtrace (Reduced):
#7  0x00007f1b04e06dac in sqlite3MemCompare (pMem1=pMem1@entry=0x7f1a69ff9c80, pMem2=<optimized out>, pColl=0x7f1a74026e48) at sqlite3.c:60484
#8  0x00007f1b04e06f63 in sqlite3VdbeRecordCompare (nKey1=41, pKey1=0x7f1a58037634, pPKey2=pPKey2@entry=0x7f1a69ff9f80) at sqlite3.c:64162
#9  0x00007f1b04e1b579 in sqlite3BtreeMovetoUnpacked (pCur=0x7f1a740236a8, pIdxKey=0x7f1a69ff9f80, intKey=0, biasRight=<optimized out>, pRes=0x7f1a69ff9f70) at sqlite3.c:55077
#10 0x00007f1b04e439c5 in sqlite3VdbeExec (p=p@entry=0x7f1a74000b78) at sqlite3.c:70168
#11 0x00007f1b04e4bed7 in sqlite3Step (p=0x7f1a74000b78) at sqlite3.c:64828
Comment 3 caulier.gilles 2021-04-04 08:40:27 UTC
Fixed with #329697