Bug 487062 - When an external image editing software is called up for the first time, an incorrect error message appears.
Summary: When an external image editing software is called up for the first time, an i...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-OpenWith (other bugs)
Version First Reported In: 8.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-15 15:11 UTC by Lothar-Mueller
Modified: 2025-11-25 17:29 UTC (History)
3 users (show)

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


Attachments
DigiKam-Fehlermeldung (383.76 KB, image/jpeg)
2024-05-15 15:11 UTC, Lothar-Mueller
Details
image001.png (76.80 KB, image/png)
2024-05-15 20:22 UTC, Lothar-Mueller
Details
Fehlermeldung.jpg (296.37 KB, image/jpeg)
2025-04-15 20:06 UTC, Lothar-Mueller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lothar-Mueller 2024-05-15 15:11:40 UTC
Created attachment 169507 [details]
DigiKam-Fehlermeldung

Immer dann, wenn ich DigiKam starte und aus der Vorschau heraus zum ersten Mal "Öffnen mit/weitere" aufrufe, erscheint die falsche Fehlermeldung, dass der aufgerufenen Datei keine App zugeordnet ist (siehe angehängtes Bild). Das ist definitiv falsch, denn nachdem ich die Fehlermeldung weggeklickt habe, und es erneut versuche, startet das Standardprogramm ohne Probleme. 
Interessant ist noch, dass diese Fehlermeldung nicht auftritt, wenn die o.g. Funktion bei einem kleinen Vorschaubild aufgerufen wird.
Comment 1 Maik Qualmann 2024-05-15 15:32:20 UTC
Ich kann das Problem nicht reproduzieren. Bei welchem Dateityp tritt das Problem auf? Da es in digiKam-8.4.0 ein "Öffnen mit..." Menü existiert (von bekannten Programmen nach denen wir suchen) und es einigen Code Umbau gab, könnte das Problem bereits behoben sein.
Bitte teste die Testversion von digiKam-8.4.0 von hier:

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

Maik
Comment 2 Lothar-Mueller 2024-05-15 16:35:05 UTC
Hallo Maik,
vielen Dank dafür, dass ihr euch so schnell dieses Problems angenommen habt. 
Ich habe mir DigiKam 8.4.0 jetzt installiert und auch getestet. Ich habe es mit .jpg, .png und .bmp-Dateien versucht, bei allen drei Dateitypen erscheint die erwähnte Fehlermeldung. Bei 8.4.0 tritt es sogar auch bei den kleinen Vorschaubildern auf.
Zur Ergänzung sei noch erwähnt, dass bei mir Paint Shop Pro 2023 als Standardprogramm installiert ist.
Viele Grüße Lothar

-----Ursprüngliche Nachricht-----
Von: Maik Qualmann <bugzilla_noreply@kde.org> 
Gesendet: Mittwoch, 15. Mai 2024 17:32
An: Lothar-Mueller@web.de
Betreff: [digikam] [Bug 487062] When an external image editing software is called up for the first time, an incorrect error message appears.

https://bugs.kde.org/show_bug.cgi?id=487062

Maik Qualmann <metzpinguin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |metzpinguin@gmail.com

--- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> --- Ich kann das Problem nicht reproduzieren. Bei welchem Dateityp tritt das Problem auf? Da es in digiKam-8.4.0 ein "Öffnen mit..." Menü existiert (von bekannten Programmen nach denen wir suchen) und es einigen Code Umbau gab, könnte das Problem bereits behoben sein.
Bitte teste die Testversion von digiKam-8.4.0 von hier:

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

Maik

--
You are receiving this mail because:
You reported the bug.
Comment 3 Maik Qualmann 2024-05-15 18:32:07 UTC
Git commit 2e9433588b8e6db9078463cffa9c05529a6f0c9e by Maik Qualmann.
Committed on 15/05/2024 at 18:31.
Pushed by mqualmann into branch 'master'.

add PaintShop Pro 2023 desktop file

A  +6    -0    core/data/applications/pspro2023.desktop

https://invent.kde.org/graphics/digikam/-/commit/2e9433588b8e6db9078463cffa9c05529a6f0c9e
Comment 4 Maik Qualmann 2024-05-15 18:51:50 UTC
Mit einer der nächsten digiKam Version kannst Du PaintShop Pro über "Öffnen mit..." direkt starten, ohne den Umweg über "Weiteres...".
Die Fehlermeldung kann ich hier auch auf einen zweiten Windows Computer nicht reproduzieren. Die Fehlermeldung kommt übrigens nicht von digiKam, sondern von Windows. Die Funktion ist relativ simple, für das Vorschaubild und Vorschau übrigens die selbe Funktion. Wir übergeben der Windows API nur den Dateipfad.

Noch mal als Nachfrage, das Problem tritt nur beim ersten mal auf, wenn Du: rechte Maustaste-> Menü-> "Öffnen mit.." -> "Weitere..." verwendest?

Maik
Comment 5 Maik Qualmann 2024-05-15 20:16:23 UTC
Git commit c672a5148dcbcfa761ec1bc3c21e60482a3cafe6 by Maik Qualmann.
Committed on 15/05/2024 at 20:15.
Pushed by mqualmann into branch 'master'.

additionally overwrite SHELLEXECUTEINFO with zero

M  +1    -0    core/app/items/utils/contextmenuhelper_services.cpp
M  +1    -0    core/utilities/import/widgets/importcontextmenu.cpp

https://invent.kde.org/graphics/digikam/-/commit/c672a5148dcbcfa761ec1bc3c21e60482a3cafe6
Comment 6 Lothar-Mueller 2024-05-15 20:22:32 UTC
Created attachment 169514 [details]
image001.png

Ja, die Fehlermeldung tritt nur auf beim ersten Aufruf von "Öffnen mit .." > "Weitere .." auf. Nachdem ich die Fehlermeldung mit OK quittiert habe, lassen sich die nachfolgenden Versuche, das gleiche oder ein irgendein anderes Bild aufzurufen, ohne Probleme durchführen.

Nachdem ich jetzt die Version 8.4 installiert, deinstalliert und Version 8.3 wieder installiert habe, ist es noch mysteriöser geworden. Jetzt erscheint häufig auch die folgende Fehlermeldung:

 

 

 

-----Ursprüngliche Nachricht-----

Von: Maik Qualmann <bugzilla_noreply@kde.org <mailto:bugzilla_noreply@kde.org> > 

Gesendet: Mittwoch, 15. Mai 2024 20:52

An: Lothar-Mueller@web.de <mailto:Lothar-Mueller@web.de> 

Betreff: [digikam] [Bug 487062] When an external image editing software is called up for the first time, an incorrect error message appears.

 

 <https://bugs.kde.org/show_bug.cgi?id=487062> https://bugs.kde.org/show_bug.cgi?id=487062

 

--- Comment #4 from Maik Qualmann <metzpinguin@gmail.com <mailto:metzpinguin@gmail.com> > --- Mit einer der nächsten digiKam Version kannst Du PaintShop Pro über "Öffnen mit..." direkt starten, ohne den Umweg über "Weiteres...".

Die Fehlermeldung kann ich hier auch auf einen zweiten Windows Computer nicht reproduzieren. Die Fehlermeldung kommt übrigens nicht von digiKam, sondern von Windows. Die Funktion ist relativ simple, für das Vorschaubild und Vorschau übrigens die selbe Funktion. Wir übergeben der Windows API nur den Dateipfad.

 

Noch mal als Nachfrage, das Problem tritt nur beim ersten mal auf, wenn Du:

rechte Maustaste-> Menü-> "Öffnen mit.." -> "Weitere..." verwendest?

 

Maik

 

--

You are receiving this mail because:

You reported the bug.
Comment 7 Maik Qualmann 2024-05-15 20:31:49 UTC
Ja, ich konnte das Problem auch zweimal reproduzieren, (mit einer Fehlermeldung und seltsamen Zeichen im Dateinamen) es trat auf, als ich den Computer neu gestartet habe. Mein letzte Änderung wird das Problem ziemlich sicher beheben.

@Gilles, there are indications on the web that at least structures = {} are not correctly initialized with null with MSVC-2012. I hope at least that arrays are initialized correctly, we should pay attention to this.

Maik
Comment 8 caulier.gilles 2024-05-15 20:45:07 UTC
MSVC 2019 is used to compile the Windows bundle...

Gilles
Comment 9 Maik Qualmann 2024-05-19 13:51:49 UTC
A new digiKam-8.4.0 test version is available. Please test whether the problem can still be reproduced.

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

Maik
Comment 10 Lothar-Mueller 2024-05-20 08:34:00 UTC
Guten Maik,
vielen Dank für die neue Version von DigiKam 8.4.0.
Ich habe sie heruntergeladen und auch gleich installiert.
Die neue Möglichkeit, Paint Shop Pro 2023 direkt aufrufen zu können, funktioniert einwandfrei. Mit dem Vorhandensein dieser Funktion erübrigt sich für mich die Funktion "Weitere ...".
Ich habe sie aber trotzdem mehrfach ausgeführt. Dabei musste ich feststellen, dass die ominöse Fehlermeldung beim Aufruf von "Weitere ..." immer noch auftritt, allerdings tritt sie nicht permanent auf. Ich konnte leider nicht feststellen, woran es liegt, dass sie erscheint oder nicht erscheint. Ich habe meinen Rechner auch mehrfach neu gestartet und dann DigiKam aufgerufen und mit der Funktion "Öffnen mit > Weitere" getestet. Manchmal erschien die Fehlermeldung, manchmal nicht. Frag mich aber bitte nicht, weshalb das so ist. Ich konnte bis jetzt einfach kein System hinter dem Erscheinen der Fehlermeldung erkennen.
Ich habe früher selbst häufig programmiert, und weiß deshalb aus eigener Erfahrung, dass sporadisch auftretende Fehler bei Programmentwicklern nicht gerade Begeisterung hervorrufen. Aber ich bin mit einem Latein am Ende.
ich bedanke mich aber auf jeden Fall für deine Unterstützung. 
Viele Grüße Lothar


-----Ursprüngliche Nachricht-----
Von: Maik Qualmann <bugzilla_noreply@kde.org> 
Gesendet: Sonntag, 19. Mai 2024 15:52
An: Lothar-Mueller@web.de
Betreff: [digikam] [Bug 487062] When an external image editing software is called up for the first time, an incorrect error message appears.

https://bugs.kde.org/show_bug.cgi?id=487062

--- Comment #9 from Maik Qualmann <metzpinguin@gmail.com> --- A new digiKam-8.4.0 test version is available. Please test whether the problem can still be reproduced.

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

Maik

--
You are receiving this mail because:
You reported the bug.
Comment 11 caulier.gilles 2025-04-11 18:13:50 UTC
Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from
scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

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

Thanks in advance
Best regards

Gilles Caulier
Comment 12 Lothar-Mueller 2025-04-15 20:06:51 UTC
Created attachment 180306 [details]
Fehlermeldung.jpg

Hallo,
leider muss ich Ihnen mitteilen, dass sich nichts geändert hat. 
Auch bei der neuesten DigiKam-Version tritt immer noch der Fehler auf, dass dann, wenn DigiKam neue gestartet wurde und man danach eine externe Bildbearbeitungs-Software aufruft (in meinem Fall Topaz AI) eine Fehlermeldung erscheint (siehe Anhang). Beim zweiten und allen weiteren Aufrufen wird die externe Software ohne Probleme geöffnet.
Viele Grüße Lothar

-----Ursprüngliche Nachricht-----
Von: bugzilla_noreply@kde.org <bugzilla_noreply@kde.org> 
Gesendet: Freitag, 11. April 2025 20:14
An: Lothar-Mueller@web.de
Betreff: [digikam] [Bug 487062] When an external image editing software is called up for the first time, an incorrect error message appears.

https://bugs.kde.org/show_bug.cgi?id=487062

--- Comment #11 from caulier.gilles@gmail.com --- Hi,

The 8.7.0 pre-release Windows installer from today have been rebuilt from scratch with Qt 6.8.3, KDE 6.12, OpenCV 4.11 + CUDA support, Exiv2 0.28.5, ExifTool 13.27, ffmpeg 7, all image codecs updated to last version (jxl, avif, heif, aom, etc.).

Please try with this version to see if your problem still reproducible...

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

Thanks in advance
Best regards

Gilles Caulier

--
You are receiving this mail because:
You reported the bug.
Comment 13 Maik Qualmann 2025-11-23 14:37:17 UTC
*** Bug 512507 has been marked as a duplicate of this bug. ***
Comment 14 Maik Qualmann 2025-11-23 14:50:43 UTC
Git commit ca68f06c3530850bda9107af918098dc9c331dd7 by Maik Qualmann.
Committed on 23/11/2025 at 14:49.
Pushed by mqualmann into branch 'master'.

use SHELLEXECUTEINFO(W)
Related: bug 512507

M  +6    -6    core/app/items/utils/contextmenuhelper_services.cpp

https://invent.kde.org/graphics/digikam/-/commit/ca68f06c3530850bda9107af918098dc9c331dd7
Comment 15 Maik Qualmann 2025-11-23 15:06:53 UTC
Git commit c8b3da6aadb50a1eb60980bfdcc12cdcb9706309 by Maik Qualmann.
Committed on 23/11/2025 at 15:05.
Pushed by mqualmann into branch 'master'.

use SHELLEXECUTEINFO(W) also for the import tool
Related: bug 512507

M  +6    -6    core/utilities/import/widgets/importcontextmenu.cpp

https://invent.kde.org/graphics/digikam/-/commit/c8b3da6aadb50a1eb60980bfdcc12cdcb9706309
Comment 16 Maik Qualmann 2025-11-24 11:34:15 UTC
Git commit d872d9dd79694e6a0ef28083730d9949910962d1 by Maik Qualmann.
Committed on 24/11/2025 at 11:33.
Pushed by mqualmann into branch 'master'.

next try to fix SHELLEXECUTEINFO
Related: bug 512507

M  +6    -2    core/app/items/utils/contextmenuhelper_services.cpp

https://invent.kde.org/graphics/digikam/-/commit/d872d9dd79694e6a0ef28083730d9949910962d1
Comment 17 Maik Qualmann 2025-11-24 19:48:11 UTC
Git commit d9226549bed48f08641a56df666b4a7eea28f755 by Maik Qualmann.
Committed on 24/11/2025 at 19:47.
Pushed by mqualmann into branch 'master'.

the char* array might be deleted too early
Related: bug 512507

M  +3    -0    core/app/items/utils/contextmenuhelper_p.h
M  +5    -2    core/app/items/utils/contextmenuhelper_services.cpp

https://invent.kde.org/graphics/digikam/-/commit/d9226549bed48f08641a56df666b4a7eea28f755
Comment 18 Maik Qualmann 2025-11-25 17:29:22 UTC
Git commit 2f216fe62f838d11f9be4b68901536cf78f4bec0 by Maik Qualmann.
Committed on 25/11/2025 at 17:27.
Pushed by mqualmann into branch 'master'.

fix "Open with" call on Windows API
String buffer was deleted too early.
Related: bug 512507
FIXED-IN: 8.9.0

M  +2    -2    NEWS
M  +5    -1    core/app/items/utils/contextmenuhelper_p.h
M  +1    -5    core/app/items/utils/contextmenuhelper_services.cpp
M  +13   -3    core/utilities/import/widgets/importcontextmenu.cpp

https://invent.kde.org/graphics/digikam/-/commit/2f216fe62f838d11f9be4b68901536cf78f4bec0