Bug 274487

Summary: digiKam2.0-beta5 crashes after closing it
Product: [Applications] digikam Reporter: terri.bugs
Component: Database-AlbumsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.3.0
Sentry Crash Report:

Description terri.bugs 2011-05-30 01:16:11 UTC
Application: digikam (2.0.0-beta5)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:
I closed the digiKam window (and the application) from the top right corner. Before closing I had been using face regocnition in assigning tags to images, usually confirming multiple faces at a time. I also moved few images inside digiKam from album to another. 

This crash is similar to bug 266086, which was filed against beta2, in that it occured after closing digikam. Haven't tried reproducing yet.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fbf31f7da20 (LWP 19822))]

Thread 7 (Thread 0x7fbf0f4b7700 (LWP 19823)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbf2a63982b in wait (this=<value optimized out>, mutex=0x1c492f8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1c492f8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005bf1f8 in Digikam::ScanController::run (this=0x1c49060) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/database/scancontroller.cpp:602
#4  0x00007fbf2a639175 in QThreadPrivate::start (arg=0x1c49060) at thread/qthread_unix.cpp:320
#5  0x00007fbf29310d8c in start_thread (arg=0x7fbf0f4b7700) at pthread_create.c:304
#6  0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fbf0ecb6700 (LWP 19824)):
#0  0x00007fbf29600f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbf23744104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbf23744639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbf2a74b446 in QEventDispatcherGlib::processEvents (this=0x1c5dc70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbf2a71f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbf2a71fabc in QEventLoop::exec (this=0x7fbf0ecb5b30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fbf2a636924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fbf2a701c2f in QInotifyFileSystemWatcherEngine::run (this=0x1c5b3e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbf2a639175 in QThreadPrivate::start (arg=0x1c5b3e0) at thread/qthread_unix.cpp:320
#9  0x00007fbf29310d8c in start_thread (arg=0x7fbf0ecb6700) at pthread_create.c:304
#10 0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fbf0e4b5700 (LWP 19826)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fbf2a63982b in wait (this=<value optimized out>, mutex=0x1eeaf68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1eeaf68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fbf2ea97db7 in Digikam::ParkingThread::run (this=0x1eeaf50) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threads/threadmanager.cpp:119
#4  0x00007fbf2a639175 in QThreadPrivate::start (arg=0x1eeaf50) at thread/qthread_unix.cpp:320
#5  0x00007fbf29310d8c in start_thread (arg=0x7fbf0e4b5700) at pthread_create.c:304
#6  0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fbf0cab3700 (LWP 19827)):
#0  0x00007fbf23743613 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fbf23744122 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbf23744639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbf2a74b446 in QEventDispatcherGlib::processEvents (this=0x211a990, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbf2a71f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbf2a71fabc in QEventLoop::exec (this=0x7fbf0cab2b30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fbf2a636924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fbf2a701c2f in QInotifyFileSystemWatcherEngine::run (this=0x2116e30) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbf2a639175 in QThreadPrivate::start (arg=0x2116e30) at thread/qthread_unix.cpp:320
#9  0x00007fbf29310d8c in start_thread (arg=0x7fbf0cab3700) at pthread_create.c:304
#10 0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fbefa05c700 (LWP 19883)):
#0  0x00007fbf29600f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fbf23744104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbf23744639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbf2a74b446 in QEventDispatcherGlib::processEvents (this=0x37fcea0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fbf2a71f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fbf2a71fabc in QEventLoop::exec (this=0x7fbefa05bb30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fbf2a636924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fbf2a701c2f in QInotifyFileSystemWatcherEngine::run (this=0x2f39290) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fbf2a639175 in QThreadPrivate::start (arg=0x2f39290) at thread/qthread_unix.cpp:320
#9  0x00007fbf29310d8c in start_thread (arg=0x7fbefa05c700) at pthread_create.c:304
#10 0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fbee8cc2700 (LWP 20360)):
#0  0x00007fbf296064ad in fdatasync () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fbf151c12d9 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#2  0x00007fbf151e461e in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#3  0x00007fbf151f3529 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#4  0x00007fbf152011b9 in ?? () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#5  0x00007fbf15205290 in sqlite3_step () from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
#6  0x00007fbf0d48dc7d in QSQLiteResultPrivate::fetchNext (this=0x7fbed0b3d0e0, values=..., idx=0, initialFetch=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:209
#7  0x00007fbf0d48ea9f in QSQLiteResult::exec (this=0x7fbf08026050) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:410
#8  0x00007fbf31b9cf15 in QSqlQuery::exec (this=0x7fbee8cc1398) at kernel/qsqlquery.cpp:943
#9  0x00007fbf2ea3060e in Digikam::DatabaseCoreBackend::exec (this=<value optimized out>, query=...) at /build/buildd/digikam2-2.0.0~beta5/core/libs/database/databasecorebackend.cpp:1404
#10 0x00007fbf2ea307fb in Digikam::DatabaseCoreBackend::execQuery (this=0x1c90b50, query=..., boundValue1=<value optimized out>, boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam2-2.0.0~beta5/core/libs/database/databasecorebackend.cpp:1076
#11 0x00007fbf2ea3086a in Digikam::DatabaseCoreBackend::execQuery (this=0x1c90b50, sql=<value optimized out>, boundValue1=..., boundValue2=..., boundValue3=..., boundValue4=...) at /build/buildd/digikam2-2.0.0~beta5/core/libs/database/databasecorebackend.cpp:1021
#12 0x00007fbf2ea32725 in Digikam::DatabaseCoreBackend::execSql (this=0x1c90b50, sql=<value optimized out>, boundValue1=<value optimized out>, boundValue2=<value optimized out>, boundValue3=<value optimized out>, boundValue4=<value optimized out>, values=0x0, lastInsertId=0x7fbee8cc1430) at /build/buildd/digikam2-2.0.0~beta5/core/libs/database/databasecorebackend.cpp:920
#13 0x00007fbf2ea3da73 in Digikam::ThumbnailDB::insertThumbnail (this=0x1cbb980, info=..., lastInsertId=0x7fbee8cc14a0) at /build/buildd/digikam2-2.0.0~beta5/core/libs/database/thumbnaildb.cpp:262
#14 0x00007fbf2ea70ec8 in Digikam::ThumbnailCreator::storeInDatabase (this=<value optimized out>, info=..., image=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threadimageio/thumbnailcreator.cpp:755
#15 0x00007fbf2ea76623 in Digikam::ThumbnailCreator::load (this=0x1ff3560, path=..., rect=..., pregenerate=true) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threadimageio/thumbnailcreator.cpp:264
#16 0x00007fbf2ea7742d in Digikam::ThumbnailCreator::pregenerate (this=<value optimized out>, path=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threadimageio/thumbnailcreator.cpp:180
#17 0x00007fbf2ea864f0 in Digikam::ThumbnailLoadingTask::execute (this=0x9ab5a60) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threadimageio/thumbnailtask.cpp:79
#18 0x00007fbf2ea59136 in Digikam::LoadSaveThread::run (this=0x1fee730) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threadimageio/loadsavethread.cpp:117
#19 0x00007fbf2ea993be in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x1feab50) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threads/dynamicthread.cpp:328
#20 0x00007fbf2a62e188 in QThreadPoolThread::run (this=0x677d420) at concurrent/qthreadpool.cpp:106
#21 0x00007fbf2a639175 in QThreadPrivate::start (arg=0x677d420) at thread/qthread_unix.cpp:320
#22 0x00007fbf29310d8c in start_thread (arg=0x7fbee8cc2700) at pthread_create.c:304
#23 0x00007fbf2960e04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#24 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbf31f7da20 (LWP 19822)):
[KCrash Handler]
#6  QHashData::free_helper (this=0x3d33020, node_delete=0x55de70 <QHash<int, QHashDummyValue>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:270
#7  0x000000000055c74e in freeData (this=0x2a22d90, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:568
#8  ~QHash (this=0x2a22d90, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:284
#9  ~QSet (this=0x2a22d90, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qset.h:55
#10 ~AbstractCountingAlbumModel (this=0x2a22d90, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/digikam/../../../core/libs/models/abstractalbummodel.h:219
#11 Digikam::AbstractCheckableAlbumModel::~AbstractCheckableAlbumModel (this=0x2a22d90, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/models/abstractalbummodel.cpp:839
#12 0x0000000000560cb0 in ~TagModel (this=0x2a22d90, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/digikam/../../../core/libs/models/albummodel.h:57
#13 Digikam::TagModel::~TagModel (this=0x2a22d90, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/digikam/../../../core/libs/models/albummodel.h:57
#14 0x00007fbf2a732c14 in QObjectPrivate::deleteChildren (this=0x2996380) at kernel/qobject.cpp:1964
#15 0x00007fbf2b383ee2 in QWidget::~QWidget (this=0x2996210, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#16 0x00000000004a4a3a in Digikam::ImageDescEditTab::~ImageDescEditTab (this=0x2996210, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/imageproperties/imagedescedittab.cpp:413
#17 0x00000000004a4ad9 in Digikam::ImageDescEditTab::~ImageDescEditTab (this=0x2996210, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/imageproperties/imagedescedittab.cpp:437
#18 0x00007fbf2a732c14 in QObjectPrivate::deleteChildren (this=0x2775d70) at kernel/qobject.cpp:1964
#19 0x00007fbf2b383ee2 in QWidget::~QWidget (this=0x2131ef0, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#20 0x00007fbf2b793409 in QStackedWidget::~QStackedWidget (this=0x2131ef0, __in_chrg=<value optimized out>) at widgets/qstackedwidget.cpp:151
#21 0x00007fbf2a732c14 in QObjectPrivate::deleteChildren (this=0x1df61d0) at kernel/qobject.cpp:1964
#22 0x00007fbf2b383ee2 in QWidget::~QWidget (this=0x1ce3050, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#23 0x00007fbf2ead172c in Digikam::SidebarSplitter::~SidebarSplitter (this=0x1ce3050, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/widgets/common/sidebar.cpp:495
#24 0x00007fbf2ead1779 in Digikam::SidebarSplitter::~SidebarSplitter (this=0x1ce3050, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/libs/widgets/common/sidebar.cpp:504
#25 0x00007fbf2a732c14 in QObjectPrivate::deleteChildren (this=0x1e558b0) at kernel/qobject.cpp:1964
#26 0x00007fbf2b383ee2 in QWidget::~QWidget (this=0x1c77170, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1631
#27 0x000000000063fca9 in Digikam::DigikamView::~DigikamView (this=0x1c77170, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/views/digikamview.cpp:293
#28 0x000000000056b26c in Digikam::DigikamApp::~DigikamApp (this=0x1e08750, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/main/digikamapp.cpp:313
#29 0x000000000056b6d9 in Digikam::DigikamApp::~DigikamApp (this=0x1e08750, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/main/digikamapp.cpp:338
#30 0x00007fbf2a7344c8 in QObject::event (this=0x1e08750, e=<value optimized out>) at kernel/qobject.cpp:1209
#31 0x00007fbf2b38866d in QWidget::event (this=0x1e08750, event=0x94d1720) at kernel/qwidget.cpp:8718
#32 0x00007fbf2b75251b in QMainWindow::event (this=0x1e08750, event=0x94d1720) at widgets/qmainwindow.cpp:1480
#33 0x00007fbf2c151d8e in KXmlGuiWindow::event (this=0x1e08750, ev=0x94d1720) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#34 0x00007fbf2b3379e4 in QApplicationPrivate::notify_helper (this=0x1b6b310, receiver=0x1e08750, e=0x94d1720) at kernel/qapplication.cpp:4462
#35 0x00007fbf2b33c3aa in QApplication::notify (this=<value optimized out>, receiver=0x1e08750, e=0x94d1720) at kernel/qapplication.cpp:4341
#36 0x00007fbf2c056866 in KApplication::notify (this=0x7fff762f6c50, receiver=0x1e08750, event=0x94d1720) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007fbf2a72049c in QCoreApplication::notifyInternal (this=0x7fff762f6c50, receiver=0x1e08750, event=0x94d1720) at kernel/qcoreapplication.cpp:731
#38 0x00007fbf2a723c25 in sendEvent (receiver=0x0, event_type=0, data=0x1ae3c30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1ae3c30) at kernel/qcoreapplication.cpp:1372
#40 0x00007fbf2a74b253 in sendPostedEvents (s=0x1b691c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#41 postEventSourceDispatch (s=0x1b691c0) at kernel/qeventdispatcher_glib.cpp:277
#42 0x00007fbf23743bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007fbf237443a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fbf23744639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007fbf2a74b3ef in QEventDispatcherGlib::processEvents (this=0x1ae33d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#46 0x00007fbf2b3dedfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007fbf2a71f882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007fbf2a71fabc in QEventLoop::exec (this=0x7fff762f6aa0, flags=...) at kernel/qeventloop.cpp:201
#49 0x00007fbf2a723ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#50 0x0000000000693484 in main (argc=1, argv=0x7fff762f7498) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/main/main.cpp:232

Possible duplicates by query: bug 250815.

Reported using DrKonqi
Comment 1 caulier.gilles 2011-06-08 15:03:04 UTC
Can you try with beta6 ?

Gilles Caulier
Comment 2 caulier.gilles 2011-07-02 10:02:21 UTC
digiKam 2.0.0 RC is out. Please check if crash is reproducible with this version.

Thanks in advance

Gilles Caulier
Comment 3 caulier.gilles 2011-11-03 12:42:22 UTC
digiKam 2.2.0 is out since few weeks. Crash still valid with this version ?

Gilles Caulier
Comment 4 terri.bugs 2011-11-05 20:31:54 UTC
Can't tell if the crash is still valid as I haven't been using face recognition, because it doesn't work correctly on any of my systems. You can close this bug.