| Summary: | Saving image as AVIF after cropping crashes. | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | gordon.runkle |
| Component: | ImageEditor-Save | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | caulier.gilles, metzpinguin |
| Priority: | NOR | ||
| Version First Reported In: | 8.8.0 | ||
| Target Milestone: | --- | ||
| Platform: | macOS (DMG) | ||
| OS: | macOS | ||
| Latest Commit: | Version Fixed/Implemented In: | 9.0.0 | |
| Sentry Crash Report: | |||
| Attachments: | Debug info and backtrace | ||
|
Description
gordon.runkle
2025-12-04 22:18:12 UTC
Which file format did you use to save the cropped image ? Can you share the original file not cropped to try to reproduce the crash ? We need a backtrace of the crash. See instructions here : https://www.digikam.org/contribute/#macos-host-1 The image is a bit too big to attach, so I've shared it at: https://www.icloud.com/iclouddrive/013abmdbtesByZSHIuWxsVZGA#270880_20240916143301_1 It happens with any image, though. I'm using the "Save Changes" button, and never get a dialog, it crashes at that point. This original is a PNG, though it happens with JPG files as well. Created attachment 187360 [details]
Debug info and backtrace
The requested debug info, made with the -debug version of digikam.
We're already familiar with the libaom crash on macOS. You're saving the modified images in AVIF format. Gilles needs to check again whether there are any dependencies in the libaom compilation. Maik Hi Maik, Under macOS, macport provides libaom dependency : https://ports.macports.org/port/aom/details/ There is no extra dependency for libaom There is no special compilation option : https://github.com/macports/macports-ports/blob/master/multimedia/aom/Portfile#L44 So for me the crash is typically an issue under macOS. Searching for a bug : https://aomedia.issues.chromium.org/issues?q=macos%20crash All are closed as fixed. Gordon, Please file a new report here (you need an account) : https://aomedia.issues.chromium.org/issues Best Gilles Caulier Maik, If AVIF is the problem, we must take a look at libavif in Macports: https://ports.macports.org/port/libavif/details/ This one has many dependencies as libaom of course. AOM support is not a variant and cannot be disabled directly. https://github.com/macports/macports-ports/blob/master/multimedia/libavif/Portfile#L54 If AOM is the problem i can disable it to patch the libavif port config file, but i fair that the AVIF format will not provide a suitable output file as it's the default codec used. So i think the aom bug report must be done. Best Gilles I do have libaom 3.13.1 installed, as well as libavif: stable 1.3.0, so you're probably correct that I should file a report over there. Thanks, all, for looking into this! Hi Gilles, can you reproduce the crash? There are CPU flags during compilation. -DAOM_TARGET_CPU=generic or arm64 or x86 or x86_64 etc. Maik I just tested to export one HEIF from my collection to AVIF, (loosless or not). Image editor do not crash under my macbook pro M1. Gilles I just tested to export the "Oversized truck" PNG file shared by Gordon to AVIF, (lossless or not). Image editor do not crash under my macbook pro M1. Here i use digiKam 8.9.0 pre-release of course. Gordon, if you want to test the 8.9.0 pre-release, files are here: https://files.kde.org/digikam/ Q to Gordon: Did you use a Silicon or Intel Mac ? Gilles Note: exporting image to AVIF cropped or not give the same result : no crash. So no problem at all with crop feature. Gilles I"m on Apple Silicon. It's the "Save Changes" which is crashing, not the "Save As New Version", just in case I wasn't clear. I set the Image Editor versionning to AVIF, and cropped you truck PNG photo without crashing using Save Changes under my Macbook pro M1. As i rebuild all the build env. from scratch one week ago using macports, can you try to reproduce the crash with the 8.9.0 pre-release PKG installer : https://files.kde.org/digikam/ (In reply to caulier.gilles from comment #10) > I just tested to export the "Oversized truck" PNG file shared by Gordon to > AVIF, (lossless or not). Image editor do not crash under my macbook pro M1. > > Here i use digiKam 8.9.0 pre-release of course. > > Gordon, if you want to test the 8.9.0 pre-release, files are here: > > https://files.kde.org/digikam/ > > Q to Gordon: Did you use a Silicon or Intel Mac ? > > Gilles The 8.9.0 pre-release is working, thank you! I'm on Apple Silicon. Excellent. I close this file now... Gilles |