Bug 348586

Summary: digikam does not write description to XMP sidecar file anymore
Product: [Applications] digikam Reporter: Knut Hildebrandt <post>
Component: Metadata-SidecarAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bcooksley, caulier.gilles, metzpinguin
Priority: NOR    
Version: 4.10.0   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0
Sentry Crash Report:

Description Knut Hildebrandt 2015-06-02 13:07:26 UTC
Just upgraded my Chakra Linux to the latest KDE 4 including digikam to 4.10.0. When I write the metadata to the XML sitecard files now the entry for the description <dc:description> is missing. Digikam 4.9 still was writing the informaion to the file.

Reproducible: Always

Steps to Reproduce:
1. enter a description in digicam
2. write it to the XML sitecard file
3. open XML sitecard file in Kate
4. search for <dc:description>

Actual Results:  
<dc:description> is not in the file.

Expected Results:  
<dc:description> should be in the file.

My Chakra is up-to-date.
Comment 1 caulier.gilles 2015-06-02 13:19:56 UTC
Nothing has changed in source code about this topic between 4.9.0 and 4.10.0 as i know... 

Where in GUI do you patch comment for your image ? digiKam Comments/Tags from Right sidebar ?

Did you use Exiv2 compiled with XMP support ? Look in Help/Components Info dialog for details.

Did you turn on right option in Setup/Metadata config panel ?

Gilles Caulier
Comment 2 Knut Hildebrandt 2015-06-02 14:22:06 UTC
(In reply to Gilles Caulier from comment #1)
> Where in GUI do you patch comment for your image ? digiKam Comments/Tags
> from Right sidebar ?

In the Description tab on the right sidebar I fill in Title and Caption.
Title used to be stored in <dc:title> and still is. Caption used to be stored in  <dc:description> but is not anymore.

> Did you use Exiv2 compiled with XMP support ? Look in Help/Components Info
> dialog for details.
don't know. But I just see, that kdegraphics-libkexiv2 was updated from 15.04.0-1 to 15.04.1-1 today. Will downgrade and check again. 

> Did you turn on right option in Setup/Metadata config panel ?
I did not change the settings. Following are enabled:

Image tags
Caption and title
Rating
Pick label
Colour label
Timestamp
Metadata templates (Copyright etc.)

Further are enabled:

Write to sidecar files (Write to XMP sidecar only)
Update file timestamp when files are modified
Comment 3 caulier.gilles 2015-06-02 15:25:17 UTC
> Did you use Exiv2 compiled with XMP support ? Look in Help/Components Info
> dialog for details.
don't know. But I just see, that kdegraphics-libkexiv2 was updated from
15.04.0-1 to 15.04.1-1 today. Will downgrade and check again.

==> Look in digiKam help/component info dialog !
Comment 4 Knut Hildebrandt 2015-06-02 16:18:17 UTC
(In reply to Gilles Caulier from comment #3)
> > Did you use Exiv2 compiled with XMP support ? Look in Help/Components Info
> > dialog for details.
> don't know. But I just see, that kdegraphics-libkexiv2 was updated from
> 15.04.0-1 to 15.04.1-1 today. Will downgrade and check again.
> 
> ==> Look in digiKam help/component info dialog !
digiKam version 4.10.0
CPU cores: 4
Demosaic GPL2 pack support: Unknown
Demosaic GPL3 pack support: Unknown
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibEigen: 3.2.4
LibExiv2: 0.24
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.14.8
LibKExiv2: 2.4.0
LibKGeoMap: 3.1.0
LibKdcraw: 2.4.2
LibLCMS: 119
LibLensFun: 0.3.0-0
LibLqr support: yes
LibPGF: 6.14.12
LibPNG: 1.6.17
LibQt: 4.8.6
LibRaw: 0.15.4
LibTIFF: LIBTIFF, Version 4.0.3 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.21.1 (stable release)
Parallelised demosaicing: Unknown
RawSpeed codec support: Unknown
Baloo support: Yes
Database backend: QSQLITE
Kdepimlibs support: Yes
Kipi-Plugins: 4.10.0
LibGphoto2: 2.5.4
LibKface: 3.5.0
LibKipi: 2.2.0
LibOpenCV: 2.4.10
Sqlite2 support: no
Comment 5 Knut Hildebrandt 2015-06-02 16:37:49 UTC
Well, I just noticed more problems. In digikam I can't save any changes to the metadata anymore. Furthermore Dropbox and Copy.com have severe problems too. Both can't access their sqlite database. Since I made system upgrade today I suppose this somehow fucked up some important components. Will downgrade the system and start all over again.
Comment 6 caulier.gilles 2015-06-02 17:19:19 UTC
Just to be sure, run kdebugdialog to enable debug trace on the console and run digiKam following instructions here :

https://www.digikam.org/contrib

Gilles Caulier
Comment 7 Knut Hildebrandt 2015-06-02 23:16:35 UTC
Ok, downgraded the whole system and installed digikam 4.10 and kdegraphics-libkexiv2 15.04.1-1.

When I change the Title of a picture an click the next one I get following output i gdb:

digikam(19668)/digikam (core) Digikam::DatabaseCoreBackendPrivate::checkRetrySQLiteLockError: Database is locked. Waited 0
digikam(19668)/digikam (core) Digikam::MetadataHub::writeToBaloo: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam(19668)/digikam (core) Digikam::DMetadata::setImageTitles: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Title:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImageComments: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Comment:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("Di. Jun 2 20:30:34 2015")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImagePickLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Pick Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageColorLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Color Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(19668)/digikam (core) Digikam::DMetadata::setMetadataTemplate: Applying Metadata Template:  "persönliche Angaben"  ::  ("Knut Hildebrandt")
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcTagsStringList: /run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef  :  Iptc.Application2.Byline  =>  Knut Hildebrandt
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Authors Title :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Credit :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Source :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Copyright :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Instructions :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country Code :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  City :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  SubLocation :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Province/State :  ""
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::getIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Read Iptc Keywords:  ()
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> New Iptc Keywords:  ("bla", "bla", "bla",)
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 1
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Will write XMP sidecar for file "knut_hildebrandt-digi0635_01.nef"
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteComment:  false
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteEXIF:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteIPTC:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteXMP:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::printExiv2MessageHandler: Exiv2 ( 3 ) :  Fehler des XMP-Werkzeugsatzes 4: Invalid UTF-8 data byte
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::printExiv2MessageHandler: Exiv2 ( 3 ) :  Failed to encode XMP metadata.
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' "knut_hildebrandt-digi0635_01.nef" ' written to XMP sidecar.
digikam(19668)/digikam (core) Digikam::DImg::load: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  : RAW file identified
digikam(19668)/digikam (core) Digikam::ImageScanner::commit: Scanning took 30 ms
digikam(19668)/digikam (core) Digikam::ImageScanner::~ImageScanner: Finishing took 60 ms
digikam(19668)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter"

The sidecar file looks like this:
<?xml version="1.0" encoding="UTF-8"?>

When I change the Caption of a picture an click the next one I get following output i gdb:

digikam(19668)/digikam (core) Digikam::DatabaseCoreBackendPrivate::checkRetrySQLiteLockError: Database is locked. Waited 0
digikam(19668)/digikam (core) Digikam::MetadataHub::writeToBaloo: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam(19668)/digikam (core) Digikam::DMetadata::setImageTitles: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Title:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImageComments: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Comment:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("Mi. Jun 3 00:56:57 2015")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImagePickLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Pick Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageColorLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Color Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(19668)/digikam (core) Digikam::DMetadata::setMetadataTemplate: Applying Metadata Template:  "persönliche Angaben"  ::  ("Knut Hildebrandt")
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcTagsStringList: /run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef  :  Iptc.Application2.Byline  =>  Knut Hildebrandt
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Authors Title :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Credit :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Source :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Copyright :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Instructions :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country Code :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  City :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  SubLocation :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Province/State :  ""
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::getIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Read Iptc Keywords:  ()
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> New Iptc Keywords:  ("bla", "bla", "bla")
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 1
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Will write XMP sidecar for file "knut_hildebrandt-digi0635_01.nef"
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteComment:  false
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteEXIF:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteIPTC:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteXMP:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' "knut_hildebrandt-digi0635_01.nef" ' written to XMP sidecar.
digikam(19668)/digikam (core) Digikam::DImg::load: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  : RAW file identified
digikam(19668)/digikam (core) Digikam::ImageScanner::commit: Scanning took 16 ms
digikam(19668)/digikam (core) Digikam::ImageScanner::~ImageScanner: Finishing took 5 ms
digikam(19668)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter"
[New Thread 0x7fffad254700 (LWP 20868)]

The sidecar file looks normal but lacks the <dc:description> entry for the Caption.


When I change a Tag of a picture an click the next one I get following output i gdb:

digikam(19668)/digikam (core) Digikam::DatabaseCoreBackendPrivate::checkRetrySQLiteLockError: Database is locked. Waited 0
digikam(19668)/digikam (core) Digikam::MetadataHub::writeToBaloo: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam(19668)/digikam (core) Digikam::DMetadata::setImageTitles: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Title:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImageComments: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Comment:  QMap(("x-default", CaptionValues::caption: "blablabla", CaptionValues::author: "", CaptionValues::date: QDateTime("Mi. Jun 3 00:56:57 2015")  ) )
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/digikam (core) Digikam::DMetadata::setImagePickLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Pick Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageColorLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Color Label:  0
digikam(19668)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(19668)/digikam (core) Digikam::DMetadata::setMetadataTemplate: Applying Metadata Template:  "persönliche Angaben"  ::  ("Knut Hildebrandt")
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcTagsStringList: /run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef  :  Iptc.Application2.Byline  =>  Knut Hildebrandt
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Authors Title :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Credit :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Source :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Copyright :  "Knut Hildebrandt"
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Instructions :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Country Code :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  City :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  SubLocation :  ""
digikam(19668)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==>  Province/State :  ""
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::getIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> Read Iptc Keywords:  ()
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::setIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter/knut_hildebrandt-digi0635_01.nef"  ==> New Iptc Keywords:  ("bla", "bla", "bla")
digikam(19668)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 1
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Will write XMP sidecar for file "knut_hildebrandt-digi0635_01.nef"
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteComment:  false
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteEXIF:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteIPTC:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteXMP:  true
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::printExiv2MessageHandler: Exiv2 ( 3 ) :  Fehler des XMP-Werkzeugsatzes 4: Invalid UTF-8 data byte
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::Private::printExiv2MessageHandler: Exiv2 ( 3 ) :  Failed to encode XMP metadata.
digikam(19668)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' "knut_hildebrandt-digi0635_01.nef" ' written to XMP sidecar.
digikam(19668)/digikam (core) Digikam::DImg::load: "/run/media/knut/Bildarchive/Bildarchiv1a/bla/knut_hildebrandt-digi0635_01.nef"  : RAW file identified
digikam(19668)/digikam (core) Digikam::ImageScanner::commit: Scanning took 15 ms
digikam(19668)/digikam (core) Digikam::ImageScanner::~ImageScanner: Finishing took 6 ms
[New Thread 0x7fffad254700 (LWP 22476)]
digikam(19668)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0635-Hessen-Felsberg-Kletter-Retter"
[New Thread 0x7fff2f7fe700 (LWP 22478)]

And the sidecar file looks like this again:
<?xml version="1.0" encoding="UTF-8"?>

Changed all the contents to blabla etc.

Next I will downgrade to 4.9 and run the tests again.
Comment 8 Knut Hildebrandt 2015-06-02 23:36:53 UTC
Well, downgraded again using this command:

sudo pacman -U /var/cache/pacman/pkg/chakra-common-15.04.0-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/oxygen-icons-15.04.0-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/kdelibs-4.14.7-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/kdegraphics-libkexiv2-15.04.0-1-x86_64.pkg.tar.xz /var/cache/pacman/pkg/digikam-4.9.0-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/digikam-debug-4.9.0-2-x86_64.pkg.tar.xz

And ran the same test mentioned in the last post. Now all metadata are written correctly into the sicecar files.
Comment 9 caulier.gilles 2015-06-03 05:16:37 UTC
digikam(19668)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 

This is the problem : ACDSEE namespace not recognized.

It's libkexiv2 to upgrade, not downgrade. We have patched all libkexiv2 for KDE 4.10.x yesterday evening to include this namespace.
Comment 10 Knut Hildebrandt 2015-06-03 05:53:59 UTC
(In reply to Gilles Caulier from comment #9)
> This is the problem : ACDSEE namespace not recognized.
Okay, I try it out as soon as the changes find their way into the Chakra repositories.

> It's libkexiv2 to upgrade, not downgrade. We have patched all libkexiv2 for KDE 4.10.x yesterday evening to include this namespace.
But everything works fine again after the downgrade to digikam 4.9.0 and kdegraphics-libkexiv2 15.04.0.
Comment 11 caulier.gilles 2015-06-03 05:56:50 UTC
>But everything works fine again after the downgrade to digikam 4.9.0 and kdegraphics-libkexiv2 15.04.0.

It's normal, ACDSee support have been introduced with digiKam 4.10.0

Gilles Caulier
Comment 12 caulier.gilles 2015-06-03 05:58:00 UTC
Git commit c82033b16e8e225bd63a325d9c2b0a16450f2775 by Maik Qualmann.
Committed on 02/06/2015 at 17:26.
Pushed by mqualmann into branch 'Applications/14.12'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/c82033b16e8e225bd63a325d9c2b0a16450f2775

diff --git a/libkexiv2/kexiv2.cpp b/libkexiv2/kexiv2.cpp
index 65af6fb..21f3b47 100644
--- a/libkexiv2/kexiv2.cpp
+++ b/libkexiv2/kexiv2.cpp
@@ -110,6 +110,7 @@ bool KExiv2::initializeExiv2()
     registerXmpNameSpace(QString("http://ns.adobe.com/lightroom/1.0/"), QString("lr"));
     registerXmpNameSpace(QString("http://www.digikam.org/ns/kipi/1.0/"), QString("kipi"));
     registerXmpNameSpace(QString("http://ns.microsoft.com/photo/1.2/"), QString("MP"));
+    registerXmpNameSpace(QString("http://ns.acdsee.com/iptc/1.0/"), QString("acdsee"));

 #endif // _XMP_SUPPORT_

@@ -124,6 +125,7 @@ bool KExiv2::cleanupExiv2()
     unregisterXmpNameSpace(QString("http://ns.adobe.com/lightroom/1.0/"));
     unregisterXmpNameSpace(QString("http://www.digikam.org/ns/kipi/1.0/"));
     unregisterXmpNameSpace(QString("http://ns.microsoft.com/photo/1.2/"));
+    unregisterXmpNameSpace(QString("http://ns.acdsee.com/iptc/1.0/"));

     Exiv2::XmpParser::terminate();
Comment 13 caulier.gilles 2015-06-03 05:58:12 UTC
Git commit f2c866b5ab264300d414415c1c2303fae73812d8 by Maik Qualmann.
Committed on 02/06/2015 at 17:31.
Pushed by mqualmann into branch 'Applications/15.04'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/f2c866b5ab264300d414415c1c2303fae73812d8
Comment 14 caulier.gilles 2015-06-03 05:58:20 UTC
Git commit da1ef4aff688ce1b99ed5a95b7943e17551bc3c6 by Maik Qualmann.
Committed on 02/06/2015 at 17:34.
Pushed by mqualmann into branch 'KDE/4.10'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/da1ef4aff688ce1b99ed5a95b7943e17551bc3c6
Comment 15 caulier.gilles 2015-06-03 05:58:29 UTC
Git commit 56efea238609b5cb822b5f03c3df783ed31a3373 by Maik Qualmann.
Committed on 02/06/2015 at 17:39.
Pushed by mqualmann into branch 'KDE/4.11'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/56efea238609b5cb822b5f03c3df783ed31a3373
Comment 16 caulier.gilles 2015-06-03 05:58:37 UTC
Git commit f29eccbb0e4fbef646884d4861b2468fb8caa6aa by Maik Qualmann.
Committed on 02/06/2015 at 17:41.
Pushed by mqualmann into branch 'KDE/4.12'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/f29eccbb0e4fbef646884d4861b2468fb8caa6aa
Comment 17 caulier.gilles 2015-06-03 05:58:45 UTC
Git commit 8a00a8434e44e6785a5abd3f38cd7e6993ac1fd1 by Maik Qualmann.
Committed on 02/06/2015 at 17:43.
Pushed by mqualmann into branch 'KDE/4.13'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/8a00a8434e44e6785a5abd3f38cd7e6993ac1fd1
Comment 18 caulier.gilles 2015-06-03 05:58:52 UTC
Git commit 59ed3a9603b00a565e1364bf59031b77c8066340 by Maik Qualmann.
Committed on 02/06/2015 at 17:44.
Pushed by mqualmann into branch 'KDE/4.14'.

namespace from ACDSee added

M  +2    -0    libkexiv2/kexiv2.cpp

http://commits.kde.org/libkexiv2/59ed3a9603b00a565e1364bf59031b77c8066340
Comment 19 Knut Hildebrandt 2015-06-24 10:48:08 UTC
Updated my system various times after you committed the changes that should fix the bug, but I still have problems. Please read my last bug report on Chakra Linux regarding the problem:

There still is an issue after update to digikam-4.11.0-1 and kdegraphics-libkexiv2-15.04.2-1. If I change Captions after Title the <dc:description> tag disappears. When I change Title after Captions it reappears again. The same is true for other meta data. If I change them after changing Captions they cause <dc:description> to be written to the sidecar file again. Only changing Caption last makes <dc:description> disappear from the file. Weird.

They whole thread can be found here:

http://chakraos.org/bugtracker/index.php?do=details&task_id=1029
Comment 20 Maik Qualmann 2015-06-24 17:06:35 UTC
Are there any messages on the console when digiKam start from there? Perhaps now is the DB no longer synron with sidecar files that you have edited with digiKam 4.10.0, because the metadata has not been written in the sidecar files.

Maik
Comment 21 Knut Hildebrandt 2015-06-25 00:13:32 UTC
(In reply to Maik Qualmann from comment #20)
> Are there any messages on the console when digiKam start from there?

That's what came out after changing Captions and saving these changes:

digikam(16934)/digikam (core) Digikam::MetadataHub::writeToBaloo: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam(16934)/digikam (core) Digikam::DMetadata::setImageTitles: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Title:  QMap(("x-default", CaptionValues::caption: "xxxxxxxxxxx", CaptionValues::author: "", CaptionValues::date: QDateTime("")  ) )
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/digikam (core) Digikam::DMetadata::setImageComments: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Comment:  QMap(("x-default", CaptionValues::caption: "xxxxxxxxxxx", CaptionValues::author: "", CaptionValues::date: QDateTime("Do. Jun 25 01:52:20 2015")  ) )
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/digikam (core) Digikam::DMetadata::setImagePickLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Pick Label:  0
digikam(16934)/digikam (core) Digikam::DMetadata::setImageColorLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Color Label:  0
digikam(16934)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(16934)/digikam (core) Digikam::DMetadata::setMetadataTemplate: Applying Metadata Template:  "persönliche Angaben"  ::  ("Knut Hildebrandt")
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::setIptcTagsStringList: /run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef  :  Iptc.Application2.Byline  =>  Knut Hildebrandt
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Authors Title :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Credit :  "Knut Hildebrandt"
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Source :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Copyright :  "Knut Hildebrandt"
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Instructions :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Country :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Country Code :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  City :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  SubLocation :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Province/State :  ""
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::getIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Read Iptc Keywords:  ()
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::setIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> New Iptc Keywords:  ("Europa; Europe", "Deutschland; Germany")
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 1
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: Will write XMP sidecar for file "knut_hildebrandt-digi0639_01.nef"
digikam(16934)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015"
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteComment:  false
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteEXIF:  true
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteIPTC:  true
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteXMP:  true
digikam(16934)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015"
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' "knut_hildebrandt-digi0639_01.nef" ' written to XMP sidecar.
digikam(16934)/digikam (core) Digikam::DImg::load: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  : RAW file identified
digikam(16934)/digikam (core) Digikam::ImageScanner::commit: Scanning took 193 ms
digikam(16934)/digikam (core) Digikam::ImageScanner::~ImageScanner: Finishing took 68 ms

After saving the changes the <dc:description> tag disappeared again.



And that is the output after changing Title and saving the changes:

digikam(16934)/digikam (core) Digikam::MetadataHub::writeToBaloo: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam(16934)/digikam (core) Digikam::DMetadata::setImageTitles: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Title:  QMap(("x-default", CaptionValues::caption: "xxxxxxxxx", CaptionValues::author: "", CaptionValues::date: QDateTime("")  ) )
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/digikam (core) Digikam::DMetadata::setImageComments: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Comment:  QMap(("x-default", CaptionValues::caption: "xxxxxxxxx", CaptionValues::author: "", CaptionValues::date: QDateTime("Do. Jun 25 02:06:27 2015")  ) )
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/digikam (core) Digikam::DMetadata::setImagePickLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Pick Label:  0
digikam(16934)/digikam (core) Digikam::DMetadata::setImageColorLabel: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Color Label:  0
digikam(16934)/digikam (core) Digikam::DMetadata::setImageRating: Rating value to write is out of range!
digikam(16934)/digikam (core) Digikam::DMetadata::setMetadataTemplate: Applying Metadata Template:  "persönliche Angaben"  ::  ("Knut Hildebrandt")
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::setIptcTagsStringList: /run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef  :  Iptc.Application2.Byline  =>  Knut Hildebrandt
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Authors Title :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Credit :  "Knut Hildebrandt"
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Source :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Copyright :  "Knut Hildebrandt"
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Instructions :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Country :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Country Code :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  City :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  SubLocation :  ""
digikam(16934)/digikam (core) Digikam::DMetadata::setIptcTag: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==>  Province/State :  ""
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::getIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> Read Iptc Keywords:  ()
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::setIptcKeywords: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  ==> New Iptc Keywords:  ("Europa; Europe", "Deutschland; Germany")
digikam(16934)/KEXIV2: Cannot remove Xmp tag using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2: Cannot set Xmp tag string into image using Exiv2   (Error # 35 :  Keine Namensrauminformation für den XMP-Präfix `acdsee' verfügbar 
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: KExiv2::metadataWritingMode 1
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: Will write XMP sidecar for file "knut_hildebrandt-digi0639_01.nef"
digikam(16934)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015"
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteComment:  false
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteEXIF:  true
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteIPTC:  true
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::Private::saveOperations: wroteXMP:  true
digikam(16934)/digikam (core) Digikam::AlbumWatch::rescanDirectory: Detected change, triggering rescan of directory "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015"
digikam(16934)/KEXIV2 KExiv2Iface::KExiv2::save: Metadata for file ' "knut_hildebrandt-digi0639_01.nef" ' written to XMP sidecar.
digikam(16934)/digikam (core) Digikam::DImg::load: "/run/media/knut/Bildarchive/Bildarchiv1a/digi0639-Berlin-Rikscha_2015/knut_hildebrandt-digi0639_01.nef"  : RAW file identified
digikam(16934)/digikam (core) Digikam::ImageScanner::commit: Scanning took 11 ms
digikam(16934)/digikam (core) Digikam::ImageScanner::~ImageScanner: Finishing took 4 ms

After applying these changes  the <dc:description> tag reappeared again.

Hope this helps.

Knut

BTW, right now digikam-4.11.0-1, exiv2-0.24-1 and kdegraphics-libkexiv2-15.04.2-1 are installed and the rest of the system is up-to-date.
Comment 22 caulier.gilles 2015-06-25 01:40:37 UTC
Baloo support is activated on your computer. Deactivate ir and try again to see any changes....

Gillles Caulier
Comment 23 caulier.gilles 2015-06-25 07:42:22 UTC
Ben,

The libkexiv2 tarball for 15.04.2 do not include the patch. We have patched the other KDE branch. Did we miss something here ?

Thanks in advance

Gilles Caulier
Comment 24 Knut Hildebrandt 2015-06-25 08:01:12 UTC
(In reply to Gilles Caulier from comment #22)
> Baloo support is activated on your computer. Deactivate ir and try again to
> see any changes....

Hey  Gillles,

Baloo support was NOT activated. Since I thought something was wrong with the configuration  I activated it to just deactivate it immediately after. That caused all meta data to disappear in digikam. Since I wanted to prevent digikam writing these "changes" to the sidecar files I killed it. While restarting it In got following error messages:

Restart with existing old DB:
The database is not valid: the "DBVersion" setting does not exist. The current database schema version cannot be verified. Try to start with an empty database.

Only the second restart brought up this:
The schema updating process from version 4 to 6 failed, caused by an error that we did not expect. You can try to discard your old database and start with an empty one. (In this case, please move the database files "digikam3.db" and "digikam4.db" from the directory "/run/media/knut/Bildarchive"). More probably you will want to report this error to the digikam-devel@kde.org mailing list. As well, please have a look at what digiKam prints on the console. 

Went back to an older version of the database where only the meta data of two albums should have been missing. Unfortunately no tags where shown in digikam for all RAW data pictures (nef) whose meta data had been saved to XMP sidecar files. But In could reimport them from the sidecar files. Now only the Tile and Description of a few pictures are missing, probably because I had changed them with one of the affected versions of digikam and thus they were missing in the sidecar files. The positive side; after reentering them I'll make sure they will be in the sidecar files.

Cheers Knut
Comment 25 Knut Hildebrandt 2015-06-25 08:03:42 UTC
(In reply to Gilles Caulier from comment #23)
> The libkexiv2 tarball for 15.04.2 do not include the patch. We have patched
> the other KDE branch. Did we miss something here ?

Hey Gilles,

would be great if you could patch the other branch. Them I let the Chakra guys know about the fix.

Knut
Comment 26 Knut Hildebrandt 2015-06-25 09:37:20 UTC
> Unfortunately no tags where shown in digikam for all RAW data pictures (nef) whose meta data had been saved to XMP sidecar files.

Just noticed a mistake I made. I went back to a version of the database that was older than the above mentioned pictures whose meta data were missing in the database. Thus they couldn't have been in it. Nevertheless they should have been in the XML sidecar files. But there they obviously were missing due to this bug.
Comment 27 Knut Hildebrandt 2015-07-23 16:55:01 UTC
Okay, the bug seems to be fixed. After the last update of Chakra Linux I have digikam 4.11 and libkexiv2 15.04.3 on the system. With these everything works as expected.

Thanks for fixing.
Comment 28 Knut Hildebrandt 2015-09-04 11:02:27 UTC
Just archived a MP4 video with digikam 4.12 using libkexiv2 15.04.3 and there were no meta data written to the respective sidecar file even though the file had been generated. Is this a bug or does this feature not yet exist?
Comment 29 caulier.gilles 2015-09-04 11:13:31 UTC
For video file support about metadat you need Exiv2 library 0.25.0

Gilles Caulier
Comment 30 Knut Hildebrandt 2015-09-04 12:49:58 UTC
(In reply to Gilles Caulier from comment #29)
> For video file support about metadat you need Exiv2 library 0.25.0
Okay, then that's the solution to my problem. Chakra until now only provides 0.24. Thanks for your quick answer.