Bug 461067

Summary: digiKam occasionally crashes when deleting photos
Product: [Applications] digikam Reporter: Hieu Van <hieutv2211>
Component: Albums-IconViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR Keywords: drkonqi
Version: 7.7.0   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In: 7.9.0
Sentry Crash Report:

Description Hieu Van 2022-10-27 13:58:03 UTC
Application: digikam (7.7.0)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 6.0.0-1-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux bookworm/sid
DrKonqi: 5.26.0 [KCrashBackend]

-- Information about the crash:
digiKam occasionally crashes when deleting photos for no apparent reason

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f0598441d4b in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007f0598446091 in QTreeView::drawTree(QPainter*, QRegion const&) const () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007f059844c704 in QTreeView::paintEvent(QPaintEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007f05981a4ce8 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f059825025e in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f05974b149b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f0598162f4e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f05974b1718 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f059819d045 in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f059819d901 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f059819ec06 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f059819ea69 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f059819ea69 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f059819ea69 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f059819d57c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f059819ec06 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f059819ea69 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f059819d57c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f059819ec06 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f059819d57c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f059817425d in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f0598174a5a in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f05981c116c in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f0598162f5e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007f05974b1718 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f059793e8cd in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007f0597911e1c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#31 0x00007f057dafc0fa in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#32 0x00007f058aa69739 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f058aa699c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f058aa69a5c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f05975094b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f05974b019b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00007f059836b5d7 in QDialog::exec() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f0599ce60d3 in  () at /usr/lib/digikam/libdigikamgui.so.7.7.0
#39 0x00007f0599c48153 in Digikam::ItemViewUtilities::deleteImages(QList<Digikam::ItemInfo> const&, Digikam::ItemViewUtilities::DeleteMode) () at /usr/lib/digikam/libdigikamgui.so.7.7.0
#40 0x00007f0599c3a45f in  () at /usr/lib/digikam/libdigikamgui.so.7.7.0
#41 0x00007f05974e8cdc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f059815c782 in QAction::triggered(bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f059815f3ab in QAction::activate(QAction::ActionEvent) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007f059815ff7d in QAction::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f0598162f5e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007f05974b1718 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007f059796c9db in QShortcutMap::dispatchEvent(QKeyEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#48 0x00007f059796d32b in QShortcutMap::tryShortcut(QKeyEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#49 0x00007f05979154e6 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#50 0x00007f059793939d in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#51 0x00007f0597911e1c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#52 0x00007f057dafc0fa in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#53 0x00007f058aa69739 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007f058aa699c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007f058aa69a5c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007f05975094b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#57 0x00007f05974b019b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#58 0x00007f05974b8306 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#59 0x000055fd7ee0b0f4 in  ()
#60 0x00007f0596a2920a in __libc_start_call_main (main=main@entry=0x55fd7ee09f60, argc=argc@entry=3, argv=argv@entry=0x7ffe7391d3f8) at ../sysdeps/nptl/libc_start_call_main.h:58
#61 0x00007f0596a292bc in __libc_start_main_impl (main=0x55fd7ee09f60, argc=3, argv=0x7ffe7391d3f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe7391d3e8) at ../csu/libc-start.c:389
#62 0x000055fd7ee0bad1 in  ()
[Inferior 1 (process 8580) detached]

Reported using DrKonqi
Comment 1 Maik Qualmann 2022-10-27 14:01:12 UTC

*** This bug has been marked as a duplicate of bug 457693 ***
Comment 2 caulier.gilles 2022-10-27 14:35:46 UTC
Problem have already reported and fixed in digiKam 7.8.0.

Best

Gilles Caulier
Comment 3 caulier.gilles 2022-11-24 07:16:22 UTC
Fixed with #457693