GNOME Bugzilla – Bug 336574
Personal Contacts with JPEG Photo Display
Last modified: 2013-09-10 14:04:15 UTC
Please describe the problem: Contacts imported from a VCARD v3 with JPEG photos take a very long time both to import and to display. Evolution will lock up for nearly a minute to display one of these contacts. Steps to reproduce: 1. Import a VCARD with a jpeg photo (you may use http://www.muppethouse.com/JaneDoe.vcf if you like) 2. Add a few more contacts 3. Click on the recently added contact with the photo Actual results: CPU Spikes and the program becomes unresponsive for around one minute Expected results: Contact is displayed in a usable timeframe and the application does not lock up. Does this happen every time? Yes Other information:
we don't support vcard3 entirely (bug 240756), but evo shouldn't become unresponsive, sure.
Need to resize the image, as we do while adding an image to the contact.
The original vcards imported that caused this problem were exported from Apple's Address book and that is the size they were stored in.
harmonizing target milestone
Created attachment 87467 [details] [review] proposed patch Main problem was in e_vcard_to_string_vcard_30 when cutting lines longer then 75 characters. I changed it to allocate new buffer big enough to store there whole cut text and then simply appending text from old buffer to new one with CRLF and space characters. It produces same output like old algorithm. I tested it even with UTF8 characters (in notes).
I found that other patch has been made in bug #433782 in the same place as I did.
Im closing this as an dupe of bug #433782 as the reasons are same. Will be fixed in 2.11.2 *** This bug has been marked as a duplicate of 433782 ***