Bug 382312

Summary: DigiKam crashes when renaming
Product: [Applications] digikam Reporter: kde
Component: Thumbs-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, gsking1, metzpinguin
Priority: NOR    
Version: 5.6.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.8.0
Attachments: The DebugView log

Description kde 2017-07-13 18:54:46 UTC
When trying to rename a batch of files (mp4 and JPEG) in DigiKam 5.6.0 on the most recent version of Windows 10, the app crashes after several files have been succesfully renamed.

The naming template was [date:"yyyyMMdd"]-[file].
Comment 1 caulier.gilles 2017-07-13 20:00:01 UTC
While renaming, run DebugView to idenify which file generate the crash.

I suspect an Exiv2 shared library problem.

See the details given in this page :

https://www.digikam.org/contribute/
Comment 2 kde 2017-07-14 06:13:04 UTC
Created attachment 106604 [details]
The DebugView log

The requested log from DebugView
Comment 3 Geoff King 2017-10-03 23:00:50 UTC
I also experienced a crash while renaming today.  However, I am on MacOS10.13 and Digikam 5.7.0.  The crash is dependent up on the number of files selected for the batch rename.  

It would crash when renaming >50 (approx) JPG files at a time.  Using this [date:"yyyyMMdd"]_[file]{unique}.

My crashes were repeatable if choosing many files (approx >50).  However, if I only renamed in batches of 25 or so, then I would not have any crashes.
Comment 4 caulier.gilles 2017-10-04 12:43:45 UTC
You must to know that video file support from Exiv2 is problematic (very bugous). Typically, all digiKam bundle that we provide have the video support disabled in Exiv2. Perhaps it's not enough, at least to not crash the application (from my side, it must be).

In this case, with Exiv2 video support disabled, the date is not taken from file metadata, but from file system date.

What's happen when you don't try to rename video files without to use the date rule ?

Gilles Caulier
Comment 5 caulier.gilles 2017-10-04 12:47:42 UTC
As i can see in debugview log :

00000634	164.76377869	[2500] digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :  F:/Collecties/Test/2017-05/20170517-GOPR0031.MP4: The file contains data of an unknown image type	

The video file sound like in F: drive. It's a removable media (as usb drive) ?

Gilles Caulier
Comment 6 Maik Qualmann 2017-10-17 18:35:51 UTC
Git commit 89e61652264777a38578c5bf9b944a4c82173294 by Maik Qualmann.
Committed on 17/10/2017 at 18:32.
Pushed by mqualmann into branch 'master'.

add backward QHash to the ImageInfo cache to resolve changed names
Related: bug 385592, bug 384577

M  +6    -0    libs/database/item/imageinfocache.cpp
M  +1    -0    libs/database/item/imageinfocache.h
M  +2    -2    libs/database/utils/dio.cpp

https://commits.kde.org/digikam/89e61652264777a38578c5bf9b944a4c82173294
Comment 7 Maik Qualmann 2017-10-21 15:36:05 UTC
I close the bug, if necessary reopen it.

Maik