Bug 457061 - crash opening any folder on macOS 10.14
Summary: crash opening any folder on macOS 10.14
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 7.7.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 06:15 UTC by Hamish Moffatt
Modified: 2022-07-24 08:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.8.0


Attachments
macOS crash report (197.14 KB, text/plain)
2022-07-24 06:15 UTC, Hamish Moffatt
Details

Note You need to log in before you can comment on or make changes to this bug.
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