Bug 457061

Summary: crash opening any folder on macOS 10.14
Product: [Applications] digikam Reporter: Hamish Moffatt <hamish+kde>
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: metzpinguin
Priority: NOR    
Version: 7.7.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 7.8.0
Sentry Crash Report:
Attachments: macOS crash report

Description Hamish Moffatt 2022-07-24 06:15:50 UTC
Created attachment 150861 [details]
macOS crash report

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open DigiKam 7.7.0 on macOS 10.14
2. Wait until all pictures imported
3. Restart DigiKam
4. Select any folder -> crash


OBSERVED RESULT
Application crashes every time.

EXPECTED RESULT
Application works.

SOFTWARE/OS VERSIONS
macOS: 10.14

ADDITIONAL INFORMATION
Apple format crash report attached.
Comment 1 Maik Qualmann 2022-07-24 06:27:35 UTC
It crashes in the ImageMagick metadata loader. Do you have any special files in the folders?

Maik
Comment 2 Hamish Moffatt 2022-07-24 07:44:55 UTC
So it was only crashing on specific folders and I found that one of them had some zero byte JPEG files. Once I removed those, it has stopped crashing. There are zero byte JPEGs in other folders too though which don't seem to be causing a problem.

All the zero byte files also have the com.apple.quarantine xattr set.

Now that it's working there's probably not much else to go on unfortunately.
Comment 3 caulier.gilles 2022-07-24 08:16:23 UTC
Git commit e223531b341ba15831d0fe38896823b7daab5e7d by Gilles Caulier.
Committed on 24/07/2022 at 08:15.
Pushed by cgilles into branch 'qt5-maintenance'.

ignore null file size to prevent ImageMgick crash
FIXED-IN: 7.8.0

M  +8    -0    core/libs/metadataengine/dmetadata/dmetadata_imagemagick.cpp

https://invent.kde.org/graphics/digikam/commit/e223531b341ba15831d0fe38896823b7daab5e7d