After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 488213 - Evolution locks when displaying e-mail with large tiff drawing attached
Evolution locks when displaying e-mail with large tiff drawing attached
Status: RESOLVED DUPLICATE of bug 666391
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks: 580895
 
 
Reported: 2007-10-19 10:21 UTC by Milan Crha
Modified: 2011-12-16 23:22 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
proposed evo patch (8.37 KB, patch)
2007-10-19 11:10 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2007-10-19 10:21:00 UTC
Forwarding from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=207648

Description of problem:
A colleague sent me an e-mail with two large tiff files attached. One was
13544x9576 pixels, filesize only 182 kB, the other slightly smaller. upon trying
to display this message, evolution starts using 100% cpu time. 

Version-Release number of selected component (if applicable):
evolution-2.6.3-1.fc5.5

How reproducible:
Open e-mail with huge (in pixels) tif file

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Evolution starts using 100% CPU

Expected results:
Mail displayed, images not visible

---------------------------------------------------------------------
There is a test image in
https://bugzilla.redhat.com/show_bug.cgi?id=207648#c3

I investigated a bit, and even the problem isn't in evolution itself, but in gdk_pixbuf_scale_simple, I will provide a patch with an enhancement.
Comment 1 Milan Crha 2007-10-19 11:10:28 UTC
Created attachment 97472 [details] [review]
proposed evo patch

for evolution;

I added there a global function for scaling pixbufs, which uses gnome_thumbnail_scale_down_pixbuf if HAVE_LIBGNOMEUI_GNOME_THUMBNAIL_H, otherwise do things as before, which means with gdk_pixbuf_scale_simple which is much much slower for such big images. This is a reason why we should clone this bug against gdk, I think.
Comment 2 André Klapper 2007-10-19 17:49:02 UTC
yepp, libgnome must die, die, die! ;-) http://live.gnome.org/LibgnomeMustDie
Comment 3 Bastien Nocera 2007-10-22 22:28:57 UTC
Milan, did you file a bug against gdk-pixbuf yet?
Comment 4 Milan Crha 2007-10-23 05:29:45 UTC
Bastien, not yet, but I was going to move this bug to gtk+, so changing product/component right now.
Comment 5 Srinivasa Ragavan 2008-01-11 14:49:22 UTC
Milan, mean time you can commit this patch to Evolution.
Comment 6 Milan Crha 2008-01-11 16:07:58 UTC
Patch committed to Evolution's trunk. Committed revision 34800.

Just one note, it differs a bit in the body of new e-util/e-icon-factory.c: e_icon_factory_pixbuf_scale, because gnome_thumbnail_scale_down_pixbuf can scale only down, so I added there a check for this (thus it will not crash).

Bastien, do you want to file a separate bug for gtk+ so it will not show the patch icon in the bug list?
Comment 7 Bastien Nocera 2008-01-11 17:20:35 UTC
(In reply to comment #6)
<snip>
> Bastien, do you want to file a separate bug for gtk+ so it will not show the
> patch icon in the bug list?

This bug is already against gtk+, so we can leave it as-is :)
Comment 8 Milan Crha 2009-07-21 17:08:57 UTC
Hi there, any update on this? You know, the Gnome3 is coming. Added the related Evolution bug to dependency.
Comment 9 Bastien Nocera 2009-07-21 17:34:05 UTC
(In reply to comment #8)
> Hi there, any update on this? You know, the Gnome3 is coming. Added the related
> Evolution bug to dependency.

There's no gdk-pixbuf patch in this bug, so I wouldn't expect anyone to say anything one way or the other.
Comment 10 Matthias Clasen 2011-12-16 23:22:03 UTC

*** This bug has been marked as a duplicate of bug 666391 ***