Bug 352912 - Loading of some images fail. Console displays: QImageReader::read() using format hint "jpg" failed: "Unknown error"
Summary: Loading of some images fail. Console displays: QImageReader::read() using for...
Status: RESOLVED UPSTREAM
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: Other (add details in bug description)
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-19 16:00 UTC by Anderson Medeiros Gomes
Modified: 2015-09-25 10:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
An image that reproduces the problem. (67.48 KB, image/jpeg)
2015-09-19 16:01 UTC, Anderson Medeiros Gomes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson Medeiros Gomes 2015-09-19 16:00:04 UTC
Gwenview is unable to load some images I have saved on my computer. However, Konqueror can open them.

This is an example image: http://www.luagge.com.br/imobiliar/Fotos/284/00000284AA_fa_0.jpg . The console display these messages when I try to open it:

$ gwenview --version
org.kde.gwenview 15.08.0
$ gwenview 'http://www.luagge.com.br/imobiliar/Fotos/284/00000284AA_fa_0.jpg'
QImageReader::read() using format hint "jpg" failed: "Unknown error"
A bad Qt image decoder moved the buffer to 69104 in a call to canRead()! Rewinding.
Image format is actually "jpeg" not "jpg"

----

There is a downstream bug report here: https://bugzilla.redhat.com/show_bug.cgi?id=1257632

Also, there is a question of an Arch user here: https://www.reddit.com/r/kde/comments/3l7l75/gwenview_1508_on_plasma_5arch_fails_to_open_jpgs/

Reproducible: Always

Steps to Reproduce:
1. Open the referenced image using gwenview.
2. Open the referenced image using konqueror.


Actual Results:  
The image doesn't load

Expected Results:  
The image should load.

Gwenview Version 15.08.0
Using KDE Frameworks 5.13.0
Using Qt 5.5.0

Konqueror Version 4.14.11
Using KDE Development Platform 4.14.11
Using Qt 4.8.7
Comment 1 Anderson Medeiros Gomes 2015-09-19 16:01:27 UTC
Created attachment 94646 [details]
An image that reproduces the problem.
Comment 2 Christoph Feck 2015-09-25 10:02:24 UTC
Bug is fixed in Qt 5.5.1, see https://codereview.qt-project.org/#/c/115348/