Bug 509059 - Rebuild all training data results in crash
Summary: Rebuild all training data results in crash
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Faces (other bugs)
Version First Reported In: 8.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-03 08:21 UTC by CM
Modified: 2025-09-23 23:59 UTC (History)
2 users (show)

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


Attachments
Window is just white with title bar digiKam-8.8.0-20250903T170136-Qt5-Win64 (10.62 KB, image/png)
2025-09-04 01:51 UTC, CM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CM 2025-09-03 08:21:25 UTC
Library is about 570K photos.

Run "Rebuild all training data" from Maintenance window

digiKam is no longer running after some minutes.

SOFTWARE/OS VERSIONS
digiKam: 8.7.0
KDE Frameworks: 6.12.0
Qt: Using 6.8.3 and built against 6.8.3
Windows 11 Version 25H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.26200
Comment 1 caulier.gilles 2025-09-03 08:43:00 UTC
Please try with the 8.8.0 pre-release where we fix severals crash about face management.

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

Gilles Caulier
Comment 2 CM 2025-09-04 01:28:59 UTC
I tried these:
digiKam-8.8.0-20250903T170141-Qt6-Win64-debug.exe
digiKam-8.8.0-20250903T170141-Qt6-Win64.exe

It crashes after some time during the splash screen.

Problem Event Name:	APPCRASH
Application Name:	digikam.exe
Application Version:	8.8.0.0
Application Timestamp:	68b67aaa
Fault Module Name:	Qt6WebEngineCore.dll
Fault Module Version:	6.9.1.0
Fault Module Timestamp:	68a4bef2
Exception Code:	80000003
Exception Offset:	0000000003fc7788
OS Version:	10.0.26200.2.0.0.256.48
Locale ID:	1033
Additional Information 1:	9707
Additional Information 2:	9707bfe70a7d205b8e25e8de8e4b792a
Additional Information 3:	9722
Additional Information 4:	972234a7a0e6cec97b2582f540a9dfe1


Problem Event Name:	APPCRASH
Application Name:	digikam.exe
Application Version:	8.8.0.0
Application Timestamp:	68b67aaa
Fault Module Name:	Qt6WebEngineCore.dll
Fault Module Version:	6.9.1.0
Fault Module Timestamp:	68a4bef2
Exception Code:	80000003
Exception Offset:	0000000003fc7788
OS Version:	10.0.26200.2.0.0.256.48
Locale ID:	1033
Additional Information 1:	9707
Additional Information 2:	9707bfe70a7d205b8e25e8de8e4b792a
Additional Information 3:	9722
Additional Information 4:	972234a7a0e6cec97b2582f540a9dfe1
Comment 3 CM 2025-09-04 01:51:55 UTC
Created attachment 184696 [details]
Window is just white with title bar digiKam-8.8.0-20250903T170136-Qt5-Win64
Comment 4 CM 2025-09-04 01:52:30 UTC
Comment on attachment 184696 [details]
Window is just white with title bar digiKam-8.8.0-20250903T170136-Qt5-Win64

Tried a prior version: digiKam-8.8.0-20250903T170136-Qt5-Win64
Comment 5 caulier.gilles 2025-09-04 06:01:29 UTC
The problem is know and is relevant of the QtWebEngine component (Chromium based and embeded browser).

Typically Chromium do not detect the GPU acceleration on your Windows and lock tha application. This have been already reported previously.

Solution: in the digikam_systemrc INI config file:

https://docs.digikam.org/en/getting_started/installation.html#configuration-files

... turn on an option about the GPU feature:

Use the software OpenGL rendering: this option will disable the GPU hardware accelerations and switch to a software-emulation for all calls to OpenGL.

https://docs.digikam.org/en/setup_application/miscs_settings.html#system-settings

This is a view of my digikam_systemrc file contents:

[System]
disableOpenCL=true
dnnOpenCLTested=false
enableAIAutoTools=true
enableAesthetic=true
enableAutoTags=true
enableDnnOpenCL=false
enableFaceEngine=true
enableHWTConv=true
enableHWVideo=true
enableLogging=false
enableOpenCL=false
proxyAuth=false
proxyPort=8080
proxyType=0
proxyUrl=
softwareOpenGL=true <==== THIS ONE!!!
useHighDpiPixmaps=false
useHighDpiScaling=false
videoBackend=ffmpeg
Comment 6 CM 2025-09-05 04:03:33 UTC
It's not getting past the splash screen.

First, I just set softwareOpenGL=true, but it didn't work. Still crashes. I also tried copying your settings, but it still crashes.
Comment 7 CM 2025-09-17 07:30:26 UTC
digiKam-8.8.0-20250917T050201-Qt6-Win64.exe is now running for me.
Comment 8 CM 2025-09-18 00:56:57 UTC
To clarify, although the 8.8.0-20250917T050201 preview now runs for me, it still crashes running "Rebuild all training data"

Problem Event Name:	APPCRASH
Application Name:	digikam.exe
Application Version:	8.8.0.0
Application Timestamp:	68b67aaa
Fault Module Name:	nvopencl64.dll
Fault Module Version:	32.0.15.8115
Fault Module Timestamp:	68a7690c
Exception Code:	c0000005
Exception Offset:	000000000003a68b
OS Version:	10.0.26200.2.0.0.256.48
Locale ID:	1033
Additional Information 1:	7d07
Additional Information 2:	7d07c65ae3754639cc0d4531b9ea5f40
Additional Information 3:	dd27
Additional Information 4:	dd274a6eb8c7840129f706076afe775e
Comment 9 caulier.gilles 2025-09-18 04:21:25 UTC
Fault Module Name:	nvopencl64.dll

It crash in the Nvidia OpenCL interface. OpenCL is not OpenGL and here OPenCL is used by OPenCV framework to speed up computation with the face management using GPU.

Before to rebuild training data, go to digiKam setup dialog, Misc section, System tab, and disable "Use the OpenCL hardware acceleration" option.

https://docs.digikam.org/en/setup_application/miscs_settings.html#system-settings

Best

Gilles Caulier
Comment 10 Maik Qualmann 2025-09-18 05:58:52 UTC
After disabling OpenCL, you must restart digiKam.

Maik
Comment 11 CM 2025-09-20 00:43:28 UTC
Disabling OpenCL allows the app to stay running. However, it now just hangs at some random percentage. The UI is responsive, but the actual rebuild/training process hangs. I've tried it a few times and hangs at some point.

This is with the latest: digiKam-8.8.0-20250918T170144-Qt6-Win64.exe
Comment 12 Maik Qualmann 2025-09-20 13:34:29 UTC
A DebugView log would be necessary here and could help.

https://www.digikam.org/contribute/#windows-host

Maik
Comment 13 CM 2025-09-20 17:29:17 UTC
log file (zipped) is about 11mb.

https://1drv.ms/u/c/1fa41d1b10d0708d/Ea-09c4CtipDivH5QNgw65ABiZ-7m6ptXyfb2-4a8uR8yQ?e=4o1A0g

Process was hung at 34%
Comment 14 CM 2025-09-23 23:59:00 UTC
I ended up nuking the database and started over. "Rebuild all training data" worked at least once after that. I will try to do it again at some point.