Bug 508681

Summary: does not start in Windows
Product: [Applications] digikam Reporter: Andy <zunar>
Component: Bundle-WindowsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: benedekppeter, caulier.gilles, metzpinguin, tim
Priority: NOR    
Version First Reported In: 8.8.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.8.0
Sentry Crash Report:
Attachments: digikam_systemrc
20250824_210901

Description Andy 2025-08-24 16:40:44 UTC
Hi!
I noticed that the latest versions no longer start in Windows. The splash screen only appears briefly, and then the program quits.
My last working version is: digiKam-8.8.0-20250812T163922-Qt6-Win64-debug

Regards
Andy
Comment 1 Maik Qualmann 2025-08-24 18:09:36 UTC
Created attachment 184404 [details]
digikam_systemrc

Please try this digikam_systemrc file, replace your in C:\Users\%USERNAME%\AppData\Local

Maik
Comment 2 Andy 2025-08-24 18:32:40 UTC
doesn't help
Comment 3 Maik Qualmann 2025-08-24 18:59:35 UTC
Then please create a DebugView log from the start, internal debugging is already enabled, as described here:

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

Maik
Comment 4 Peter 2025-08-24 19:02:05 UTC
Same in this bug ticket: 508403

I can reproduce this fault too.
Comment 5 Andy 2025-08-24 19:22:36 UTC
Created attachment 184406 [details]
20250824_210901

Here's my log

Andy
Comment 6 Maik Qualmann 2025-08-26 15:09:34 UTC
*** Bug 508768 has been marked as a duplicate of this bug. ***
Comment 7 Maik Qualmann 2025-08-26 16:41:23 UTC
I think I've found the strangest reason why digiKam crashes at this point in the log. I haven't been able to reproduce it on my Windows test systems. I use a link to launch digiKam that I've placed on the desktop. Launching digiKam from its Start menu doesn't cause any issues. The problem reproducibly occurs when launching digiKam from the recent programs link in the Start menu.
The cause is likely due to a link registration at the beginning to use the Windows notification window instead of our own notification window.

Maik
Comment 8 TFCBX 2025-08-26 17:12:58 UTC
FWIW...it launches just fine from the CLI but not when pinned to the Taskbar.
Comment 9 Andy 2025-08-26 17:55:29 UTC
Yes, that's right. If I launch the program from the folder
C:\Program Files\digiKam or create a shortcut from there on the desktop, digikam starts.
It doesn't work when pinned to the taskbar.
Comment 10 Maik Qualmann 2025-08-26 19:07:10 UTC
Git commit 2b16511113ff74bfd29e2ce7b95f39afa591e5cb by Maik Qualmann.
Committed on 26/08/2025 at 19:06.
Pushed by mqualmann into branch 'master'.

create a shortcut link is not the right way, because NSIS has already created one

M  +2    -2    core/app/utils/digikam_globals_bundles.cpp

https://invent.kde.org/graphics/digikam/-/commit/2b16511113ff74bfd29e2ce7b95f39afa591e5cb
Comment 11 Maik Qualmann 2025-08-26 19:40:21 UTC
Git commit 5ff1e778c722f34cc41fadd94ba4ef285b117b4e by Maik Qualmann.
Committed on 26/08/2025 at 19:39.
Pushed by mqualmann into branch 'master'.

create program shortcut with NSIS

M  +4    -3    project/bundles/vcpkg/installer/digikam.nsi
A  +22   -0    project/bundles/vcpkg/installer/snorenotify.nsh

https://invent.kde.org/graphics/digikam/-/commit/5ff1e778c722f34cc41fadd94ba4ef285b117b4e
Comment 12 Maik Qualmann 2025-08-27 10:28:04 UTC
Git commit 3197b4e29632de3102e04756d81f658029d91461 by Maik Qualmann.
Committed on 27/08/2025 at 10:27.
Pushed by mqualmann into branch 'master'.

remove SnoreToast in NSIS first
No idea why the function fails.

M  +7    -4    project/bundles/vcpkg/installer/digikam.nsi

https://invent.kde.org/graphics/digikam/-/commit/3197b4e29632de3102e04756d81f658029d91461
Comment 13 Maik Qualmann 2025-09-16 15:08:09 UTC
The issue has now been resolved in the current pre-release version of digiKam-8.8.0.
QWebEngine was the trigger due to a breakpoint.

The cause was the missing "Run in" path in the program startup link. We now set the current working directory on the program side.

Maik
Comment 14 Maik Qualmann 2025-09-16 16:32:10 UTC
Git commit 1b1a82d86800f68245ab5aeb10b1b6b3dabc79a5 by Maik Qualmann.
Committed on 16/09/2025 at 16:31.
Pushed by mqualmann into branch 'master'.

set working directory also in Showfoto
Related: bug 508768
FIXED-IN: 8.8.0

M  +2    -2    NEWS
M  +6    -0    core/showfoto/main/main.cpp

https://invent.kde.org/graphics/digikam/-/commit/1b1a82d86800f68245ab5aeb10b1b6b3dabc79a5
Comment 15 Andy 2025-09-16 20:14:06 UTC
Thank you very much! :-)

Andy