Bug 447437 - Digikam::ImageQualityThread always crashing on macOS 12.1
Summary: Digikam::ImageQualityThread always crashing on macOS 12.1
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Quality (show other bugs)
Version: 7.4.0
Platform: Homebrew (macOS) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-23 17:35 UTC by alex.kornilov3
Modified: 2021-12-28 13:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex.kornilov3 2021-12-23 17:35:46 UTC
I wish to analyze about 100K pics for "Image Quality". But this always
crashing.

https://cryptpad.fr/code/#/2/code/view/SvMcgUzdH0fluUq4u4cZn76p39eKEtJy4yOE-bEPk08/embed/

Comment from mailing list:


It's clear, it crash in OPenCV library used by Image Quality algorithm :

Application Specific Information: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.1) /Users/gilles/Documents/7.x/project/bundles/macports/temp.build/ext_opencv/ext_opencv-prefix/src/ext_opencv/modules/core/src/matrix.cpp:811: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat' abort() called

It's an exception. This one must be caught in digiKam code. Please report this problem in digiKam bugzilla, will be take a look later
Comment 1 Maik Qualmann 2021-12-23 21:23:47 UTC
Git commit fe00ef75a6c6857fd2d26c36f8719fca0908c653 by Maik Qualmann.
Committed on 23/12/2021 at 21:22.
Pushed by mqualmann into branch 'master'.

this could cause a double delete.
We pass QObject a parent pointer.

M  +4    -3    core/libs/dimg/filters/imgqsort/imagequalitythread.cpp

https://invent.kde.org/graphics/digikam/commit/fe00ef75a6c6857fd2d26c36f8719fca0908c653
Comment 2 Maik Qualmann 2021-12-24 14:09:23 UTC
A new pre-release digiKam-7.5.0 MacOS bundle is available with the change. Can you please test whether the problem can still be reproduced?

https://files.kde.org/digikam/

Maik
Comment 3 caulier.gilles 2021-12-28 13:14:21 UTC
Maik, 

I processed my collection of photo from my MacBook Pro under last stable MacOS Big Sur, and there is no reproducible crash.

Gilles