Bug 386188 - Preview Does Not Display Some JPGs Editor Crashes Program
Summary: Preview Does Not Display Some JPGs Editor Crashes Program
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 5.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 19:10 UTC by Jeffrey Johnson
Modified: 2018-07-03 10:38 UTC (History)
2 users (show)

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


Attachments
A JPG file taken with a low end Polaroid digital camera (1.52 MB, image/jpeg)
2017-10-25 19:10 UTC, Jeffrey Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Johnson 2017-10-25 19:10:37 UTC
Created attachment 108563 [details]
A JPG file taken with a low end Polaroid digital camera

I have a series of JPG images from the same digital camera and some display, and some do not. On one of the pictures that would not display, I chose to open in default application, and Window Photo Viewer showed it. I then clicked Editor in digiKam and the application crashed. Pretty sure the attached picture is what I was looking at. There may be some corruption towards the bottom, but other files with similar issues display in digiKam.
Comment 1 Maik Qualmann 2017-10-29 11:42:55 UTC
Your test image has broken JPG data. Either due to faulty transfer from the camera or a broken memory card. It comes under Linux in digiKam to no crash, but as in Gimp, Krita, etc. is the image not displayed. Gwenview shows it through its special JPG loader up to the error location.

Maik
Comment 2 caulier.gilles 2017-12-09 17:21:00 UTC
This problem still reproducible with current 5.8.0 - pre-release Windows bundle
available here :

https://files.kde.org/digikam/

Gilles Caulier
Comment 3 Maik Qualmann 2018-07-03 10:38:38 UTC
Git commit 84265d4d457e9c96ffab49342a3201cb79212c16 by Maik Qualmann.
Committed on 03/07/2018 at 10:37.
Pushed by mqualmann into branch 'master'.

use already read image data up to libjpeg error
Related: bug 382174, bug 376124
FIXED-IN: 6.0.0

M  +4    -1    NEWS
M  +51   -10   core/libs/dimg/loaders/jpegloader.cpp

https://commits.kde.org/digikam/84265d4d457e9c96ffab49342a3201cb79212c16