Gallery crashes on first run on thumbnail generation

Bug #1403643 reported by Omer Akram
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gallery-app
New
High
Unassigned

Bug Description

0. Make sure you have a clean install and you never started gallery app
1. Take a few photos with the camera and close it
2. open gallery

What happens:
It crashes.

PS: you don't really need a clean install just delete gallery' QML cache in ~/.cache/QML/Apps

Reproduced on :
current build number: 183
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2014-12-18 13:29:15
version version: 183
version ubuntu: 20141217.2
version device: 20141209-cae2b5f
version custom: 20141216-484-22-169

com.ubuntu.gallery 2.9.1.1113
thumbnailer 1.3+15.04.20141106~rtm-0ubuntu1
qtubuntu-camera 0.3.3+15.04.20141208.is.0.3.3+15.04.20141204~rtm-0ubuntu1

Revision history for this message
Omer Akram (om26er) wrote :

Just a note it does *not* only happen on first run, but thats an easy way to reproduce it.

Changed in gallery-app:
importance: Undecided → High
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

The reason this happens is that whoever is creating the images produces invalid image files. I have attached one to this bug and trying to open it with eog prints the following error (which is the same as what thumbnailer prints in the background):

Failed to load image '/home/phablet/Pictures/com.ubuntu.camera/image20141218_143650580.jpg': Error interpreting JPEG image file (Quantization table 0x00 was not defined)

When this happens, thumbnailer passes the original image to Qt. Presumably this causes it to then crash. If so, this would indicate a bug in Qt's image processing code.

description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.