Images are black when opened in gallery

Bug #1412442 reported by Omer Akram
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
Unassigned
gallery-app
Fix Released
Critical
Unassigned
gallery-app (Ubuntu)
Fix Released
Critical
Ugo Riboni
gallery-app (Ubuntu RTM)
Fix Released
Critical
Unassigned

Bug Description

image 202

1. Take a picture from the camera
2. Open the gallery app and tap on the new image's thumbnail

What happens:
The image does not open, rather a black screen is shown.

Note: this issue only appears in gallery-app and does not show in photoroll of the camera. Also the thumbnails of photos show just fine in gallery as well.

ProblemType: Bug
DistroRelease: Ubuntu RTM 14.09
Package: gallery-app (not installed)
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.14.7-0ubuntu8
Architecture: armhf
Date: Mon Jan 19 13:34:55 2015
InstallationDate: Installed on 2015-01-19 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20150119-030204)
SourcePackage: gallery-app
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

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

Confirming:

However this only seems to effect photos taken from the rear camera, front facing and videos (from the rear camera) are showing up correctly in gallery

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gallery-app (Ubuntu):
status: New → Confirmed
Omer Akram (om26er)
Changed in gallery-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
Revision history for this message
Ugo Riboni (uriboni) wrote :

This is caused by a recent change in the thumbnailer, which fails now to return large preview images.
https://code.launchpad.net/~jpakkane/thumbnailer/memfixes/+merge/245550

The previous code has a code path for generating full resolution thumbnails, but due to a bug (that was corrected in the branch above) that code path was never hit.

The branch above makes that code path accessible again, but it triggers another bug: the images are actually returned by the thumbnailer image provider not into the requested size but in the full resolution, which the GPU can not handle, so they appear black.

This patch will fix the issue by providing proper scaling:
https://code.launchpad.net/~fboucault/thumbnailer/thumbnail_qml_provider_respects_size/+merge/246548

Revision history for this message
Ugo Riboni (uriboni) wrote :

However a quicker and more correct fix would be to simply not go through the thumbnailer to get the image, as the camera photo roll already does. the linked branch implements such a fix.

Bill Filler (bfiller)
Changed in canonical-devices-system-image:
importance: Undecided → Critical
Changed in gallery-app:
importance: Undecided → Critical
Changed in gallery-app (Ubuntu RTM):
importance: Undecided → Critical
Changed in canonical-devices-system-image:
milestone: none → ww05-2015
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gallery-app - 0.0.67+15.04.20150121.1-0ubuntu1

---------------
gallery-app (0.0.67+15.04.20150121.1-0ubuntu1) vivid; urgency=low

  [ Bill Filler ]
  * merge lp:~bfiller/gallery-app/sd-card-rules

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Ugo Riboni ]
  * Directly downscale the images for the viewer instead of asking the
    thumbnailer to do it (which it would do incorrectly) (LP: #1412442)
  * Make sure the first time a photo is added to the database we read
    the actual size save it to the database (LP: #1404170)
 -- Ubuntu daily release <email address hidden> Wed, 21 Jan 2015 15:39:55 +0000

Changed in gallery-app (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gallery-app - 0.0.67+15.04.20150121.1~rtm-0ubuntu1

---------------
gallery-app (0.0.67+15.04.20150121.1~rtm-0ubuntu1) 14.09; urgency=low

  [ Bill Filler ]
  * merge lp:~bfiller/gallery-app/sd-card-rules

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Ugo Riboni ]
  * Directly downscale the images for the viewer instead of asking the
    thumbnailer to do it (which it would do incorrectly) (LP: #1412442)
  * Make sure the first time a photo is added to the database we read
    the actual size save it to the database (LP: #1404170)
 -- Ubuntu daily release <email address hidden> Wed, 21 Jan 2015 15:39:55 +0000

Changed in gallery-app (Ubuntu RTM):
status: New → Fix Released
Bill Filler (bfiller)
Changed in gallery-app:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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