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 310071 - Contact with large photo hangs evolution 100% cpu
Contact with large photo hangs evolution 100% cpu
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Contacts
unspecified
Other Linux
: Normal critical
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
evolution[addr_mail]
Depends on: 254923
Blocks:
 
 
Reported: 2005-07-11 21:40 UTC by Marc DM
Modified: 2005-08-19 07:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Marc DM 2005-07-11 21:40:27 UTC
Version details: Evolution 2.2.1.1
Distribution/Version: Ubuntu 5.04 "Hoary Hedgehog"

I attached a photo of dimensions 1536x2048 (189.5KB) to a contact record
in Evolution. When I clicked [ok] to save the contact, the cpu usage
shot up, and while I could still select and view email in evolution, the
window containing the contact being edited was not responding. 

Add to that, I killed evolution and Evolution-data-server was still
there using a lot of cpu.

Since two things have been really strange:

1- when I view the contacts screen, cpu usage shoots up to 100% while
Evolution tries to display all my contacts. Until then, some names are
unavailable. 
2- when I try to select the contact with the large photo, evolution
hangs and cpu usage stays at 100%. 

According to top, evolution is using the available 90 - 94% cpu

Steps to reproduce the problem:
1. Create a contact in the evolution address book. 
2. Add a large photo to that contact. No smaller than 1536x2048
3. Hit [ok] to save the contact. 

Actual Results:
 - You can't view the contact with the large photo or select it. At
all.

Expected Results:
 - resize the photo to an acceptable size. or reject it as being too
large. 

How often does this happen?
 - I'm afraid to try it again because I can't even get to delete the
contact.

Additional Information:
Some documentation on how to access the addressbook data, outside of
evolution and evolution related tools would be nice. 
e.g. A nice little tutorial explaining how one could manipulate the
addressbook.db file using Python and pybsddb
Comment 1 Sushma Rai 2005-07-12 05:29:34 UTC
Related to the bug
http://bugzilla.gnome.org/show_bug.cgi?id=254923
Comment 2 Nagappan Alagappan 2005-07-12 09:32:20 UTC
Marc: Can you get a stack trace of evolution-data-server built with debug
information and update this bug ?
Comment 3 Sushma Rai 2005-08-19 07:17:27 UTC
In the recent version, photo will be resizes while adding a photo to
the contact.
reopen the bug, if you still face the issue.