Bug 440249

Summary: digiKam collapse when Pixel XL image metadata tab is selected
Product: [Applications] digikam Reporter: HJ <hannesjaagura>
Component: Maintenance-MetadataAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.4.0
Sentry Crash Report:
Attachments: 2021-06-04.jpg.txt metadata info

Description HJ 2021-07-25 08:02:30 UTC
Created attachment 140315 [details]
2021-06-04.jpg.txt metadata info

SUMMARY
digiKam collapse when Pixel XL image metadata tab is selected


STEPS TO REPRODUCE
1.Select Pixel XL image.
  Click the metadata r-side tab - a crash will occur. 

 [4044] digikam.metaengine: Path to ExifTool: "exiftool.exe"
[4044] digikam.metaengine: ExifToolProcess::start(): create new ExifTool instance: "exiftool.exe" ("-stay_open", "true", "-@", "-", "-common_args", "-charset", "filename=UTF8", "-charset", "iptc=UTF8")
[4044] digikam.metaengine: ExifTool process started
[4044] digikam.metaengine: ExifTool "Load Metadata" "-json -G:0:1:2:4:6 -l D:\\MEEDIA\\My Pictures\\Chat\\2021-06-04.jpg"
[4044] digikam.metaengine: Loading metadata with "Exiv2" backend from "D:/MEEDIA/My Pictures/Chat/2021-06-04.jpg"
[4044] digikam.general: Metadata loading with Exiv2 took 2 ms ( true )
[4044] QWaitCondition: Destroyed while threads are still waiting
[4044] QWaitCondition: Destroyed while threads are still waiting
[4044] QMutex: destroying locked mutex
[4044] QEventDispatcherWin32::wakeUp: Failed to post a message (Invalid window handle.)

2. 
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 Maik Qualmann 2021-07-25 08:56:00 UTC
I can't reproduce a problem with a Pixel XL sample image from the web. Please send me the image to my private email address.

Maik
Comment 2 Maik Qualmann 2021-07-25 11:12:38 UTC
Git commit 4ae00b01ff8b93b51c1f2422cbcce604eadcc0dd by Maik Qualmann.
Committed on 25/07/2021 at 11:11.
Pushed by mqualmann into branch 'master'.

prevent crash in Exiv2 toRational() function
FIXED-IN: 7.4.0

M  +2    -1    NEWS
M  +12   -4    core/libs/metadataengine/engine/metaengine_exif.cpp

https://invent.kde.org/graphics/digikam/commit/4ae00b01ff8b93b51c1f2422cbcce604eadcc0dd
Comment 3 Maik Qualmann 2021-07-25 11:19:42 UTC
Thanks for the test image. The value for "Exif.GPSInfo.GPSImgDirection" has 0 bytes in the image.

Maik