Bug 330976 - Crash after search for color label
Summary: Crash after search for color label
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Labels (show other bugs)
Version: 3.5.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-02-10 10:13 UTC by Marco Nolden
Modified: 2017-08-18 09:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Nolden 2014-02-10 10:13:27 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.12.6-300.fc20.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

I used advanced search to search for pictures with a color label (red, orange, yellow ...) Not sure how that's called in an English locale, I'm using a German version.

Maybe the error happended earlier, I also had a crash during tagging images. But now the crash is fully reproducible and happens always.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f135287eb00 (LWP 22762))]

Thread 6 (Thread 0x7f133f892700 (LWP 22778)):
#0  0x00000030a54e679d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00000030b2001e41 in ?? () from /usr/lib64/nvidia/tls/libnvidia-tls.so.331.38
#2  0x00000030ae15144d in read (__nbytes=102400, __buf=0x7f13387130f0, __fd=4) at /usr/include/bits/unistd.h:44
#3  qt_safe_read (maxlen=102400, data=0x7f13387130f0, fd=4) at ../../src/corelib/kernel/qcore_unix_p.h:276
#4  QFSFileEnginePrivate::readFdFh (this=this@entry=0x7f13386d8d30, data=data@entry=0x7f13387130f0 "\377\330\377\340", len=len@entry=102400) at io/qfsfileengine.cpp:649
#5  0x00000030ae1594bf in QFSFileEnginePrivate::nativeRead (this=0x7f13386d8d30, data=0x7f13387130f0 "\377\330\377\340", len=102400) at io/qfsfileengine_unix.cpp:514
#6  0x00000030ae1084ba in QFile::readData (this=<optimized out>, data=0x7f13387130f0 "\377\330\377\340", len=102400) at io/qfile.cpp:1751
#7  0x00000030ae10fb45 in QIODevice::read (this=this@entry=0x7f133f890e70, data=data@entry=0x7f13387130f0 "\377\330\377\340", maxSize=maxSize@entry=102400) at io/qiodevice.cpp:867
#8  0x000000385b395992 in Digikam::DImgLoader::uniqueHashV2 (filePath=..., img=0x7f13387057e0) at /usr/src/debug/digikam-3.5.0/core/libs/dimg/loaders/dimgloader.cpp:349
#9  0x000000385b372849 in Digikam::DImg::getUniqueHashV2 (this=0x7f13387057e0) at /usr/src/debug/digikam-3.5.0/core/libs/dimg/dimg.cpp:2890
#10 0x000000385bae1a85 in Digikam::ImageScanner::uniqueHash (this=this@entry=0x7f133f891040) at /usr/src/debug/digikam-3.5.0/core/libs/database/imagescanner.cpp:1508
#11 0x000000385baea618 in Digikam::ImageScanner::loadFromDisk (this=this@entry=0x7f133f891040) at /usr/src/debug/digikam-3.5.0/core/libs/database/imagescanner.cpp:1493
#12 0x000000385baea760 in Digikam::ImageScanner::newFile (this=this@entry=0x7f133f891040, albumId=albumId@entry=1613) at /usr/src/debug/digikam-3.5.0/core/libs/database/imagescanner.cpp:266
#13 0x000000385ba7ee98 in Digikam::CollectionScanner::scanNewFile (this=this@entry=0x7f133f891a90, info=..., albumId=1613) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1247
#14 0x000000385ba821bf in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7f133f891a90, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1089
#15 0x000000385ba82076 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7f133f891a90, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1112
#16 0x000000385ba82076 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7f133f891a90, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1112
#17 0x000000385ba82076 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7f133f891a90, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1112
#18 0x000000385ba82a33 in Digikam::CollectionScanner::scanAlbumRoot (this=this@entry=0x7f133f891a90, location=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:828
#19 0x000000385ba8368d in Digikam::CollectionScanner::completeScan (this=this@entry=0x7f133f891a90) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:489
#20 0x00000000005e2266 in Digikam::ScanController::run (this=0x215de00) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:756
#21 0x00000030ae07c3af in QThreadPrivate::start (arg=0x215de00) at thread/qthread_unix.cpp:338
#22 0x00000030a5807f33 in start_thread (arg=0x7f133f892700) at pthread_create.c:309
#23 0x00000030a54f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f133f091700 (LWP 22780)):
#0  __GI___pthread_mutex_lock (mutex=0x7f1330000a80) at ../nptl/pthread_mutex_lock.c:163
#1  0x00000030a708a5a1 in g_mutex_lock () from /lib64/libglib-2.0.so.0
#2  0x00000030a7048bf9 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#3  0x00000030a70494bb in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#4  0x00000030a70496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00000030ae1b2ec6 in QEventDispatcherGlib::processEvents (this=0x7f13300008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00000030ae182edf in QEventLoop::processEvents (this=this@entry=0x7f133f090a80, flags=...) at kernel/qeventloop.cpp:149
#7  0x00000030ae18322d in QEventLoop::exec (this=this@entry=0x7f133f090a80, flags=...) at kernel/qeventloop.cpp:204
#8  0x00000030ae079baf in QThread::exec (this=this@entry=0x21617d0) at thread/qthread.cpp:536
#9  0x00000030ae163863 in QInotifyFileSystemWatcherEngine::run (this=0x21617d0) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00000030ae07c3af in QThreadPrivate::start (arg=0x21617d0) at thread/qthread_unix.cpp:338
#11 0x00000030a5807f33 in start_thread (arg=0x7f133f091700) at pthread_create.c:309
#12 0x00000030a54f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f133e890700 (LWP 22827)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000030ae07c8d6 in wait (time=18446744073709551615, this=0x231f9b0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x22b19e0, mutex=mutex@entry=0x22b19d8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x000000385b56298a in Digikam::ParkingThread::run (this=0x22b19c0) at /usr/src/debug/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00000030ae07c3af in QThreadPrivate::start (arg=0x22b19c0) at thread/qthread_unix.cpp:338
#5  0x00000030a5807f33 in start_thread (arg=0x7f133e890700) at pthread_create.c:309
#6  0x00000030a54f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f1329005700 (LWP 22855)):
#0  0x00000030a708a2e6 in g_mutex_get_impl () from /lib64/libglib-2.0.so.0
#1  0x00000030a708a5c9 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#2  0x00000030a70496e6 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00000030ae1b2ec6 in QEventDispatcherGlib::processEvents (this=0x7f13140008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00000030ae182edf in QEventLoop::processEvents (this=this@entry=0x7f1329004a60, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000030ae18322d in QEventLoop::exec (this=this@entry=0x7f1329004a60, flags=...) at kernel/qeventloop.cpp:204
#6  0x000000385b561fe3 in Digikam::WorkerObjectRunnable::run (this=0xc8c3a70) at /usr/src/debug/digikam-3.5.0/core/libs/threads/threadmanager.cpp:196
#7  0x00000030ae06f88e in QThreadPoolThread::run (this=0x39d9820) at concurrent/qthreadpool.cpp:107
#8  0x00000030ae07c3af in QThreadPrivate::start (arg=0x39d9820) at thread/qthread_unix.cpp:338
#9  0x00000030a5807f33 in start_thread (arg=0x7f1329005700) at pthread_create.c:309
#10 0x00000030a54f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f13237fe700 (LWP 22858)):
#0  0x00000030a54ea9dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00000030a70495b4 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#2  0x00000030a70496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00000030ae1b2ec6 in QEventDispatcherGlib::processEvents (this=0x7f13100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x00000030ae182edf in QEventLoop::processEvents (this=this@entry=0x7f13237fda60, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000030ae18322d in QEventLoop::exec (this=this@entry=0x7f13237fda60, flags=...) at kernel/qeventloop.cpp:204
#6  0x000000385b561fe3 in Digikam::WorkerObjectRunnable::run (this=0xc8c3a40) at /usr/src/debug/digikam-3.5.0/core/libs/threads/threadmanager.cpp:196
#7  0x00000030ae06f88e in QThreadPoolThread::run (this=0x39ddf00) at concurrent/qthreadpool.cpp:107
#8  0x00000030ae07c3af in QThreadPrivate::start (arg=0x39ddf00) at thread/qthread_unix.cpp:338
#9  0x00000030a5807f33 in start_thread (arg=0x7f13237fe700) at pthread_create.c:309
#10 0x00000030a54f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f135287eb00 (LWP 22762)):
[KCrash Handler]
#6  Digikam::Album::id (this=0x0) at /usr/src/debug/digikam-3.5.0/core/digikam/album/album.cpp:253
#7  0x000000000054bd7c in Digikam::SearchFieldLabels::write (this=0xd017e10, writer=...) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchfields.cpp:2767
#8  0x0000000000545bd8 in Digikam::SearchFieldGroup::write (this=<optimized out>, writer=...) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchfieldgroup.cpp:100
#9  0x0000000000541127 in Digikam::SearchGroup::write (this=0x255c600, writer=...) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchgroup.cpp:332
#10 0x000000000053c4f7 in Digikam::AbstractSearchGroupContainer::writeGroups (this=this@entry=0xbd21bd0, writer=...) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchview.cpp:127
#11 0x000000000053e583 in Digikam::SearchView::write (this=0xbd21bd0) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchview.cpp:296
#12 0x000000000053b76c in search (this=0xc2c7150) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchwindow.cpp:127
#13 Digikam::SearchWindow::searchTryout (this=0xc2c7150) at /usr/src/debug/digikam-3.5.0/core/utilities/searchwindow/searchwindow.cpp:152
#14 0x00000030ae198cf8 in QMetaObject::activate (sender=0xbd21bd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#15 0x00000030ae198cf8 in QMetaObject::activate (sender=0xd262690, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#16 0x00000030ae198cf8 in QMetaObject::activate (sender=sender@entry=0xd17b6a0, m=m@entry=0x384bcc6e20 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffff7221780) at kernel/qobject.cpp:3547
#17 0x000000384b84b0f2 in QAbstractButton::clicked (this=this@entry=0xd17b6a0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:219
#18 0x000000384b58fac3 in QAbstractButtonPrivate::emitClicked (this=this@entry=0xd267740) at widgets/qabstractbutton.cpp:548
#19 0x000000384b590e77 in QAbstractButtonPrivate::click (this=this@entry=0xd267740) at widgets/qabstractbutton.cpp:541
#20 0x000000384b590f7c in QAbstractButton::mouseReleaseEvent (this=0xd17b6a0, e=0x7ffff7221ce0) at widgets/qabstractbutton.cpp:1123
#21 0x000000384b21cc58 in QWidget::event (this=0xd17b6a0, event=0x7ffff7221ce0) at kernel/qwidget.cpp:8376
#22 0x000000384b1c9d8c in QApplicationPrivate::notify_helper (this=0x1d7e680, receiver=0xd17b6a0, e=0x7ffff7221ce0) at kernel/qapplication.cpp:4562
#23 0x000000384b1d0879 in QApplication::notify (this=this@entry=0x7ffff7223080, receiver=receiver@entry=0xd17b6a0, e=e@entry=0x7ffff7221ce0) at kernel/qapplication.cpp:4105
#24 0x000000384f04a7da in KApplication::notify (this=0x7ffff7223080, receiver=0xd17b6a0, event=0x7ffff7221ce0) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#25 0x00000030ae18439d in QCoreApplication::notifyInternal (this=0x7ffff7223080, receiver=0xd17b6a0, event=0x7ffff7221ce0) at kernel/qcoreapplication.cpp:949
#26 0x000000384b1cffa7 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0xd17b6a0, event=event@entry=0x7ffff7221ce0, alienWidget=alienWidget@entry=0xd17b6a0, nativeWidget=nativeWidget@entry=0xc2c7150, buttonDown=buttonDown@entry=0x384bcd9258 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#27 0x000000384b2456ab in QETWidget::translateMouseEvent (this=this@entry=0xc2c7150, event=event@entry=0x7ffff7222050) at kernel/qapplication_x11.cpp:4538
#28 0x000000384b24411c in QApplication::x11ProcessEvent (this=0x7ffff7223080, event=event@entry=0x7ffff7222050) at kernel/qapplication_x11.cpp:3661
#29 0x000000384b26bb24 in x11EventSourceDispatch (s=0x1d7f940, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#30 0x00000030a70492a6 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#31 0x00000030a7049628 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#32 0x00000030a70496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#33 0x00000030ae1b2ea5 in QEventDispatcherGlib::processEvents (this=0x1cdfd80, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#34 0x000000384b26bca6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#35 0x00000030ae182edf in QEventLoop::processEvents (this=this@entry=0x219e1c0, flags=...) at kernel/qeventloop.cpp:149
#36 0x00000030ae18322d in QEventLoop::exec (this=0x219e1c0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00000000005ddb55 in Digikam::ScanController::completeCollectionScanCore (this=0x215de00, needTotalFiles=needTotalFiles@entry=true, defer=defer@entry=false) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:486
#38 0x00000000005ddc7e in Digikam::ScanController::completeCollectionScanInBackground (this=<optimized out>, defer=defer@entry=false) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:471
#39 0x000000000051e01a in Digikam::NewItemsFinder::slotStart (this=0x2582c60) at /usr/src/debug/digikam-3.5.0/core/utilities/maintenance/newitemsfinder.cpp:106
#40 0x00000030ae19d27e in QObject::event (this=0x2582c60, e=<optimized out>) at kernel/qobject.cpp:1194
#41 0x000000384b1c9d8c in QApplicationPrivate::notify_helper (this=0x1d7e680, receiver=0x2582c60, e=0x215ea00) at kernel/qapplication.cpp:4562
#42 0x000000384b1d0725 in QApplication::notify (this=this@entry=0x7ffff7223080, receiver=receiver@entry=0x2582c60, e=e@entry=0x215ea00) at kernel/qapplication.cpp:4348
#43 0x000000384f04a7da in KApplication::notify (this=0x7ffff7223080, receiver=0x2582c60, event=0x215ea00) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#44 0x00000030ae18439d in QCoreApplication::notifyInternal (this=0x7ffff7223080, receiver=receiver@entry=0x2582c60, event=event@entry=0x215ea00) at kernel/qcoreapplication.cpp:949
#45 0x00000030ae187485 in sendEvent (event=0x215ea00, receiver=0x2582c60) at kernel/qcoreapplication.h:231
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1cde840) at kernel/qcoreapplication.cpp:1573
#47 0x00000030ae187923 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1466
#48 0x00000030ae1b3623 in sendPostedEvents () at kernel/qcoreapplication.h:236
#49 postEventSourceDispatch (s=0x1d75fc0) at kernel/qeventdispatcher_glib.cpp:280
#50 0x00000030a70492a6 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#51 0x00000030a7049628 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#52 0x00000030a70496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#53 0x00000030ae1b2ea5 in QEventDispatcherGlib::processEvents (this=0x1cdfd80, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#54 0x000000384b26bca6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#55 0x00000030ae182edf in QEventLoop::processEvents (this=this@entry=0x7ffff7222b50, flags=...) at kernel/qeventloop.cpp:149
#56 0x00000030ae18322d in QEventLoop::exec (this=this@entry=0x7ffff7222b50, flags=...) at kernel/qeventloop.cpp:204
#57 0x00000030ae188749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#58 0x000000384b1c83fc in QApplication::exec () at kernel/qapplication.cpp:3823
#59 0x00000000004922bd in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/digikam-3.5.0/core/digikam/main/main.cpp:235

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-16 07:30:21 UTC
digiKam 4.0.0 is out :

http://www.digikam.org/node/713

Please check if this entry still valid with this new version.

Thanks in advance

Gilles Caulier
Comment 2 caulier.gilles 2014-07-18 08:00:48 UTC
Problem is not reproducible here.

In 4.2.0, a new Label tree-view permit to show all images which have a labels assigned to database. It's a shortcut of Advanced Search tools for labels. We have tested a lots all possibilities, and crash do not appears.

See here for details :

http://mohamedanwer.wordpress.com/2014/07/02/what-have-been-done-so-far-with-digikam/#comments

Gilles Caulier