Bug 346025

Summary: unable to add keywords to Database, unable to view keywords from past
Product: [Applications] digikam Reporter: unsecure
Component: Database-MigrationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: caulier.gilles, unsecure
Priority: NOR    
Version: 4.8.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: http://up.picr.de/21541942hn.png
Latest Commit: Version Fixed In: 4.10.0

Description unsecure 2015-04-09 17:04:50 UTC
After updating from Digikam 4.7 to 4.8 i wasn't able to add keywords to the Database anymore. Additional I'm not able to see keywords of photos which I added in past.

Reproducible: Always

Steps to Reproduce:
1. Try to add a keyword / view the keywords of a photo


Expected Results:  
Adding keywords should be possible, added keywords from past should be visible.
Comment 1 caulier.gilles 2015-04-09 18:04:44 UTC
Nothing has changed between 4.7.0 to 4.8.0 about tags management.

All work fine here.

I suspect a packaging problem with Ubuntu.

Also, please turn on debug space as explained here :

https://www.digikam.org/contrib

... And start digiKam from a console to see debug trace when you want to play with tags.

Gilles Caulier
Comment 2 unsecure 2015-04-09 18:48:55 UTC
curious...

after starting Digikam and selecting one photo:

after Starting Digikam

xyz@ThinkPad-T510:~$ digikam
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent 
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent 
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
void DBusMenuExporterPrivate::fillLayoutItem(DBusMenuLayoutItem*, QMenu*, int, int, const QStringList&): No id for action 
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent 

gdb shows nothing mistakenly... Will Digikam save some keywords in the photos or only in the Database? How can I check if there are valid Information?
Comment 3 caulier.gilles 2015-04-09 20:05:28 UTC
Most important is : 

digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent
digikam(9141)/digikam (core): Tag 0x31ab230 doesn't have a valid parent

Sound like a problem with your DB file.

Will Digikam save some keywords in the photos or only in the Database ?

This depend of your settings. digiKam always store in DB for performance reason. You can duplicate data in image metadata. This will help to restore DB is file is corrupted.

Gilles Caulier
Comment 4 unsecure 2015-04-12 09:08:17 UTC
thanks for your help. I deleted the old, broken DB-File and start Digikam. After a few minutes the new Database was created and the keywords are working again. Additional the old keywords had been restored from the pictures.