Bug 435803 - DigiKam Not Responding when moving from Albums between Similarity and Search options.
Summary: DigiKam Not Responding when moving from Albums between Similarity and Search ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Similarity (show other bugs)
Version: 7.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 08:31 UTC by HJ
Modified: 2021-09-12 00:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.3.0


Attachments
digikam.metaengine: Cannot set Iptc tag string into image using Exiv2 (946.31 KB, text/plain)
2021-04-21 10:12 UTC, HJ
Details
Two pictures from the album (3.29 MB, text/plain)
2021-04-21 13:41 UTC, HJ
Details
digiKam rating-table view unexpectedly shut down (17.62 KB, text/plain)
2021-04-22 03:11 UTC, HJ
Details
Not Responding Levels/Pick/Accepted Item -Table View (15.15 KB, text/plain)
2021-04-22 15:56 UTC, HJ
Details
digikam.metaengine: avformat_open_input error: -1094995529 (81.85 KB, text/plain)
2021-04-22 16:15 UTC, HJ
Details
Unexpected shutdown; Album - Thumbnail view (6.26 KB, text/plain)
2021-04-23 09:34 UTC, HJ
Details
digikam.general: Untreated temporary search type 0 - Labels/ratings;pick- thumbnails (86.23 KB, text/plain)
2021-04-23 10:30 UTC, HJ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HJ 2021-04-16 08:31:30 UTC
SUMMARY
DigiKam Not Responding when moving from Albums between Similarity and Search options. The exchange of Thumbnails and Table selection is probably also important


STEPS TO REPRODUCE
1. Browsing searches in Tabel-Thumbnails view.
2. On time Similiarity also Not Responding.
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 HJ 2021-04-16 08:40:49 UTC
The Table view is more problematic

Hannes
Comment 2 Maik Qualmann 2021-04-17 19:12:45 UTC
Git commit f154dd80b396bb18276eac76e4e4daec0c75b502 by Maik Qualmann.
Committed on 17/04/2021 at 19:10.
Pushed by mqualmann into branch 'master'.

great performance improvement to the table view
Almost no freezing of the table view when
scrolling a large view with > 30000 items.
Updating an entire row is faster than updating
a table element when updating thumbnails.

M  +13   -8    core/app/views/tableview/tableview_model.cpp

https://invent.kde.org/graphics/digikam/commit/f154dd80b396bb18276eac76e4e4daec0c75b502
Comment 3 Maik Qualmann 2021-04-17 19:55:17 UTC
Git commit 9295b457614b6144f441ae01f0149d868fa62bef by Maik Qualmann.
Committed on 17/04/2021 at 19:53.
Pushed by mqualmann into branch 'master'.

we don't need an extra ItemInfo cache
ItemInfo's are already have a cache.

M  +1    -45   core/app/views/tableview/tableview_model.cpp

https://invent.kde.org/graphics/digikam/commit/9295b457614b6144f441ae01f0149d868fa62bef
Comment 4 Maik Qualmann 2021-04-21 06:10:15 UTC
*** Bug 435987 has been marked as a duplicate of this bug. ***
Comment 5 Maik Qualmann 2021-04-21 06:14:17 UTC
The table view is not as fast as the thumbnail view. It needs optimization in sorting and in the model code. But I cannot reproduce a general problem. From what number of items in the table view does the problem arise for you? A DebugView log might also help, as described here:

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

Maik
Comment 6 HJ 2021-04-21 07:26:39 UTC
DebuView errors when Not responding

[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/20130406/VIDEO_TS/VIDEO_TS.VOB"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/20130406/VIDEO_TS/VIDEO_TS.VOB"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/VIDEO_TS.VOB"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/VIDEO_TS.VOB"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/IMGP0113_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/IMGP0113_x264.mp4"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/IMGP0177_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/IMGP0177_x264.mp4"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2774_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2774_x264.mp4"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2803_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2803_x264.mp4"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2893_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2893_x264.mp4"
[11448] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2898_x264.mp4"
[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2898_x264.mp4"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
[11448] digikam.metaengine: Cannot set Iptc tag string into image using Exiv2   (Error # 8 :  "Value not set"
Comment 7 HJ 2021-04-21 08:06:13 UTC
I have 92000 image and video files.
Comment 8 Maik Qualmann 2021-04-21 08:11:27 UTC
They are very strange error messages. Also, it is not normal that from the video files cannot be create thumbnails. You are sure that your hard drive has no errors or reading problems? That would explain the freeze.

Maik
Comment 9 HJ 2021-04-21 09:00:18 UTC
"Cannot create thumbnail for ..." are broken files?
Comment 10 caulier.gilles 2021-04-21 09:09:08 UTC
Hi,

For ex:

[11448] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic
video/VIDEO_TS/MP4/MVI_2898_x264.mp4"

The path include space. It can be a problem, but i'm not sure.

Can you try to take a video file in your D:/ in a path not including space. Just for testing ?

Gilles Caulier
Comment 11 HJ 2021-04-21 09:57:05 UTC
[7244] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/VIDEO_TS.VOB"
[7244] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/VIDEO_TS.VOB"
[7244] digikam.general: Cannot create thumbnail for "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2774_x264.mp4"
[7244] digikam.general: Thumbnail is null for  "D:/MEEDIA/My Videos/Panasonic video/VIDEO_TS/MP4/MVI_2774_x264.mp4"
[7244] digikam.general: Cannot create thumbnail for "D:/MEEDIA/Test/MVI_2774_x264.mp4"
[7244] digikam.general: Thumbnail is null for  "D:/MEEDIA/Test/MVI_2774_x264.mp4"

MVI 2774 _x264.mp4 is a broken or file without a video codec.
This is a remnant of a program experiment.
The VIDEO_TS.VOB file works with the VIDEO_TS.IFO file and contains a video dvd menu image.
Comment 12 HJ 2021-04-21 10:12:22 UTC
Created attachment 137756 [details]
digikam.metaengine: Cannot set Iptc tag string into image using Exiv2

Main problem in table view
digikam.metaengine: Cannot set Iptc tag string into image using Exiv2
Comment 13 Maik Qualmann 2021-04-21 10:43:02 UTC
The message "Cannot set Iptc tag string into image using Exiv2" could also come from Exif, I have adjusted the error message. We will see it with the next Windows version.

https://invent.kde.org/graphics/digikam/-/commit/6a8bff6694045e5b7767d6b1427852a83fdfc1b4

Maik
Comment 14 Maik Qualmann 2021-04-21 10:45:13 UTC
Another thing, you haven't set the debug environment variable with the Windows environment variable editor at the moment, as described on the digiKam page. Can you post the error messages again with the debug variable activated? Then digiKam becomes even more talkative.

Maik
Comment 15 HJ 2021-04-21 13:41:26 UTC
Created attachment 137760 [details]
Two pictures from the album

Two pictures from the album referenced in the table view
Comment 16 HJ 2021-04-22 03:11:50 UTC
Created attachment 137779 [details]
digiKam rating-table view unexpectedly shut down

The digiKam rating-table view suddenly shut down when I calmly chose different ratings.
Comment 17 HJ 2021-04-22 04:11:24 UTC
Additional note:
digiKam rating-table view constantly Not Responding already at 9000 entries when making a random click in the program window and Metadata / ExifTool does not show any data.
Comment 18 caulier.gilles 2021-04-22 04:22:53 UTC
The ExifTool metadata view do not work yet properly under Windows
Comment 19 Maik Qualmann 2021-04-22 10:37:26 UTC
Git commit 5351ea35220f400a92c079742bad6c16f5266336 by Maik Qualmann.
Committed on 22/04/2021 at 10:36.
Pushed by mqualmann into branch 'master'.

fix error messages from Exiv2 from the table view
The table view calls DMetadata::valueToString()
without checking whether QVariant is null.

M  +5    -0    core/libs/metadataengine/dmetadata/dmetadata_generic.cpp

https://invent.kde.org/graphics/digikam/commit/5351ea35220f400a92c079742bad6c16f5266336
Comment 20 HJ 2021-04-22 15:56:04 UTC
Created attachment 137798 [details]
Not Responding Levels/Pick/Accepted Item -Table View

Line 143 is my manual note.
Comment 21 HJ 2021-04-22 16:15:36 UTC
Created attachment 137800 [details]
digikam.metaengine: avformat_open_input error:  -1094995529

user action: mouse clicks while the program is frozen.

Hannes
Comment 22 Maik Qualmann 2021-04-22 19:25:16 UTC
Your search returns 92028 items that will take some time in the table view before they are displayed. Use the thumbnail view, this is already more optimized. I never use the table view myself. However, you have strange waiting times in the logs, I definitely suspect that you have a hard drive problem.

Maik
Comment 23 HJ 2021-04-23 09:34:03 UTC
Created attachment 137826 [details]
Unexpected shutdown; Album - Thumbnail view
Comment 24 HJ 2021-04-23 10:30:08 UTC
Created attachment 137827 [details]
digikam.general: Untreated temporary search type  0 - Labels/ratings;pick- thumbnails

[6972] digikam.general: Untreated temporary search type  0

Scrolls from time to time.
Comment 25 Maik Qualmann 2021-04-23 10:41:03 UTC
Git commit 1c5ee228c2b5352096a8a612b10268e697454d8d by Maik Qualmann.
Committed on 23/04/2021 at 10:40.
Pushed by mqualmann into branch 'master'.

try to fix crash in empty QList

M  +11   -0    core/libs/metadataengine/exiftool/exiftoolparser.cpp

https://invent.kde.org/graphics/digikam/commit/1c5ee228c2b5352096a8a612b10268e697454d8d
Comment 26 HJ 2021-04-23 11:42:32 UTC
(In reply to Maik Qualmann from comment #25)
> Git commit 1c5ee228c2b5352096a8a612b10268e697454d8d by Maik Qualmann.
> Committed on 23/04/2021 at 10:40.
> Pushed by mqualmann into branch 'master'.
> 
> try to fix crash in empty QList
> 
> M  +11   -0    core/libs/metadataengine/exiftool/exiftoolparser.cpp
> 
> https://invent.kde.org/graphics/digikam/commit/
> 1c5ee228c2b5352096a8a612b10268e697454d8d

Empty QList fix error. An error occurs when hovering over thumbnails with the mouse cursor. Labels / Rating

Hannes
Comment 27 Maik Qualmann 2021-04-25 19:14:30 UTC
Git commit db8ad31044ccf4c947698e4ba3d8bb3788dd85bd by Maik Qualmann.
Committed on 25/04/2021 at 19:13.
Pushed by mqualmann into branch 'master'.

fix random crash in QList when fast call virtual albums
FIXED-IN: 7.3.0

M  +2    -3    NEWS
M  +11   -3    core/app/main/digikamapp.cpp

https://invent.kde.org/graphics/digikam/commit/db8ad31044ccf4c947698e4ba3d8bb3788dd85bd