Created attachment 171858 [details] raw with 2* , Jpeg once generation, jepg with 2* after reread and metadata view SUMMARY ticket created following discussion in mail STEPS TO REPRODUCE 1. set rating to a raw file (for example ** ) 2. generated a jpeg from DXO OBSERVED RESULT in album view , generated Jpeg is shown without * metadata is showing the correct rating using "read metadata from file to database" update the rating correctly screen shot attached showing original raw with 2* , generated jpegs , metadat view EXPECTED RESULT generated jpeg should be shown automaticaly ADDITIONAL INFORMATION
Created attachment 171859 [details] metadata advanced settings
Created attachment 171860 [details] metadata behavior settings
Created attachment 171861 [details] monitor album setting
OK, now I understand. You really want to capture the change at digiKam runtime. You should always write that. In both digiKam-8.4.0-Qt5 version and in the Qt6 version the QFileSystemWatcher is broken. Since it still works here under Linux, it is a package bug in the Windows version (maybe something is missing in the Qt compilation for Windows?). As a note, in the Qt6 version the QNetworkManager is also broken, no internet currently. Maik
Hi Maik, You want means a missing dependency while Qt compilation ? Which one ? QFileSystemWatcher needs specific lib to be compiled under Windows ? Gilles
The search for the problem with the QFileSysemWatcher will probably take longer, I have tested versions dating back to June that also have the problem. What surprises me is that the QNetworkManager problem no longer exists. For you, CTRL+F5 is currently the fastest way to update the album. Maik
Code for QFileSystemWatcher for Windows: https://github.com/qt/qtbase/blob/6.7.2/src/corelib/io/qfilesystemwatcher_win_p.h https://github.com/qt/qtbase/blob/6.7.2/src/corelib/io/qfilesystemwatcher_win.cpp It use an internal thread and it catch Windows events Gilles
It's clear, there is no specific dependency for QfilesystemWatcher under Windows
I cannot found any report in qt bugzilla about QFileSystemWatcher. I see few dysfunction reported in stack overflow because the instance must be created with new to handle the thread in background. Gilles
Git commit 9b23ea5da98b92ceb2ce20ef0df781f1eff7a557 by Maik Qualmann. Committed on 21/07/2024 at 17:48. Pushed by mqualmann into branch 'master'. fix the problem with the QFileSystemWatcher We have an uninitialized variable in the static function. M +2 -0 core/libs/database/utils/ifaces/dio.cpp https://invent.kde.org/graphics/digikam/-/commit/9b23ea5da98b92ceb2ce20ef0df781f1eff7a557
I don't know if I'm right about the patch, but it's worth a try. @Gilles, can you create a Windows Qt6 bundle today? Maik
(In reply to Maik Qualmann from comment #6) > The search for the problem with the QFileSysemWatcher will probably take > longer, I have tested versions dating back to June that also have the > problem. > > What surprises me is that the QNetworkManager problem no longer exists. > > For you, CTRL+F5 is currently the fastest way to update the album. > > Maik Hi Maik Ctrl+F5 is used to find new items, right? Here the generated JPG is found immediately, only the rating is missing. So finding new items doesn't solve the problem, I just need to "read metadata from file to database" to update the rating Frederic
Git commit ddd181277bcbfb6846f6cc01d7a10672e6ba27f0 by Maik Qualmann. Committed on 22/07/2024 at 16:38. Pushed by mqualmann into branch 'master'. add test debu for processing count M +2 -2 core/libs/database/utils/ifaces/dio.cpp https://invent.kde.org/graphics/digikam/-/commit/ddd181277bcbfb6846f6cc01d7a10672e6ba27f0
After the test debug, no event is sent by the QFileSystemWatcher. Maik
Hello, I use the appimage versions of Digikam under Debian 12 I arrived here because I also noticed this problem of missing rating for jpegs generated by Darktable If I launch Digikam 8.3 (digiKam-8.3.0-x86-64.appimage) and generate a jpeg, the rating is present When I launch Digikam 8.4 (digiKam-8.4.0-Qt6-x86-64.appimage) and generate a jpeg, no more rating
@sylvainsjc: Please describe exactly what you mean by creating JPEG and what steps you follow. Maik
Git commit c448a4d0d86af49573a6f90df84d3a22196c8ee2 by Maik Qualmann. Committed on 02/08/2024 at 21:30. Pushed by mqualmann into branch 'master'. fix possible loss of database metadata in the Image Editor M +6 -0 core/utilities/imageeditor/core/editorcore.cpp M +2 -0 core/utilities/imageeditor/core/editorcore.h M +2 -0 core/utilities/imageeditor/core/editorcore_p.h M +6 -7 core/utilities/imageeditor/main/imagewindow.cpp M +0 -1 core/utilities/imageeditor/main/imagewindow_p.h https://invent.kde.org/graphics/digikam/-/commit/c448a4d0d86af49573a6f90df84d3a22196c8ee2
(In reply to Maik Qualmann from comment #16) > @sylvainsjc: Please describe exactly what you mean by creating JPEG and what > steps you follow. > > Maik 1) I take photos in RAW format and edit them with Darktable By default darktable rates these photos with 2 stars 2) Then I export my photos in jpeg format 3) I place the jpeg files in a folder managed by Digikam 4) I open Digikam and it finds the new jpeg photos. Until release 8.3 the rating was well retrieved but with release 8.4, the rating is missing
Git commit beb112361fc5a380539c98ba160cea3a463be9c0 by Maik Qualmann. Committed on 03/08/2024 at 11:26. Pushed by mqualmann into branch 'master'. fix no rating and wrong date for new scanned items M +6 -2 core/libs/database/coredb/coredb.cpp https://invent.kde.org/graphics/digikam/-/commit/beb112361fc5a380539c98ba160cea3a463be9c0
Works fine again in the pre-release build of digiKam-8.5.0. Maik