Bug 504902

Summary: Digikam crashes when removing red eye (without loading additional files)
Product: [Applications] digikam Reporter: tatyana <tatyana>
Component: Faces-RedEyesAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, nate, sitter
Priority: NOR    
Version First Reported In: 8.6.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 8.7.0
Sentry Crash Report:
Attachments: video crashes
backtrace
albom (photo)

Description tatyana 2025-05-28 08:03:47 UTC
Created attachment 181810 [details]
video crashes

STEPS TO REPRODUCE
1. Install:
# apt-get install kde6-libksane-common digikam

2. Run:
$ digikam

3. At the "Downloading required files" step, do not click "Get" -> Finish.

4. Import -> Add folders (select folder with image)  -> select photo -> Image editor -> Enhance -> Red eye removal.

OBSERVED RESULT
Segmentation fault (memory image flushed to disk)

EXPECTED RESULT
digikam works without falls

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  ALT Workstation K 11.0 
KDE Frameworks Version:  6.14.0
Qt Version:  6.8.2
Kernel:  6.12.30-6.12-alt2

digikam-8.6.0-alt1

ADDITIONAL INFORMATION
Crash after switching to the editor to disable the red eye effect.

Workaround:
on first launch click Next (on all steps) -> Finish -> on the step "Loading necessary files" click "Get" -> wait for loading -> OK -> restart digikam.
On earlier versions (for example, in digikam-8.5.0-alt2) this step № 3 was not required, it worked stably without additional file loading. 

Now only with loading additional files (see the step "Loading necessary files" at the first launch)
Comment 1 tatyana 2025-05-28 08:08:19 UTC
Created attachment 181811 [details]
backtrace

backtrace
Comment 2 tatyana 2025-05-28 08:08:49 UTC
Created attachment 181812 [details]
albom (photo)
Comment 3 Nate Graham 2025-05-28 14:08:36 UTC
This is about KDE Linux the operating system. Moving to Digikam.
Comment 4 caulier.gilles 2025-05-28 14:24:56 UTC
This must be fixed in digiKam 8.7.0 pre-release available here :
https://files.kde.org/digikam/
Comment 5 Maik Qualmann 2025-05-29 05:07:49 UTC
Git commit 3ba1343ec49523f604fd6820c3870e6adcd5dbb6 by Maik Qualmann.
Committed on 29/05/2025 at 05:06.
Pushed by mqualmann into branch 'master'.

fix red eye correction when no face models are loaded
FIXED-IN: 8.7.0

M  +1    -1    NEWS
M  +8    -1    core/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp

https://invent.kde.org/graphics/digikam/-/commit/3ba1343ec49523f604fd6820c3870e6adcd5dbb6
Comment 6 tatyana 2025-05-29 09:32:44 UTC
(In reply to Maik Qualmann from comment #5)
> Git commit 3ba1343ec49523f604fd6820c3870e6adcd5dbb6 by Maik Qualmann.
> Committed on 29/05/2025 at 05:06.
> Pushed by mqualmann into branch 'master'.
> 
> fix red eye correction when no face models are loaded
> FIXED-IN: 8.7.0
> 
> M  +1    -1    NEWS
> M  +8    -1    core/libs/dimg/filters/redeye/redeyecorrectionfilter.cpp
> 
> https://invent.kde.org/graphics/digikam/-/commit/
> 3ba1343ec49523f604fd6820c3870e6adcd5dbb6

Thank you for your work!