Bug 494034

Summary: Assign color picks and filtering on a color pick, change the color pick to none crashes digikam
Product: [Applications] digikam Reporter: Fred Engst <fredengst>
Component: Tags-ColorsAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 8.4.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: MacOS crash report

Description Fred Engst 2024-10-03 13:52:19 UTC
Created attachment 174364 [details]
MacOS crash report

SUMMARY
While restriction is based on a color pick, reassigning the pick color to "none" leads to a repeatable crash.
I have over 60k photos. Some are on an external hard drive, and others are on an external SSD.


STEPS TO REPRODUCE
1. Assign a large selection of photos (over 10k for example) with  "Assign Labels" -> "Picks" to color green in the "Thumbnails" view.
2. Set right side filter restriction based on "Labels Filter" being "Picks" to Green.
3. Select all those photos that are shown.
4. Change the "Assign Labels" -> "Picks" from "Green" to "None."

OBSERVED RESULT
 Digikam crashes.

EXPECTED RESULT
0 photos shown.

SOFTWARE/OS VERSIONS
Windows: 
macOS:  14.7
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
It will not crash if only a portion of the photos are selected.
Comment 1 Fred Engst 2024-10-03 13:57:41 UTC
This is the first time that I have reported a bug. I hope this bug is not causing to0 much confusion on your end.
Comment 2 caulier.gilles 2024-10-03 14:07:22 UTC
Please considers to test the 8.5.0 pre-release DMG installer which have been fully recompiled from scratch with all dependencies updated.

We also propose for the first time a native Silicon version of the bundle. Look here :

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

Best 

Gilles Caulier
Comment 3 Fred Engst 2024-10-04 02:07:52 UTC
My MacBook Pro is old, and I can't find the 8.5.0 pre-release DMG installer that works.
Comment 4 caulier.gilles 2024-10-04 02:45:17 UTC
Try the Intel version here :

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

Gilles Caulier
Comment 5 Fred Engst 2024-10-04 18:35:58 UTC
Thanks Gilles, it seems to worked. At first, it crashed a few more times, but behaved differently than before. I was able to see the progress indicator of assigning over 12k photos halfway before it crashed. I then used the tools to clean the database, and it seems to corrected the problem.