Summary: | digikam crashes if trying to delete selection of multiple files | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Thomas Bettler <thomas.bettler> |
Component: | Albums-IconView | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | caulier.gilles, hieutv2211, metzpinguin, mg, rjwgnr27 |
Priority: | NOR | Keywords: | drkonqi |
Version: | 7.7.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/digikam/commit/1bb4665a9be5c23988e3286fc2034bc059e70d4d | Version Fixed In: | 7.8.0 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Thomas Bettler
2022-08-09 20:09:52 UTC
Is the worm in Gentoo? See today's Bug 457662. It crashes in the trash dialog, very strange. Maik Created attachment 151206 [details]
New crash information added by DrKonqi
digikam (7.7.0) using Qt 5.15.5
I've Digikam installed in openSUSE Tumbleweed from OSS repos. Crashes after trying to delete two selected files.
-- Backtrace (Reduced):
#4 0x00007f66e31f482b in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () from /lib64/libQt5Widgets.so.5
#5 0x00007f66e31f87f9 in QTreeView::drawTree(QPainter*, QRegion const&) const () from /lib64/libQt5Widgets.so.5
#6 0x00007f66e31ff234 in QTreeView::paintEvent(QPaintEvent*) () from /lib64/libQt5Widgets.so.5
#7 0x00007f66e2f57c68 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#8 0x00007f66e300359e in QFrame::event(QEvent*) () from /lib64/libQt5Widgets.so.5
Ok this is really weird now, I used the dialog a lot a few days ago. I can reproduce the crash on about every second call. Tested here with digiKam-8.0.0 from git/master. It crashes really deep into Qt (openSUSE Tumbleweed). Maik It crashes in this Qt function QTreeWidget::drawRow(): https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/dialogs/deletedialog.cpp#L230 Maik And it's reproducible with both 8 and 7 versions ? Gilles Comment 2 user can reproduce it with digiKam-7.7.0 from openSUSE's repros. Since Gentoo and Tumbleweed are very current, I suspect it is related to a recent update of Qt-5.15.5. I'll see if I can find a workaround tonight. Maik Git commit 1bb4665a9be5c23988e3286fc2034bc059e70d4d by Maik Qualmann. Committed on 10/08/2022 at 10:47. Pushed by mqualmann into branch 'qt5-maintenance'. fix strange crash in recent Qt-5.15.5 if uniform row heights not set FIXED-IN: 7.8.0 M +2 -1 NEWS M +1 -0 core/libs/dialogs/deletedialog.cpp https://invent.kde.org/graphics/digikam/commit/1bb4665a9be5c23988e3286fc2034bc059e70d4d great THX, the patch fixes it for my case. Git commit 8bb5ef5f4dce76392e824459748dfa24f5e32b6d by Maik Qualmann. Committed on 17/08/2022 at 06:20. Pushed by mqualmann into branch 'qt5-maintenance'. set uniform row heights to all possible QTreeWidgets This is a workaround for a bug in Qt-5.15.5 Related: bug 457972 FIXED-IN: 7.8.0 M +2 -1 NEWS M +2 -1 core/dplugins/generic/tools/expoblending/blendingdlg/bracketstack.cpp M +2 -1 core/dplugins/generic/tools/expoblending/blendingdlg/enfusestack.cpp M +1 -0 core/libs/dimg/filters/hotpixels/blackframelistview.cpp M +1 -0 core/libs/dplugins/setup/dpluginconfview.cpp M +1 -0 core/libs/dplugins/widgets/ditemslist_view.cpp M +1 -0 core/libs/progressmanager/dhistoryview.cpp M +2 -1 core/libs/template/templatelist.cpp M +2 -1 core/libs/widgets/files/dbinarysearch.cpp M +1 -0 core/libs/widgets/metadata/config/metadataselector.cpp M +1 -0 core/libs/widgets/metadata/exiftool/exiftoollistview.cpp M +1 -0 core/libs/widgets/metadata/exiv2/metadatalistview.cpp M +1 -0 core/showfoto/folderview/showfotofolderviewbookmarklist.cpp M +1 -0 core/showfoto/stackview/showfotostackviewfavoritelist.cpp M +4 -3 core/showfoto/stackview/showfotostackviewlist.cpp M +1 -0 core/tests/geolocation/geoiface/demo/mytreewidget.cpp M +3 -2 core/utilities/advancedrename/parser/options/database/dbkeyselector.cpp M +3 -3 core/utilities/fuzzysearch/findduplicatesalbum.cpp M +3 -2 core/utilities/import/dialogs/cameramessagebox.cpp M +3 -2 core/utilities/import/views/camerafolderview.cpp M +2 -1 core/utilities/queuemanager/views/assignedlist.cpp M +6 -5 core/utilities/queuemanager/views/queuelist.cpp M +1 -0 core/utilities/queuemanager/views/toolslistview.cpp M +2 -1 core/utilities/queuemanager/views/workflowlist.cpp https://invent.kde.org/graphics/digikam/commit/8bb5ef5f4dce76392e824459748dfa24f5e32b6d Git commit f7843a237932589656c73d6bd226f6c554a3a8e9 by Maik Qualmann. Committed on 17/08/2022 at 17:23. Pushed by mqualmann into branch 'qt5-maintenance'. set uniform row heights also to QTreeViews Related: bug 457972 M +2 -1 core/app/views/tableview/tableview_treeview.cpp M +1 -0 core/libs/dialogs/dconfigdlgview_p.cpp M +1 -0 core/libs/properties/history/versionstreeview.cpp M +1 -0 core/libs/tags/manager/models/tagmngrlistview.cpp M +1 -0 core/showfoto/folderview/showfotofolderviewlist.cpp M +1 -1 core/utilities/geolocation/geoiface/items/gpsitemlist.cpp M +2 -1 core/utilities/setup/collections/setupcollectionview.cpp https://invent.kde.org/graphics/digikam/commit/f7843a237932589656c73d6bd226f6c554a3a8e9 Created attachment 151934 [details]
New crash information added by DrKonqi
digikam (7.7.0) using Qt 5.15.5
Marked two items in the thumbnail view, then pressed the "Delete Key", resulting in this crash. Happens frequently, but not always.
-- Backtrace (Reduced):
#4 0x00007efd7369966f in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () at /lib64/libQt5Widgets.so.5
#5 0x00007efd7369da49 in QTreeView::drawTree(QPainter*, QRegion const&) const () at /lib64/libQt5Widgets.so.5
#6 0x00007efd736a4168 in QTreeView::paintEvent(QPaintEvent*) () at /lib64/libQt5Widgets.so.5
#7 0x00007efd733f1828 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#8 0x00007efd7349e512 in QFrame::event(QEvent*) () at /lib64/libQt5Widgets.so.5
Yes, we know the crash. It crashes deep into Qt, not digiKam. In digiKam-7.8.0 we have a workaround to avoid the crash. Maik *** Bug 461067 has been marked as a duplicate of this bug. *** |