Bug 493106 - After ignoring one face in a photo, all other face rectangles vanish
Summary: After ignoring one face in a photo, all other face rectangles vanish
Status: REOPENED
Alias: None
Product: digikam
Classification: Applications
Component: Faces-Workflow (show other bugs)
Version: 8.5.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-14 10:04 UTC by Jens
Modified: 2024-12-01 09:04 UTC (History)
3 users (show)

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


Attachments
Settings "Write to metadata" (57.26 KB, image/png)
2024-09-14 22:05 UTC, Eugen Albiker
Details
More Settings (92.75 KB, image/png)
2024-09-14 22:12 UTC, Eugen Albiker
Details
Settings for sidecars (87.44 KB, image/png)
2024-09-15 19:38 UTC, Eugen Albiker
Details
debug-log (127.36 KB, text/plain)
2024-09-30 20:22 UTC, Eugen Albiker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2024-09-14 10:04:19 UTC
SUMMARY: See $SUBJECT

STEPS TO REPRODUCE
1. Detect and recognize faces in a picture
2. Enter this picture and let Digikam show all face rectangles, some of which should be detected, but not be recognized
3. Click "Ignore this face" on one face

OBSERVED RESULT
Sometimes (not always) this will lead to all other face rectangles going away. No further face confirmation is possible.

EXPECTED RESULT
The face should be ignored, this should not change the display of all other face rectangles.

SOFTWARE/OS VERSIONS: Digikam Linux x86-64 qt5 appimage of 2024-09-08 10:01, @3dd4bc0d2c
Comment 1 caulier.gilles 2024-09-14 10:22:17 UTC
you uses the qt5 appimage. it's the same behaviors with the qt6 ?
Comment 2 Maik Qualmann 2024-09-14 10:33:42 UTC
I obviously can't reproduce this here, I ignored faces in several group photos.
Do you write face metadata into the images?

Try to create a log from the terminal when the problem occurs.

Maik
Comment 3 Eugen Albiker 2024-09-14 22:05:51 UTC
Created attachment 173667 [details]
Settings "Write to metadata"
Comment 4 Eugen Albiker 2024-09-14 22:08:09 UTC
Hi,

I can also see this behaviour (sometimes)
Attached I have uploaded my settings and I am using the Linux Qt6 AppImage Versions.
I could also mail you a private video showing the issue (I think I could  record it , because it happens sometimes).

Greetings
Eugen
Comment 5 Maik Qualmann 2024-09-14 22:10:26 UTC
Sidecars? Lazy Sync?

Maik
Comment 6 Eugen Albiker 2024-09-14 22:12:51 UTC
Created attachment 173668 [details]
More Settings

Sorry - I don't know what Sidecars and Lazy Sync is... This settings?
Comment 7 caulier.gilles 2024-09-15 06:41:48 UTC
Sidecars are metadata image file companions to store XMP information. digiKam can be configured to read/write information on this file priors than image file as well.

https://en.wikipedia.org/wiki/Sidecar_file
https://en.wikipedia.org/wiki/Extensible_Metadata_Platform

https://docs.digikam.org/en/setup_application/metadata_settings.html#sidecars-settings

Lazy sync is an optional digiKam mechanism to delay the file metadata flush on the disk when user end to play to the images. Typically, at end of digiKam session, when you take a coffee, a shower, or during the night. 

https://docs.digikam.org/en/setup_application/metadata_settings.html#behavior-settings

All these options are located in the digiKam Seup/Metadata view.

Gilles Caulier
Comment 8 Maik Qualmann 2024-09-15 06:58:48 UTC
Git commit 5e8629c22dc94a259b9a31cdf30f269ab1b1ae35 by Maik Qualmann.
Committed on 15/09/2024 at 06:57.
Pushed by mqualmann into branch 'master'.

try with timer to randomly go to the next face

M  +4    -4    core/utilities/facemanagement/items/facegroup.cpp
M  +1    -1    core/utilities/facemanagement/items/facegroup.h
M  +1    -0    core/utilities/facemanagement/items/facegroup_p.h

https://invent.kde.org/graphics/digikam/-/commit/5e8629c22dc94a259b9a31cdf30f269ab1b1ae35
Comment 9 Eugen Albiker 2024-09-15 19:38:32 UTC
Created attachment 173703 [details]
Settings for sidecars

Hi,

my Settings for Sidecars.
I haven't tried it with your newest patch. I will try it next days.

Greetings
Eugen
Comment 10 Eugen Albiker 2024-09-22 21:18:55 UTC
HI,

today I tried digiKam-8.5.0-20240922T160121-Qt6-x86-64 Appimage and the error seems to be gone.
Issue can be closed

Greetings
Eugen
Comment 11 Eugen Albiker 2024-09-25 19:09:18 UTC
Hi,

I have to reopen this issue, because I found cases where this issue raised again.
Happily I have recorded 3 screencasts which shows the issue.

I can mail you the videos to your personal e-mail - please contact me to give me your email address.

Greetings
Eugen
Comment 12 Maik Qualmann 2024-09-25 20:35:19 UTC
If you have found "cases" where the problem occurs, what distinguishes the "cases" from normal behavior?
Videos don't really help here, exact description, whether it occurs with a certain type of image, the file may be write-protected, etc. We can do more with a log from the terminal than with a video.

Maik
Comment 13 Eugen Albiker 2024-09-26 21:03:57 UTC
Hi Maik,

I will try to make a log - but I don't know how.
I have downloaded the debug-appimage and started it from console. A lot of text will be printed in console...
And now? Can you give me a link to a website, which describes the next steps...

greetings Eugen
Comment 14 caulier.gilles 2024-09-27 02:45:23 UTC
Hi,

We explain the rules in the contrib web page of the project :

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

Typically the trace on the console contains all the step done by digiKam when it process the face management. When you ignore a face with the gui, take care of the messages printed on the console, it must contains the files and the face tags procesed. We are interresed by these information and by files + xmp sidecars from your collection to try to reproduce the problem.

Best

Gilles Caulier
Comment 15 Eugen Albiker 2024-09-30 20:22:38 UTC
Created attachment 174243 [details]
debug-log
Comment 16 Eugen Albiker 2024-09-30 20:23:11 UTC
Hi,

after tag several faces in pictures I got it. The rectangles vanish after I tag a name to a face.
log is included.

It happened with the picture DSC_2418.JPG.
System: Linux with digiKam-8.5.0-20240930T160105-Qt6-x86-64-debug.appimage
Steps:
a) Left Menu "Person" -> Goto my drawer "Albiker" -> Goto a name in that drawer "Simon Albiker"
b) click picture  DSC_2418.JPG which contains 3 faces. In the picture only one face is already tagged as "Simon Albiker"
c) Tag face 2
d) Tag face 3
e) Now all faces are tagged --> rectangles on the whole picture vanish

I hope I have not missed any relevant information
Comment 17 Maik Qualmann 2024-10-01 10:40:43 UTC
Git commit 1ab772520179a42c0070d30577514e1a40c2adbc by Maik Qualmann.
Committed on 01/10/2024 at 10:40.
Pushed by mqualmann into branch 'master'.

do not write every face tag change separately to the metadata

M  +8    -20   core/utilities/facemanagement/database/faceutils.cpp
M  +5    -0    core/utilities/facemanagement/database/faceutils.h
M  +11   -0    core/utilities/facemanagement/workers/databasewriter.cpp

https://invent.kde.org/graphics/digikam/-/commit/1ab772520179a42c0070d30577514e1a40c2adbc
Comment 18 caulier.gilles 2024-12-01 09:04:00 UTC
digiKam 8.5.0 is out with many improvements in face detection and recognition. Please update these entry accordingly with this version. Thanks in advance...

https://www.digikam.org/news/2024-11-16-8.5.0_release_announcement/