Bug 335574 - Crash when opening an image in the viewer
Summary: Crash when opening an image in the viewer
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: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-30 09:29 UTC by jmi.eck
Modified: 2021-08-27 03:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmi.eck 2014-05-30 09:29:44 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-27-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I have selected an image in an album, for viewing in the viewer mode.
The image is a copy of one whish was edited and saved as a new version _v1.
I have aded more modifications in the same i_v1 version by clicking save (replace the _v1 version).
I have done one modification of the image (using Gimp) in between the once done with digikam editor.
Maybe Gimp (export/replace function) has brocken something in the modification history saved in the image ... ?

-- 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 0x7fa6c6c17ac0 (LWP 2353))]

Thread 6 (Thread 0x7fa6a0c5d700 (LWP 2354)):
#0  0x00007fa6c0629fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa6a5808248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fa6bb8b9182 in start_thread (arg=0x7fa6a0c5d700) at pthread_create.c:312
#3  0x00007fa6c063730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fa6961d8700 (LWP 2355)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa6c1418816 in wait (time=18446744073709551615, this=0x1095730) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1095640, mutex=mutex@entry=0x1095638, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5ede in Digikam::ScanController::run (this=0x10953b0) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007fa6c141832f in QThreadPrivate::start (arg=0x10953b0) at thread/qthread_unix.cpp:349
#5  0x00007fa6bb8b9182 in start_thread (arg=0x7fa6961d8700) at pthread_create.c:312
#6  0x00007fa6c063730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fa6959d7700 (LWP 2356)):
#0  0x00007fa6c06286bd in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa6ada6be41 in ?? () from /usr/lib/nvidia-331-updates/tls/libnvidia-tls.so.331.38
#2  0x00007fa6b9121c20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa6b90e0b14 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fa6b90e0f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fa6b90e10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fa6c15477be in QEventDispatcherGlib::processEvents (this=0x7fa6880008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007fa6c15190af in QEventLoop::processEvents (this=this@entry=0x7fa6959d6ae0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007fa6c15193a5 in QEventLoop::exec (this=this@entry=0x7fa6959d6ae0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007fa6c1415c5f in QThread::exec (this=this@entry=0xf19880) at thread/qthread.cpp:537
#10 0x00007fa6c14fa823 in QInotifyFileSystemWatcherEngine::run (this=0xf19880) at io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007fa6c141832f in QThreadPrivate::start (arg=0xf19880) at thread/qthread_unix.cpp:349
#12 0x00007fa6bb8b9182 in start_thread (arg=0x7fa6959d7700) at pthread_create.c:312
#13 0x00007fa6c063730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fa6951d6700 (LWP 2359)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa6c1418816 in wait (time=18446744073709551615, this=0x137e5e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0xff5d60, mutex=mutex@entry=0xff5d58, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa6c429179a in Digikam::ParkingThread::run (this=0xff5d40) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007fa6c141832f in QThreadPrivate::start (arg=0xff5d40) at thread/qthread_unix.cpp:349
#5  0x00007fa6bb8b9182 in start_thread (arg=0x7fa6951d6700) at pthread_create.c:312
#6  0x00007fa6c063730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fa687987700 (LWP 2360)):
#0  0x00007fa6c0629fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa6b90e0fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa6b90e10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa6c15477be in QEventDispatcherGlib::processEvents (this=0x7fa6800008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fa6c15190af in QEventLoop::processEvents (this=this@entry=0x7fa687986ae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa6c15193a5 in QEventLoop::exec (this=this@entry=0x7fa687986ae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa6c1415c5f in QThread::exec (this=this@entry=0x16b92b0) at thread/qthread.cpp:537
#7  0x00007fa6c14fa823 in QInotifyFileSystemWatcherEngine::run (this=0x16b92b0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fa6c141832f in QThreadPrivate::start (arg=0x16b92b0) at thread/qthread_unix.cpp:349
#9  0x00007fa6bb8b9182 in start_thread (arg=0x7fa687987700) at pthread_create.c:312
#10 0x00007fa6c063730d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fa6c6c17ac0 (LWP 2353)):
[KCrash Handler]
#6  0x00007fa6a9d0cda9 in sqlite3MemCompare (pMem1=pMem1@entry=0x7fff45e116d0, pMem2=<optimized out>, pColl=0x10ab0e8) at sqlite3.c:60484
#7  0x00007fa6a9d0cf63 in sqlite3VdbeRecordCompare (nKey1=71, pKey1=0x7fa69011fb5d, pPKey2=pPKey2@entry=0x7fff45e119d0) at sqlite3.c:64162
#8  0x00007fa6a9d21579 in sqlite3BtreeMovetoUnpacked (pCur=0x219fa5d0, pIdxKey=0x7fff45e119d0, intKey=0, biasRight=<optimized out>, pRes=0x7fff45e119c0) at sqlite3.c:55077
#9  0x00007fa6a9d499c5 in sqlite3VdbeExec (p=p@entry=0x2140a8a8) at sqlite3.c:70168
#10 0x00007fa6a9d51ed7 in sqlite3Step (p=0x2140a8a8) at sqlite3.c:64828
#11 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#12 0x00007fa6947d111c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x206c8aa0, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#13 0x00007fa6947d1e48 in QSQLiteResult::exec (this=0x1fcde200) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#14 0x00007fa6c683db7d in QSqlQuery::exec (this=this@entry=0x7fff45e11f08) at kernel/qsqlquery.cpp:949
#15 0x00007fa6c424aa26 in Digikam::DatabaseCoreBackend::exec (this=0x10a5630, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#16 0x00007fa6c424aaac in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x10a5630, query=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1056
#17 0x00007fa6c424bb50 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x10a5630, sql=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1005
#18 0x00007fa6c424bb99 in Digikam::DatabaseCoreBackend::execSql (this=0x10a5630, sql=..., boundValue1=..., values=values@entry=0x7fff45e11f50, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:902
#19 0x00007fa6c3c05820 in Digikam::AlbumDB::getItemsForUuid (this=0x109f3b0, uuid=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:2283
#20 0x00007fa6c3c89e85 in Digikam::ImageScanner::resolveHistoryImageId (historyId=...) at /build/buildd/digikam-3.5.0/core/libs/database/imagescanner.cpp:1208
#21 0x00007fa6c3cbacf4 in Digikam::ImageHistoryGraphData::addVertex (this=this@entry=0x1303640, imageId=...) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraph.cpp:253
#22 0x00007fa6c3cbb250 in Digikam::ImageHistoryGraphData::addVertex (this=this@entry=0x1303640, info=...) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraph.cpp:307
#23 0x00007fa6c3cbb301 in Digikam::ImageHistoryGraphData::addVertex (this=0x1303640, id=id@entry=194645) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraph.cpp:273
#24 0x00007fa6c3cbc202 in Digikam::ImageHistoryGraph::addRelations (this=this@entry=0x7fff45e12400, pairs=...) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraph.cpp:625
#25 0x00007fa6c3cbc841 in Digikam::ImageHistoryGraph::fromInfo (info=..., loadingMode=..., processingMode=processingMode@entry=Digikam::ImageHistoryGraph::PrepareForDisplay) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraph.cpp:503
#26 0x00007fa6c3ccced5 in Digikam::ImageHistoryGraphModel::setHistory (this=0x1eae790, subject=..., graph=...) at /build/buildd/digikam-3.5.0/core/libs/database/imagehistory/imagehistorygraphmodel.cpp:614
#27 0x00000000004bef47 in Digikam::VersionsWidget::setCurrentItem (this=0x1ea74a0, info=...) at /build/buildd/digikam-3.5.0/core/libs/widgets/imagehistory/versionswidget.cpp:212
#28 0x00000000004baf93 in Digikam::ImagePropertiesVersionsTab::setItem (this=0x1ea6730, info=..., history=...) at /build/buildd/digikam-3.5.0/core/libs/imageproperties/imagepropertiesversionstab.cpp:150
#29 0x00000000004a6d86 in Digikam::ImagePropertiesSideBarDB::slotChangedTab (this=this@entry=0x1b36060, tab=0x1ea6730) at /build/buildd/digikam-3.5.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:313
#30 0x00000000004a446a in Digikam::ImagePropertiesSideBarDB::itemChanged (this=this@entry=0x1b36060, infos=..., rect=..., img=img@entry=0x0, history=...) at /build/buildd/digikam-3.5.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:195
#31 0x00000000004a451c in Digikam::ImagePropertiesSideBarDB::itemChanged (this=0x1b36060, infos=...) at /build/buildd/digikam-3.5.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:171
#32 0x000000000065ee9e in Digikam::DigikamView::slotDispatchImageSelected (this=0x13577b0) at /build/buildd/digikam-3.5.0/core/digikam/views/digikamview.cpp:1279
#33 0x0000000000661f80 in Digikam::DigikamView::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/digikam/digikamview.moc:336
#34 0x00007fa6c152e87a in QMetaObject::activate (sender=0x213a800, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#35 0x00007fa6c1532a31 in QObject::event (this=0x213a800, e=<optimized out>) at kernel/qobject.cpp:1156
#36 0x00007fa6c1f0ce2c in QApplicationPrivate::notify_helper (this=this@entry=0xe40c10, receiver=receiver@entry=0x213a800, e=e@entry=0x7fff45e12b70) at kernel/qapplication.cpp:4567
#37 0x00007fa6c1f134a0 in QApplication::notify (this=this@entry=0x7fff45e13300, receiver=receiver@entry=0x213a800, e=e@entry=0x7fff45e12b70) at kernel/qapplication.cpp:4353
#38 0x00007fa6c2c17baa in KApplication::notify (this=0x7fff45e13300, receiver=0x213a800, event=0x7fff45e12b70) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007fa6c151a4dd in QCoreApplication::notifyInternal (this=0x7fff45e13300, receiver=0x213a800, event=0x7fff45e12b70) at kernel/qcoreapplication.cpp:953
#40 0x00007fa6c154a323 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QTimerInfoList::activateTimers (this=0xe3cff0) at kernel/qeventdispatcher_unix.cpp:621
#42 0x00007fa6c1547629 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#43 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:240
#44 0x00007fa6b90e0e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007fa6b90e1048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007fa6b90e10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007fa6c15477a1 in QEventDispatcherGlib::processEvents (this=0xd64860, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#48 0x00007fa6c1faebb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007fa6c15190af in QEventLoop::processEvents (this=this@entry=0x7fff45e12de0, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007fa6c15193a5 in QEventLoop::exec (this=this@entry=0x7fff45e12de0, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007fa6c151eb79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#52 0x00007fa6c1f0b37c in QApplication::exec () at kernel/qapplication.cpp:3828
#53 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 335529, bug 335297, bug 335260, bug 335234, bug 335226.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-30 12:43:13 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-08-27 03:44:56 UTC
Fixed with #329697