Digikam crashes when starting to scan faces with Qt6 error

I also have this problem with an image (Ratio of 52) on a big collection. I found several bug reports with crashes. Is there already a report for this?

I found the problem in FacePipelineDetectRecognize::extractor there the detectionResults have X and Y of lower limit of Integer which comes from opencv library. I created a solution or workaround for me which working:

diff --git a/core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp b/core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
index 43d6ba65d1..3d54c14f1b 100644
--- a/core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
+++ b/core/utilities/facemanagement/pipelines/detectrecognize/facepipelinedetectrecognize.cpp
@@ -415,6 +415,10 @@ bool FacePipelineDetectRecognize::extractor()
                 int width   = static_cast<int>(detectionResults.at<float>(i, 2));
                 int height  = static_cast<int>(detectionResults.at<float>(i, 3));
 
+                if(qMin(X, Y) == std::numeric_limits<int>::min() || qMin(width, height) == std::numeric_limits<int>::min()) {
+                    qCWarning(DIGIKAM_FACESENGINE_LOG) << "Invalid detectionResults rect (INT_MIN) for image" << package->info.filePath();
+                    continue;
+                }
                 // Add the rect to result list.
 
                 faceFRects << QRectF(qreal(X)      / qreal(cvUResizedImage.cols),