Bug 402914

Summary: Crash when selecting custom icon for tag
Product: [Applications] digikam Reporter: Charles Fisher <ursine1>
Component: Tags-ManagerAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description Charles Fisher 2019-01-06 09:23:41 UTC
SUMMARY
Using a Mac (Retina 5K, 27-inch, 2017), macOS Mojave, Version 10.14.2, Digikam Version 6.0.0-beta3, Build date: Dec 28 2018.

digiKam crashes when selecting a custom icon for a tag using the Tag Manager. 

STEPS TO REPRODUCE
1. Open Tag Manager and click on Tag Properties.
2. Select a Tag, click on the Icon button in the Tag Properties window.
3. In the pop-up, select "Other icons" and then click on "Browse".
4. You are then presented with a "Finder" window, which cannot be manipulated.
5. Upon closing this window or choosing "Cancel", digiKam crashes.

OBSERVED RESULT
Trying to navigate to an icon results in a crash.

EXPECTED RESULT
Being able to navigate and select a custom icon for a tag.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: macOS Mojave, Version 10.14.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: Digikam Version 6.0.0-beta3, Build date: Dec 28 2018.

Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2019-03-09 04:52:16 UTC
Charles,

Can you reproduce the dysfunction using 6.1.0 pre-release package for MacOSX available here :

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

Thanks in advance

Gilles Caulier
Comment 2 Maik Qualmann 2019-04-13 17:27:46 UTC
Git commit 653b09ef682917b76f6077445bc160d2c82ff84f by Maik Qualmann.
Committed on 13/04/2019 at 17:26.
Pushed by mqualmann into branch 'master'.

create KIconDialog on the heap
Related: bug 406507

M  +7    -5    core/libs/tags/manager/tagpropwidget.cpp
M  +4    -3    core/libs/tags/widgets/tageditdlg.cpp

https://commits.kde.org/digikam/653b09ef682917b76f6077445bc160d2c82ff84f
Comment 3 Maik Qualmann 2019-05-22 09:48:58 UTC
Can you reproduce the dysfunction using 6.2.0 pre-release package for MacOSX available here :

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

Thanks in advance

Maik
Comment 4 caulier.gilles 2020-01-12 13:01:37 UTC
No reproducible with 7.0.0-beta2 based on Qt 5.14.0

Gilles Caulier