Bug 237104 - Very slow commit after tag change only in digikams image editor
Summary: Very slow commit after tag change only in digikams image editor
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Keywords (show other bugs)
Version: 1.2.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 14:11 UTC by krienke
Modified: 2019-08-20 03:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description krienke 2010-05-10 14:11:43 UTC
Version:           1.2.0 (using KDE 4.4.3)
OS:                Linux
Installed from:    openSUSE RPMs

I run digikam 1.2.0 on a Core Duo 3GHZ system with 4GB RAM using openSuSE 11.2 with KDE 4.4.3 . I have about 11000 photos I manage using digikam. 

Recently I added one new tag to a photo which has about 30 tags assigned which are also stored in the file itself. After checking the tag name in the right sidebar I clicked page up, to get to the next photo and nothing seemed to happen.  I can then see that one CPU core goes up to 100% and it takes about 10sec until the cursors changes to the busy shape and then some more seconds until the next photo is shown. During those 10sec digikam does not respond to any input, mouse clicks or whatever. The share Metadata to Nepomuk is not activated in digikam and in KDE I disabled Nepomuk-Strigi file indexer for this experiment.

This seems to  happen always with no matter what photo I try using imageeditor. If I do the same in digikams main window in its right side bar it takes about 2 or 3 sec until digikam is responsive again after appying the tag change. 

I think 10sec to apply one additional tag is quite a lot and it really makes walking through photos and setting tags a pain. Moreover its striking that I have to wait 10sec only if I set the tag in imge editor else its takes only 3 sec for the same task.

Thanks
Rainer Krienke
Comment 1 caulier.gilles 2010-05-10 14:15:47 UTC
Do you save digiKam information in image metadata ? Look in your setup metadata page.

Do you see any message from the console ?

Which file format you use, generated from which camera model ?

Which Exiv2 library version you use ?

Gilles Caulier
Comment 2 krienke 2010-05-10 14:57:08 UTC
Yes I confured digikam to save tag information, caption and rating information in the photo files (jpg).  But these information is saved always no matter if in imageeditor or in digikam main (icon view) windows. 

The exiv2-Version I have installed is 0.18.2. The camera is a Nikon D80, and the jpg was created from a RAW file using bibble4. 

On console there are some messages but if I  change the same photo file then messages are identically no matter if I set/unset a tag in image editor or in main window of digikam. So there is no difference in messages but in time. The messages are:

digikam(18022)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(18022)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 26214 entries considered invalid; not read.
Error: Directory NikonPreview with 30054 entries considered invalid; not read.
Error: Directory NikonPreview with 30054 entries considered invalid; not read.
digikam(18022)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/krienke/lib/photos/rainer/2008/USA-Westen/dsc_3575.jpg" 
digikam(18022)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/home/krienke/lib/photos/rainer/2008/USA-Westen/dsc_3575.jpg18022" 

The file /home/krienke/lib/photos/rainer/2008/USA-Westen/dsc_3575.jpg is owned by me (krienke) and writable and I started digikam as user krienke as well:

[krienke@bliss:~] 1005 > ll /home/krienke/lib/photos/rainer/2008/USA-Westen/dsc_3575.jpg
-rw-r--r-- 1 krienke employee 2883003 10. Mai 07:47 /home/krienke/lib/photos/rainer/2008/USA-Westen/dsc_3575.jpg


Thanks
Rainer
Comment 3 caulier.gilles 2010-05-10 15:06:43 UTC
Ok, This problem have been already reported in the past. Sound like a problem with Nikon tags access through Exiv2

I don't remember exactly which stable Exiv2 version you must use to fix it, but in all case code from trunk must be fine. After installing new Exiv2, you need to recompile libkexiv2, digiKam and kipi-plugins.

To be sure if digiKam use new Exiv2 version, go to Help/Components Info dialog.

Gilles Caulier
Comment 4 caulier.gilles 2010-06-07 10:14:38 UTC

*** This bug has been marked as a duplicate of bug 218633 ***
Comment 5 caulier.gilles 2019-08-20 03:47:41 UTC
Fixed with bug #218633