Bug 507470 - Segfault in "People" tab
Summary: Segfault in "People" tab
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Recognition (other bugs)
Version First Reported In: 8.7.0
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 501974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-07-25 04:31 UTC by Wren Falcon
Modified: 2025-07-29 14:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Output of "Components Information" with FFmpeg config and Features omitted (2.59 KB, text/plain)
2025-07-25 04:31 UTC, Wren Falcon
Details
Screenshot of GNOME Logs after crash (8.8.0) (243.47 KB, image/png)
2025-07-25 16:12 UTC, Wren Falcon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wren Falcon 2025-07-25 04:31:02 UTC
Created attachment 183504 [details]
Output of "Components Information" with FFmpeg config and Features omitted

SUMMARY
I've had digiKam crash on me a few times, somewhat unpredictably, while using the "People" tab. I have a feeling it's related to Faces - Recognition and not Faces - Detection, though I could be wrong.

STEPS TO REPRODUCE
1. Open the People tab.
2. Start scanning for faces.
3. Start tagging faces and accepting suggestions.

OBSERVED RESULT
digiKam crashes.

EXPECTED RESULT
digiKam does not crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 25.04
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
The GNOME "Logs" application reports the following:
> /tmp/.mount_digiKaJmlN4n/AppRun: line 261: 30699 Segmentation fault      (core dumped) digikam $@
and, just before that:
> Error in processing command line: Don't understand command line argument "-cl-no-subgroup-ifp"!
> -cl-no-subgroup-ifp
> Status -11: CL_BUILD_PROGRAM_FAILURE
> OpenCL program build log: dnn/dummy
> [ WARN:0@65.499] global ocl4dnn_conv_spatial.cpp:1931 loadTunedConfig OpenCV(ocl4dnn): consider to specify kernel configuration cache directory through OPENCV_OCL4DNN_CONFIG_PATH parameter.

I've had this crash happen to me several times so far, but I'm aware that it may be difficult to reproduce. I appeared to have plenty of available memory and disk space.

Run on a NVIDIA GeForce RTX 2060. (Abbreviated) "Components Information" is attached.
Comment 1 caulier.gilles 2025-07-25 05:11:05 UTC
The crash appears to OpenCV DNN module.

With the current 8.8.0 digiKam, we switch from the 4.11 to the new OpenCV release 4.12. Try to see if it"s reproducible :

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

Best regards

Gilles Caulier
Comment 2 Wren Falcon 2025-07-25 16:12:10 UTC
Created attachment 183511 [details]
Screenshot of GNOME Logs after crash (8.8.0)

Reproduces on 8.8.0 Appimage, downloaded from the link you sent*. Please note the timestamps. The crash happened at 11:42 AM.

*sha256 of 8.8.0 appimage: a468d13bc19a7f533bf26863f2f3a781bf911c093ae9e3ff3b343357fd474adf

There is also the following log entry present in the "System" tab of the Logs app, sent at 11:42 AM (~1 second before the segfault log entry).
> traps: digikam[6099] general protection fault ip:7ccbbc1974cc sp:7ccbacdb7260 error:0 in libnvidia-opencl.so.570.169[1974cc,7ccbbc16c000+d3c000]

Looking back at the crashes on 8.7.0*, I got very similar messages.
> traps: Thread (pooled)[10252] general protection fault ip:7533b81974cc sp:75339fffa2e0 error:0 in libnvidia-opencl.so.570.169[1974cc,7533b816c000+d3c000]

> traps: Thread (pooled)[27987] general protection fault ip:718a301974cc sp:718a40dd92e0 error:0 in libnvidia-opencl.so.570.169[1974cc,718a3016c000+d3c000]

> traps: Thread (pooled)[28659] general protection fault ip:7e7e3c1974cc sp:7e7e23ffa2e0 error:0 in libnvidia-opencl.so.570.169[1974cc,7e7e3c16c000+d3c000]

> Thread (pooled)[30567]: segfault at 7d204402f ip 00007d217cd29ff8 sp 00007d205aff9f90 error 4 in libnvidia-opencl.so.570.169[d29ff8,7d217c16c000+d3c000] likely on CPU 10 (core 4, socket 0)
> Code: 00 0f 84 8b 00 00 00 81 fa 02 01 00 00 74 4b 48 85 f6 74 37 48 8d 3d 37 f3 18 03 e8 42 23 44 ff 48 b8 03 00 00 00 03 00 00 00 <49> 39 44 24 08 74 0e 41 83 7c 24 0c 02 75 06 41 83 44 24 14 01 48

> traps: Thread (pooled)[30733] general protection fault ip:77ea801974cc sp:77ea697fd2e0 error:0 in libnvidia-opencl.so.570.169[1974cc,77ea8016c000+d3c000]
Each quote block represents a log entry or set of log entries, where the logs within a quote block were sent at the same time.

*sha256 of 8.7.0 appimage: 4a75c235cb25121a2455bd85429fa6f230f37c0872aa4364e8efe50ec0b02309

What I did to reproduce the crash:
1. Open digikam.
2. Open the People tab.
3. Go into Unconfirmed.
4. Select about 100 faces (all for one person) and press accept.
Comment 3 Maik Qualmann 2025-07-25 16:28:39 UTC
Please disable OpenCL in the digiKam settings under Miscellaneous->System. Restart digiKam and test if the crash still occurs.

Maik
Comment 4 Wren Falcon 2025-07-25 16:54:06 UTC
Turned off "Use OpenCL acceleration for AI models", restarted digikam, and everything seemed to work fine. Turned it back on, restarted, and it crashed while running a manually-initiated "Recognize faces only" scan (on all processors, IIRC). The entries in the GNOME Logs app for this crash are pasted below.

> traps: digikam[10623] general protection fault ip:7d9ae8d2a080 sp:7d9acdffe060 error:0 in libnvidia-opencl.so.570.169[d2a080,7d9ae816c000+d3c000]

> /tmp/.mount_digiKaaecB4Q/AppRun: line 261: 10596 Segmentation fault      (core dumped) digikam $@
Comment 5 caulier.gilles 2025-07-29 14:42:24 UTC
*** Bug 501974 has been marked as a duplicate of this bug. ***