Bug 346025 - unable to add keywords to Database, unable to view keywords from past
Summary: unable to add keywords to Database, unable to view keywords from past
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Migration (show other bugs)
Version: 4.8.0
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Digikam Developers
URL: http://up.picr.de/21541942hn.png
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-09 17:04 UTC by unsecure
Modified: 2017-07-26 07:17 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.