GNOME Bugzilla – Bug 342817
crash trying to view profile image
Last modified: 2006-06-01 01:29:51 UTC
I was trying to use plot-timeline.py to make some pretty strace logs and the png output was messed up somehow. But trying to view it with eog caused a crash. Gimp is able to view it but there is clearly something wrong with it. Backtrace was generated from '/opt/gnome/bin/eog' Using host libthread_db library "/lib/libthread_db.so.1". `shared object read from target memory' has disappeared; keeping its symbols. [Thread debugging using libthread_db enabled] [New Thread -1208523072 (LWP 20185)] [New Thread -1222632544 (LWP 20187)] [New Thread -1210651744 (LWP 20186)] 0x00abe402 in __kernel_vsyscall ()
+ Trace 68418
Thread 1 (Thread -1208523072 (LWP 20185))
Created attachment 66138 [details] image
The problem here is the extreme aspect ratio (116.6:1) of the image. The thumbnailing code in eog-collection-item.c:159 then calculates a scaling factor of 0.069. This gets the width down to 96 px but would produce a height of 0(.822)px. gnome_thumbnail_scale_down_pixbuf() uses gdk_pixbuf_new which does not work with 0px sizes.
Created attachment 66434 [details] [review] patch making sure thumbnail is at least 1px large This makes sure that the thumbnail is at least 1 px high/wide. Please try if it fixes the crash for you.
Created attachment 66543 [details] [review] patch for eog-ng branch This patch fixed it in the eog-ng branch.
Fixed in gnome-2-14, HEAD and eog-ng branches. Thanks! 2006-05-31 Lucas Rocha <lucasr@gnome.org> * libeog/eog-collection-item.c (set_pixbuf): making sure thumbnail is at least 1px large (Fixes bug #342817). Patch from Felix Riemann <felix@hsgheli.de>.