Bug 452539 - People tags are not shown correctly
Summary: People tags are not shown correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: 7.6.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-12 06:47 UTC by Jens Kattmann
Modified: 2022-10-02 19:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments
Screenshots of sections (294.29 KB, image/png)
2022-04-12 06:47 UTC, Jens Kattmann
Details
Terminal Log (3.80 MB, text/rtf)
2022-04-13 08:26 UTC, Jens Kattmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Kattmann 2022-04-12 06:47:12 UTC
Created attachment 148114 [details]
Screenshots of sections

SUMMARY
When browsing through the tags in the People section, there are a lot of items with empty query results.

When I do the same in the Tags section under People, those the correct results are shown.

I've tried rescanning faces and cleaning up the database with no positive effects.


STEPS TO REPRODUCE
1.  go to the People section 
2.  click on a random item
3.  see an empty result
4.  go to the Tags section
5.  select "People"
6.  select corresponding item to #2
7.  see list of photos

OBSERVED RESULT

results missing in People section

EXPECTED RESULT

getting the same result as in Tags section

SOFTWARE/OS VERSIONS
Windows: 
macOS: 12.3.1
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2022-04-12 08:52:30 UTC
This is not a bug. In the tags tree, the images have assigned the keyword. In the people view, only images are displayed where there is also a face region for this tag name.

Maik
Comment 2 Jens Kattmann 2022-04-12 11:01:59 UTC
(In reply to Maik Qualmann from comment #1)
> This is not a bug. In the tags tree, the images have assigned the keyword.
> In the people view, only images are displayed where there is also a face
> region for this tag name.
> 
> Maik

I did not check every single photo, but the ones I checked all have properly tagged face regions.
So, if this is not a bug, my database seems to be corrupted. Is there a way to fix this?

Jens
Comment 3 Maik Qualmann 2022-04-12 20:24:23 UTC
Preview the image and enable face region display. Do you have face regions that have the tag name under the face region? Then the images must be displayed in the People view. The face regions come from the database even in the preview.
Otherwise post the messages with enabled Qt-Debug variable when you start digiKam in the terminal as also described here for MacOS:

https://www.digikam.org/contribute/

Maik
Comment 4 Jens Kattmann 2022-04-13 08:26:28 UTC
Created attachment 148127 [details]
Terminal Log
Comment 5 Jens Kattmann 2022-04-13 08:27:17 UTC
Added the log as an attachment as it's too long for a comment.
Comment 6 Maik Qualmann 2022-04-13 10:35:00 UTC
Your digikam4.db is corrupt. In principle, it is difficult to repair, since under MacOS you would have to install the SQLite Utilities. And then there is no guarantee that a repair will succeed. You could try exporting the database to a new database using the database migration tool under digiKam. Then copy the exported database back to the old location.

Error messages: "Der Datensatz konnte nicht abgeholt werden" "database disk image is malformed" "11" 1

Maik
Comment 7 Maik Qualmann 2022-04-13 10:40:52 UTC
What leads to such database corruption is unknown. As a developer, I often have digiKam crashes to test bug reports. However, I have never had a corrupted SQLite or MySQL database before.
You should definitely check your drive for errors.

Maik