Bug 501627 - Digikam 8.6 crashes while retraining face recognition database
Summary: Digikam 8.6 crashes while retraining face recognition database
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Engine (other bugs)
Version First Reported In: 8.6.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 10:37 UTC by cs
Modified: 2025-04-04 01:27 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cs 2025-03-17 10:37:12 UTC
SUMMARY
Digikam 8.6 (AppImage on Kubuntu 24.04 with Nvidia card) crashes while retraining face recognition database

STEPS TO REPRODUCE
1. Start digikam 8.6.0 AppImage (with existing database and image collection previously used with 8.5.0)
2. When it asks "Do you want to retrain your database now?" click "OK"
3. in the background processes widget, you see messages about scanning the fotos, but after a few images the program crashes

OBSERVED RESULT
program crash.
Console messages:

[ WARN:0@30,870] global ocl4dnn_conv_spatial.cpp:1931 loadTunedConfig OpenCV(ocl4dnn): consider to specify kernel configuration cache directory through OPENCV_OCL4DNN_CONFIG_PATH parameter.
OpenCL program build log: dnn/dummy
Status -11: CL_BUILD_PROGRAM_FAILURE
-cl-no-subgroup-ifp
Error in processing command line: Don't understand command line argument "-cl-no-subgroup-ifp"!
/tmp/.mount_digiKaUtLULs/AppRun: line 261:  8126 Segmentation fault      (core dumped) digikam $@


EXPECTED RESULT
no crash


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04 Kernel 6.8.0-53-generic (64-bit)
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Graphics Platform: X11

ADDITIONAL INFORMATION
NVIDIA GeForce RTX 3060/PCIe/SSE2
OpenCL 3.0 CUDA 12.5.51
Comment 1 Maik Qualmann 2025-03-17 11:23:36 UTC
Is OpenCL enabled or disabled in the digiKam settings under Miscellaneous -> System? Can you disable it (restart digiKam) and test whether it no longer crashes?

Maik
Comment 2 cs 2025-03-17 12:54:44 UTC
(In reply to Maik Qualmann from comment #1)
> Is OpenCL enabled or disabled in the digiKam settings under Miscellaneous ->
> System? Can you disable it (restart digiKam) and test whether it no longer
> crashes?

Yes, OpenCL was enabled. After disabling it, digiKam no longer crashes, and the retraining works as exptected until it is complete.
Comment 3 o.kdebugtrack 2025-04-02 11:14:06 UTC
Gday
I have the same problem with version 8.6
I upgraded from version 8.4 i think to 8.6 and suddenly only 5 people were getting face suggestions. With the majority of them falling under a single person. At the time I was using sqllite on a NAS folder mapped to network disk on windows - and it had always worked fine.

So, i thought, i already have the metadata on sidecar files, i'll just setup a mariadb and get it to scan the metadata and go from there.
nope.

Now, i have faces recognised from the metadata, but, all the "unknown" faces remain unknown and no matter how much i ask it to recognise face them they never get auto-suggested.
Comment 4 Michael Miller 2025-04-03 01:19:48 UTC
(In reply to o.kdebugtrack from comment #3)
> Gday
> I have the same problem with version 8.6
> I upgraded from version 8.4 i think to 8.6 and suddenly only 5 people were
> getting face suggestions. With the majority of them falling under a single
> person. At the time I was using sqllite on a NAS folder mapped to network
> disk on windows - and it had always worked fine.
> 
> So, i thought, i already have the metadata on sidecar files, i'll just setup
> a mariadb and get it to scan the metadata and go from there.
> nope.
> 
> Now, i have faces recognised from the metadata, but, all the "unknown" faces
> remain unknown and no matter how much i ask it to recognise face them they
> never get auto-suggested.

Do you ahve OpenCL enabled in digiKam?

Cheers,
Mike
Comment 5 o.kdebugtrack 2025-04-03 02:34:21 UTC
D'oh! i meant to post this in this https://bugs.kde.org/show_bug.cgi?id=472266 but got them mixed up.   I did have the checkbox ticked. Let me untick it and see what happens.

I had the openCL ticked, but then on the about box it says OpenCL availability No, so i thought it would make no difference. I'll retry and let you know

(In reply to Michael Miller from comment #4)
> 
> Do you ahve OpenCL enabled in digiKam?
> 
> Cheers,
> Mike
Comment 6 o.kdebugtrack 2025-04-03 04:24:39 UTC
in reply to Michael Miller from comment #4)

> Do you ahve OpenCL enabled in digiKam?
> 
> Cheers,
> Mike

Ok i turned it off. I went to maintenance > detect and recognise faces. I ticked Rebuild all training data it didnt train much at all.
I finally go it working when i went to the Album view, right clicked and did find-faces on the root and then it's doing it's magic. Hooray.
Comment 7 caulier.gilles 2025-04-04 01:19:39 UTC
Hi Mike,

So this file can be closed ?

Best regards

Gilles Caulier