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 310840 - Resizing evolution mail window which contains an image attachment crashes it.
Resizing evolution mail window which contains an image attachment crashes it.
Status: VERIFIED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.4.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2005-07-19 07:14 UTC by Subodh Soni
Modified: 2013-09-13 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Backtrace for the crash while resizing a window with an inline image. (12.05 KB, text/plain)
2005-07-19 07:17 UTC, Subodh Soni
  Details
Evolution mail window containing this attachment when resized, crashes evolution (72.82 KB, image/png)
2005-07-26 09:55 UTC, Subodh Soni
  Details
fixes probably the /0 error (1.12 KB, patch)
2005-08-04 05:04 UTC, Not Zed
committed Details | Review

Description Subodh Soni 2005-07-19 07:14:50 UTC
Distribution/Version: SuSE 9.3

I have seen this problem in the latest build of evolution i.e. evolution 2.3.5.1
Here are the steps to recreate the problem:
1. Start with composing a mail.
2. Attach an image file (either png, gif or jpeg) and send the mail.
3. On the receiver's end, open the mail and then try resizing the window that
displays the image attached.
4. Evolution crashes.

The following are my observations from the crash:
- The images that have caused evolution to crash on resize are the ones where
height of the image is greater than the width.
- In the mail window I try to resize the window manually by dragging the edges
of the window, as soon as the image gets hidden (at this point it tries to
resize itself) due to small window size evolution crashes.
- Looking at the back-trace (which I will attach) I found that "maxheight"
variable (in the em-icon-stream.c source file) is 0 for all the images that are
crashing. This might be one reason for the crash, but I am not sure.
Comment 1 Subodh Soni 2005-07-19 07:17:36 UTC
Created attachment 49384 [details]
Backtrace for the crash while resizing a window with an inline image.
Comment 2 Subodh Soni 2005-07-26 09:55:45 UTC
Created attachment 49764 [details]
Evolution mail window containing this attachment when resized, crashes evolution
Comment 3 Not Zed 2005-08-04 05:01:54 UTC
divide by zero error

btw your image attachment is beagle, which isn't evolution.  most image
attachments aren't worth attaching anyway, usually the original message is more
useful.
Comment 4 Not Zed 2005-08-04 05:04:26 UTC
Created attachment 50208 [details] [review]
fixes probably the /0 error
Comment 5 Not Zed 2005-08-05 07:23:13 UTC
patch applied.  probably fixes, but with no supplied data  ...
Comment 6 Subodh Soni 2005-08-10 06:33:24 UTC
I don't see the crash due to divide by zero error with the latest evolution build.
Marking the bug as verified fixed.