Bug 365098

Summary: Crash when sorting on import window
Product: [Applications] digikam Reporter: pbhj
Component: Import-SortAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, pbhj
Priority: NOR Keywords: drkonqi
Version: 4.14.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.1.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description pbhj 2016-07-05 09:14:18 UTC
Application: digikam (4.14.0)
KDE Platform Version: 4.14.15
Qt Version: 4.8.6
Operating System: Linux 4.2.0-36-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:
Sorting the images in the import window, they were filtered to JPEG/JFIF and then when choosing to group by folder the application crashed.

-- 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 0x7f10a399fb80 (LWP 9879))]

Thread 6 (Thread 0x7f1078a34700 (LWP 9880)):
#0  0x00007f109c35088d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f1082ee412c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f1098d8c6aa in start_thread (arg=0x7f1078a34700) at pthread_create.c:333
#3  0x00007f109c35be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f1071cb4700 (LWP 9881)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f109cec8286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x10adb40) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x10ada80, mutex=mutex@entry=0x10ada78, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000000000604864 in Digikam::ScanController::run (this=0x10b7dc0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/app/database/scancontroller.cpp:725
#4  0x00007f109cec7d1c in QThreadPrivate::start (arg=0x10b7dc0) at thread/qthread_unix.cpp:349
#5  0x00007f1098d8c6aa in start_thread (arg=0x7f1071cb4700) at pthread_create.c:333
#6  0x00007f109c35be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f10714b3700 (LWP 9882)):
#0  0x00007f109453f2d0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f109d00820e in QEventDispatcherGlib::processEvents (this=0x7f10640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#2  0x00007f109cfd60d1 in QEventLoop::processEvents (this=this@entry=0x7f10714b2a00, flags=...) at kernel/qeventloop.cpp:149
#3  0x00007f109cfd6445 in QEventLoop::exec (this=this@entry=0x7f10714b2a00, flags=...) at kernel/qeventloop.cpp:204
#4  0x00007f109cec54f9 in QThread::exec (this=this@entry=0x1173b80) at thread/qthread.cpp:538
#5  0x00007f109cfb6133 in QInotifyFileSystemWatcherEngine::run (this=0x1173b80) at io/qfilesystemwatcher_inotify.cpp:265
#6  0x00007f109cec7d1c in QThreadPrivate::start (arg=0x1173b80) at thread/qthread_unix.cpp:349
#7  0x00007f1098d8c6aa in start_thread (arg=0x7f10714b3700) at pthread_create.c:333
#8  0x00007f109c35be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f1070cb2700 (LWP 9885)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f109cec8286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x13a42f0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x11c7d10, mutex=mutex@entry=0x11c7d08, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f10a1530082 in Digikam::ParkingThread::run (this=0x11c7cf0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f109cec7d1c in QThreadPrivate::start (arg=0x11c7cf0) at thread/qthread_unix.cpp:349
#5  0x00007f1098d8c6aa in start_thread (arg=0x7f1070cb2700) at pthread_create.c:333
#6  0x00007f109c35be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f101b7fe700 (LWP 9956)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f109cec8286 in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x13f21520) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x154db7b8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000000000877ba4 in Digikam::CameraController::run (this=0x154b7c60) at /build/digikam-48Y6Xx/digikam-4.14.0/core/utilities/importui/backend/cameracontroller.cpp:401
#4  0x00007f109cec7d1c in QThreadPrivate::start (arg=0x154b7c60) at thread/qthread_unix.cpp:349
#5  0x00007f1098d8c6aa in start_thread (arg=0x7f101b7fe700) at pthread_create.c:333
#6  0x00007f109c35be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f10a399fb80 (LWP 9879)):
[KCrash Handler]
#6  QBasicAtomicInt::ref (this=0x48b380 <KComboBox::eventFilter(QObject*, QEvent*)@plt>) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#7  QString::QString (other=..., this=0x7ffe6f96a3d0) at /usr/include/qt4/QtCore/qstring.h:726
#8  Digikam::DigikamKCategorizedView::Private::visualRectInViewport (this=this@entry=0x154c55f0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:144
#9  0x00007f10a157082e in Digikam::DigikamKCategorizedView::Private::cacheIndex (this=0x154c55f0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:375
#10 0x00007f10a1570962 in Digikam::DigikamKCategorizedView::Private::cachedRectIndex (this=this@entry=0x154c55f0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:402
#11 0x00007f10a15709d6 in Digikam::DigikamKCategorizedView::Private::visualRect (this=this@entry=0x154c55f0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:424
#12 0x00007f10a1570be7 in Digikam::DigikamKCategorizedView::Private::intersectionSet (this=0x154c55f0, rect=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:98
#13 0x00007f10a1570e04 in Digikam::DigikamKCategorizedView::categorizedIndexesIn (this=0x154cea10, rect=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:762
#14 0x00007f10a157b6d0 in Digikam::DCategorizedView::Private::scrollPositionHint (this=0x154c56a0) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/dcategorizedview.cpp:109
#15 0x00007f10a157c3db in Digikam::DCategorizedView::layoutAboutToBeChanged (this=0x154cea10) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/dcategorizedview.cpp:562
#16 0x00007f109cfebf60 in QMetaObject::activate (sender=sender@entry=0x154c9120, m=m@entry=0x7f109d33b900 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3567
#17 0x00007f109d03c3b3 in QAbstractItemModel::layoutAboutToBeChanged (this=this@entry=0x154c9120) at .moc/release-shared/moc_qabstractitemmodel.cpp:182
#18 0x00007f109dfb4e62 in QSortFilterProxyModel::invalidate (this=this@entry=0x154c9120) at itemviews/qsortfilterproxymodel.cpp:2348
#19 0x00007f109e72d0d3 in KCategorizedSortFilterProxyModel::setCategorizedModel (this=this@entry=0x154c9120, categorizedModel=<optimized out>) at ../../kdeui/itemviews/kcategorizedsortfilterproxymodel.cpp:67
#20 0x00000000008ae9f7 in Digikam::ImportFilterModel::setCamItemSortSettings (this=0x154c9120, sorter=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/utilities/importui/models/importfiltermodel.cpp:313
#21 0x00000000008aea2a in Digikam::ImportFilterModel::setCategorizationMode (this=<optimized out>, mode=<optimized out>) at /build/digikam-48Y6Xx/digikam-4.14.0/core/utilities/importui/models/importfiltermodel.cpp:321
#22 0x00000000008b6f1c in Digikam::ImportView::slotGroupImages (this=<optimized out>, categoryMode=<optimized out>) at /build/digikam-48Y6Xx/digikam-4.14.0/core/utilities/importui/views/importview.cpp:791
#23 0x00000000008b856b in Digikam::ImportView::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/digikam-48Y6Xx/digikam-4.14.0/obj-x86_64-linux-gnu/core/utilities/importui/importview.moc:137
#24 0x00007f109cfebf60 in QMetaObject::activate (sender=sender@entry=0x157f2400, m=m@entry=0x7f109d3399e0 <QSignalMapper::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe6f96ab10) at kernel/qobject.cpp:3567
#25 0x00007f109cff512e in QSignalMapper::mapped (this=this@entry=0x157f2400, _t1=1) at .moc/release-shared/moc_qsignalmapper.cpp:114
#26 0x00007f109cff52b4 in QSignalMapper::map (this=0x157f2400, sender=0x157f3250) at kernel/qsignalmapper.cpp:266
#27 0x00007f109cfebf60 in QMetaObject::activate (sender=sender@entry=0x157f3250, m=m@entry=0x7f109e4e5dc0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffe6f96ac60) at kernel/qobject.cpp:3567
#28 0x00007f109d9eba42 in QAction::triggered (this=this@entry=0x157f3250, _t1=true) at .moc/release-shared/moc_qaction.cpp:276
#29 0x00007f109d9ecda3 in QAction::activate (this=this@entry=0x157f3250, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#30 0x00007f109de4c42d in QMenuPrivate::activateCausedStack (this=this@entry=0x157f19b0, causedStack=..., action=action@entry=0x157f3250, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1037
#31 0x00007f109de50829 in QMenuPrivate::activateAction (this=0x157f19b0, action=0x157f3250, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1129
#32 0x00007f109de545b7 in QMenu::mouseReleaseEvent (this=this@entry=0x157f07c0, e=e@entry=0x7ffe6f96b390) at widgets/qmenu.cpp:2371
#33 0x00007f109e825b83 in KMenu::mouseReleaseEvent (this=0x157f07c0, e=0x7ffe6f96b390) at ../../kdeui/widgets/kmenu.cpp:464
#34 0x00007f109da45e20 in QWidget::event (this=this@entry=0x157f07c0, event=event@entry=0x7ffe6f96b390) at kernel/qwidget.cpp:8775
#35 0x00007f109de54a9b in QMenu::event (this=0x157f07c0, e=0x7ffe6f96b390) at widgets/qmenu.cpp:2480
#36 0x00007f109d9f1cdc in QApplicationPrivate::notify_helper (this=this@entry=0xff0810, receiver=receiver@entry=0x157f07c0, e=e@entry=0x7ffe6f96b390) at kernel/qapplication.cpp:4570
#37 0x00007f109d9f8dd6 in QApplication::notify (this=this@entry=0x7ffe6f96bf40, receiver=receiver@entry=0x157f07c0, e=e@entry=0x7ffe6f96b390) at kernel/qapplication.cpp:4113
#38 0x00007f109e75ba2a in KApplication::notify (this=0x7ffe6f96bf40, receiver=0x157f07c0, event=0x7ffe6f96b390) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f109cfd785d in QCoreApplication::notifyInternal (this=0x7ffe6f96bf40, receiver=receiver@entry=0x157f07c0, event=event@entry=0x7ffe6f96b390) at kernel/qcoreapplication.cpp:955
#40 0x00007f109d9f83dd in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x157f07c0, event=event@entry=0x7ffe6f96b390, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x157f07c0, buttonDown=buttonDown@entry=0x7f109e51a318 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3178
#42 0x00007f109da743a2 in QETWidget::translateMouseEvent (this=this@entry=0x157f07c0, event=event@entry=0x7ffe6f96b6c0) at kernel/qapplication_x11.cpp:4566
#43 0x00007f109da73223 in QApplication::x11ProcessEvent (this=0x7ffe6f96bf40, event=event@entry=0x7ffe6f96b6c0) at kernel/qapplication_x11.cpp:3626
#44 0x00007f109da9cb52 in x11EventSourceDispatch (s=0xfe55e0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007f109453eff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f109453f250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f109453f2fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f109d0081ee in QEventDispatcherGlib::processEvents (this=0xfd7fd0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#49 0x00007f109da9cc26 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f109cfd60d1 in QEventLoop::processEvents (this=this@entry=0x7ffe6f96baa0, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f109cfd6445 in QEventLoop::exec (this=this@entry=0x7ffe6f96baa0, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f109cfdc429 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#53 0x00007f109d9eff2c in QApplication::exec () at kernel/qapplication.cpp:3828
#54 0x00000000004964ae in main (argc=<optimized out>, argv=<optimized out>) at /build/digikam-48Y6Xx/digikam-4.14.0/core/app/main/main.cpp:230

Reported using DrKonqi
Comment 1 caulier.gilles 2016-07-06 09:17:12 UTC

*** This bug has been marked as a duplicate of bug 345909 ***
Comment 2 pbhj 2016-11-08 17:49:02 UTC
Created attachment 102133 [details]
New crash information added by DrKonqi

digikam (4.14.0) on KDE Platform 4.14.16 using Qt 4.8.7

- What I was doing when the application crashed: attempted to alter the sort order on the import window to group by folders, crashed when making the selection from the menu.

-- Backtrace (Reduced):
#7  QString::QString (other=..., this=0x7ffdd7d3e110) at /usr/include/qt4/QtCore/qstring.h:726
#8  Digikam::DigikamKCategorizedView::Private::visualRectInViewport (this=this@entry=0x18257aa0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:144
#9  0x00007f2457d3d82e in Digikam::DigikamKCategorizedView::Private::cacheIndex (this=0x18257aa0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:375
#10 0x00007f2457d3d962 in Digikam::DigikamKCategorizedView::Private::cachedRectIndex (this=this@entry=0x18257aa0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:402
#11 0x00007f2457d3d9d6 in Digikam::DigikamKCategorizedView::Private::visualRect (this=this@entry=0x18257aa0, index=...) at /build/digikam-48Y6Xx/digikam-4.14.0/core/libs/widgets/itemview/digikamkcategorizedview.cpp:424
Comment 3 caulier.gilles 2020-07-26 08:18:26 UTC
Fixed with #345909