Bug 497588

Summary: digiKam crashes when adjusting date and time for multiple photos consecutively without restarting the application
Product: [Applications] digikam Reporter: plus-unvaried-hut
Component: Plugin-Generic-TimeAdjustAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 8.5.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description plus-unvaried-hut 2024-12-17 04:31:41 UTC
SUMMARY
digiKam crashes when adjusting date and time for multiple photos consecutively without restarting the application

STEPS TO REPRODUCE
1. Select one or multiple photos and/or videos in digiKam
2. Choose "Adjust Date & Time" and specify the desired date, then press Apply
3. Repeat steps 1-2 without closing digiKam

OBSERVED RESULT
digiKam stops responding and requires a Force Quit after the second attempt to adjust date and time

EXPECTED RESULT
digiKam should allow multiple consecutive date and time adjustments without crashing or requiring a restart

SOFTWARE/OS VERSIONS
macOS: 15.1.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
• The crash can be avoided by quitting and reopening digiKam between date and time adjustments
• This issue consistently occurs when attempting to adjust date and time multiple times without restarting the application
Comment 1 caulier.gilles 2024-12-17 04:51:05 UTC
>2. Choose "Adjust Date & Time" and specify the desired date, then press Apply

Witch settings did you use exactly in the Timeadjust plugin?
Witch settings did you use exactly in the digiKam Setup Metadata view?
Witch king of image type did you use?
Comment 2 Maik Qualmann 2024-12-17 07:37:52 UTC
possible fix for the crash:

https://invent.kde.org/graphics/digikam/-/commit/4847626294e2ac0801b2c7890ba8968c0e39a0a6

Maik
Comment 3 plus-unvaried-hut 2024-12-18 04:23:26 UTC
1. From the Item menu, I selected "Adjust Time & Date..."
2. Timestamp Used: I specified any date and time
3. Timestamp Adjustments: Copy value
4. Timestamp Updated: I selected all excep "Update timestamps with ExifTool"

Which kind of image type? JPG, GIF, PNG, MPG, AVI. I don't think it's related to the type of the file.

It is worth mentioning also that the exiftool linked to digiKam is version 13.00
Comment 4 caulier.gilles 2024-12-18 07:54:31 UTC
Please test with the new MacOS installer 8.6.0 pre-release available here :

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

Gilles Caulier
Comment 5 plus-unvaried-hut 2024-12-19 15:08:13 UTC
I tested it on the 8.6.0 pre-release. It worked for a couple of times then it crashed on the third.