Bug 433702 - Function Reread metadata from files not executed if SQLite databases are missing.
Summary: Function Reread metadata from files not executed if SQLite databases are miss...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Engine (show other bugs)
Version: 7.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-27 13:32 UTC by cat75
Modified: 2023-04-30 16:24 UTC (History)
2 users (show)

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


Attachments
Screenshot 1 (103.49 KB, image/jpeg)
2021-02-27 13:32 UTC, cat75
Details
Screenshot 2 (54.39 KB, image/jpeg)
2021-02-27 13:32 UTC, cat75
Details
Screenshot 3 (79.66 KB, image/jpeg)
2021-02-27 13:33 UTC, cat75
Details
Screenshot 4 (82.40 KB, image/jpeg)
2021-02-27 13:33 UTC, cat75
Details
PC-ACER-17P Digikam 7.2.0 Stop with Thumbails Tiff (1.12 KB, text/plain)
2021-02-27 17:47 UTC, cat75
Details
PC-ACER-17P Digikam 7.2.0 Quit after item Reread Metadata From File Thumbails CR2 (2.13 KB, text/plain)
2021-02-27 17:48 UTC, cat75
Details
digiKam-7.2.0-20210226T200524-Win64.exe or digiKam-7.2.0-20210226T200524-Win64-debug.exe screenshot (267.61 KB, image/jpeg)
2021-02-27 20:02 UTC, cat75
Details
Log 2021-02-28 PC-ACER-17P Digikam 7.2.0 (71.75 KB, text/plain)
2021-02-28 10:00 UTC, cat75
Details
Disk MICRON (98.28 KB, image/jpeg)
2021-02-28 10:01 UTC, cat75
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cat75 2021-02-27 13:32:28 UTC
Created attachment 136221 [details]
Screenshot 1

Hi,

Anomaly discovered by accident :

Folder to contain the SQLite databases existed but the databases absent
1- Launch Digikam: the Album selection screen opens.
2- Select and confirm the desired folder containing photos classified in sub-folders
Thumbnails are listed but RAW cr2 (Canon EOS 5D) appear in TIFF.

Reading of metadata is absent. SQLite databases are generated.

3- Select on the album name (Import_Test) and select all thumbnails by CTRL+A

Menu : Album > Reread Metadata From Files has no effect

(Screenshot 1 to 4 attached)

Menu : Item > Reread Metadata From Files corrects information.

Best Regard,

Jean Paul
Comment 1 cat75 2021-02-27 13:32:59 UTC
Created attachment 136222 [details]
Screenshot 2
Comment 2 cat75 2021-02-27 13:33:14 UTC
Created attachment 136223 [details]
Screenshot 3
Comment 3 cat75 2021-02-27 13:33:33 UTC
Created attachment 136224 [details]
Screenshot 4
Comment 4 Maik Qualmann 2021-02-27 17:09:16 UTC
I cannot reproduce the problem, here the metadata is read correctly without reread and the images are displayed as CR2 type. I suspect that it is related to our problem under Windows that the folders / images are locked by another program (Explorer?) and digiKam cannot read the metadata. A DebugView Log might help us, as described here: (don't forget to set the environment variable):

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

Maik
Comment 5 cat75 2021-02-27 17:47:59 UTC
Created attachment 136237 [details]
PC-ACER-17P Digikam 7.2.0 Stop with Thumbails Tiff
Comment 6 cat75 2021-02-27 17:48:48 UTC
Created attachment 136238 [details]
PC-ACER-17P Digikam 7.2.0 Quit after item Reread Metadata From File Thumbails CR2
Comment 7 cat75 2021-02-27 17:50:22 UTC
After line 13 in Log

3- Select on the album name (Import_Test) and select all thumbnails by CTRL+A

Menu : Album > Reread Metadata From Files has no effect

(Screenshot 1 to 4 attached)

Menu : Item > Reread Metadata From Files corrects information.

Menu : Quit
Comment 8 Maik Qualmann 2021-02-27 18:19:38 UTC
Unfortunately, we only see warning messages and not debug messages. The warnings are irrelevant and do not indicate any real problems. You did not set the environment variable in the Windows environment variable editor:

name: "QT_LOGGING_RULES"
value: "digikam*=true"

Maik
Comment 9 cat75 2021-02-27 20:02:06 UTC
Created attachment 136240 [details]
digiKam-7.2.0-20210226T200524-Win64.exe or digiKam-7.2.0-20210226T200524-Win64-debug.exe screenshot

name and value in advanced system parameter. Test with digiKam-7.2.0-20210226T200524-Win64.exe or digiKam-7.2.0-20210226T200524-Win64-debug.exe
Comment 10 Maik Qualmann 2021-02-27 20:51:54 UTC
No, the debug version is not necessary. You set the debug variable incorrectly. The "name" is "QT_LOGGING_RULES", the value is "digikam*=true".

So this has to be in one line in the editor: 

QT_LOGGING_RULES            digikam*=true

Maik
Comment 11 cat75 2021-02-28 10:00:45 UTC
Created attachment 136249 [details]
Log 2021-02-28 PC-ACER-17P Digikam 7.2.0

I am confused for the interpretation of the Windows user variable seen the one on Linux ...!

Without DebugView the problem is reproducible on every test.

In the presence of DebugView i cannot reproduce the problem, the metadata is read correctly without reread and the images are displayed as CR2 type. (Log 2021-02-28 attached)

PC ACER Intel Core I5 9th Gen - SSD MICRON 2200 MTFD disk C:

Could this be linked to a too fast execution of the read / write code of the metadata in the database given the performance of the SDD MICRON hard disk ...
Comment 12 cat75 2021-02-28 10:01:16 UTC
Created attachment 136250 [details]
Disk MICRON
Comment 13 Maik Qualmann 2021-02-28 11:43:29 UTC
I can see in the log that you have activated the monitoring of the albums for external changes. This setting is in the collection settings, please deactivate this monitoring. I suspect it will be the problem.

Maik
Comment 14 cat75 2021-02-28 14:00:27 UTC
Well done cause found!

"Settings" : Miscellaneous > uncheck : Scan for new items at startup

The images are displayed as CR2 type

Best regard,

Jean Paul
Comment 15 caulier.gilles 2023-04-30 16:24:09 UTC
Great to see a work around. I close this file now.

Gilles Caulier