Bug 467498

Summary: Thumbnails creation causes an assert error
Product: [Applications] digikam Reporter: Brian M <bmguarded-dk>
Component: Maintenance-ThumbsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.10.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 8.0.0
Sentry Crash Report:
Attachments: Assert failure

Description Brian M 2023-03-17 16:44:21 UTC
Created attachment 157365 [details]
Assert failure

SUMMARY
Generating a 

STEPS TO REPRODUCE
1. Tools -> Maintenance
2. Select Whole Album. Select Rebuild thumbnails. and "Scan for changed or non-cataloged items (faster)"
3. Select OK

OBSERVED RESULT
After 3% processed, an assert failure is raised.

EXPECTED RESULT
All thumbnails are regenerated without a crash. I cannot proceed without restarting. This has been reproduced every time I try to rebuild thumbnails.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Version 11H2 (OS Build 19045.2728)

ADDITIONAL INFORMATION

The most recent DebugView content before it crashes:-

[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/py (2019_07_28 10_37_47 UTC).ico  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/py (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/py (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyc (2019_07_28 10_37_47 UTC).ico  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyc (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyc (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyd (2019_07_28 10_37_47 UTC).ico  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyd (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/DLLs/pyd (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).icns  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).icns: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).icns: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).ico  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/idle (2019_07_28 10_37_47 UTC).ico: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/plusnode (2019_07_28 10_37_47 UTC).gif  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/plusnode (2019_07_28 10_37_47 UTC).gif: The file contains data of an unknown image type"
[6244] digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/idlelib/Icons/plusnode (2019_07_28 10_37_47 UTC).gif: The file contains data of an unknown image type"
[6244] digikam.general: Cannot create thumbnail for "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/IPython/lib/tests/test (2019_07_27 17_51_54 UTC).wav"
[6244] digikam.general: Thumbnail is null for  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/IPython/lib/tests/test (2019_07_27 17_51_54 UTC).wav"
[6244] digikam.general: Cannot create thumbnail for "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/IPython/lib/tests/test (2019_07_28 10_37_47 UTC).wav"
[6244] digikam.general: Thumbnail is null for  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/IPython/lib/tests/test (2019_07_28 10_37_47 UTC).wav"
[6244] digikam.metaengine: Cannot load metadata from file with Exiv2 backend: L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/PyInstaller/bootloader/images/icon-console (2019_07_27 17_51_54 UTC).icns  (Error # 11 :  "L:/FileHistory/brian/BIGBLACK/Data/D/Downloads/WPy-3670/python-3.6.7.amd64/Lib/site-packages/PyInstaller/bootloader/images/icon-console (2019_07_27 17_51_54 UTC).icns: The file contains data of an unknown image type"
Comment 1 caulier.gilles 2023-03-17 17:48:17 UTC
Theses assert come from Exiv2 library, not from digiKam, because it do not support these file formats. You can forget it.

Gilles Caulier
Comment 2 Maik Qualmann 2023-03-17 21:37:50 UTC
It's probably about the attached image here in the bug report. It shows an error message from libjasper. But I can't reproduce this problem. We initialize libjasper4 correctly. I did a stress test with a set of Jpeg2000 images under Windows10, no problems. It may be trying to load the "ICO" and "WAV" files from the log with the KImageFormats plugins.

Maik