eog crashes opening a certain png file (attached)

Bug #1442053 reported by Masoud Abkenar on 2015-04-09
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Eye of GNOME
Unknown
Unknown
eog (Debian)
Confirmed
Unknown
eog (Ubuntu)
Medium
Unassigned

Bug Description

I open eog file.png from terminal, and this is what I get:

**
Gdk:ERROR:/build/buildd/gtk+3.0-3.10.8/./gdk/gdkcairo.c:193:gdk_cairo_surface_paint_pixbuf: assertion failed: (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_RGB24 || cairo_image_surface_get_format (surface) == CAIRO_FORMAT_ARGB32)
Aborted (core dumped)

The image is made from a pdf file using convert:

convert -density 5000 TUM_IAS_logo.pdf TUM_IAS_logo.png

Also, nautilus also crashes when trying to make the thumbnail. So as Unity dash. Firefox 37.0.1 cannot open the PNG file.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: eog 3.10.2-0ubuntu5
ProcVersionSignature: Ubuntu 3.13.0-48.80-generic 3.13.11-ckt16
Uname: Linux 3.13.0-48-generic x86_64
NonfreeKernelModules: pax
ApportVersion: 2.14.1-0ubuntu3.8
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Apr 9 11:57:41 2015
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-precise-amd64-20130203-1
InstallationDate: Installed on 2015-03-05 (34 days ago)
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20130203-13:50
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: eog
UpgradeStatus: Upgraded to trusty on 2015-03-10 (29 days ago)

Masoud Abkenar (mabkenar) wrote :
Masoud Abkenar (mabkenar) wrote :
Masoud Abkenar (mabkenar) wrote :
madbiologist (me-again) wrote :

Firefox 37.0.1 cannot display this PNG either. Changing package to imagemagick (convert is part of imagemagick).

affects: eog (Ubuntu) → imagemagick (Ubuntu)
Changed in imagemagick (Ubuntu):
status: New → Confirmed
description: updated
Masoud Abkenar (mabkenar) wrote :

Now, exactly with the same source pdf file, but with a different parameter to imagemagick:
              convert -density 500 TUM_IAS_logo.pdf TUM_IAS_logo.png
(500 instead of 5000) everything works fine. All the above programs can open the file.

I still think this is a bug of imagemagick, because I assume no corrupted image file should make it to a SegFault. I guess the crash of nautilus, Unity, etc. are also because they use the same engine as eog to make the thumbnail.

Masoud Abkenar (mabkenar) wrote :

Sorry, I meant "I still think this is a bug of eog"

Changed in imagemagick (Ubuntu):
importance: Undecided → Medium
Myk Dowling (politas) wrote :

I believe this is an upstream bug somewhere between libpng and the AMD drivers. Masoud, are you using AMD Radeon graphics?

Do you have the pdf and the png file ? Could you attach

Changed in imagemagick (Ubuntu):
status: Confirmed → Incomplete
Masoud Abkenar (mabkenar) wrote :

It is already attached. See #2 and #3.

Changed in imagemagick (Ubuntu):
status: Incomplete → Confirmed
carloslp (carloslp) wrote :

Seems that this is a know limitation of cairo.

It can't handle images with an horizontal or vertical size greater than 32K pixels. :(

More info:

On the Debian BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776536
On GNOME bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=672990#c2

bug in eog

affects: imagemagick (Ubuntu) → eog (Ubuntu)
Changed in eog (Debian):
status: Unknown → Confirmed
madbiologist (me-again) wrote :

Firefox and nautilus can now display this PNG. EOG still freezes and then closes without displaying anything except the window border.

tags: added: xenial
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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