Bug 189639 - korganizer and korgac using a lot of memory loading std.ics with bad v-card attachment
Summary: korganizer and korgac using a lot of memory loading std.ics with bad v-card a...
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.2.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 21:17 UTC by Roman Fietze
Modified: 2009-10-18 14:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Corrupted std.ics by V-Card Attachment with Umlauts (273.30 KB, application/x-bzip2)
2009-04-16 22:23 UTC, Roman Fietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Fietze 2009-04-14 21:17:43 UTC
Version:           4.2.2 (using KDE 4.2.2)
OS:                Linux
Installed from:    SuSE RPMs

When starting korganizer, korganizer and korgac use all the memory and a lot of swap when starting. Due to swapping starting korganizer and korgac takes several minutes on a 2x500MHz box with 512 MiB RAM.

Either this problem started due to a recent update of those programs or due to an invitation (send out by korganizer 3.5.10) or event (locally) added to korganizer.

When inspecting std.ics I found an area with lots of funny characters inside some VEVENT. There was an attached VCard inside some invitation with an X-LABEL field and a name using an umlaut. This umlaut, originally an a-umlaut, is erroneously repeated many times using the characters 0x8c3, 0x83, 0x8c2 and 0x82 in different orders. This entry existed long before korganizer started having problems.
Comment 1 Sergio Martins 2009-04-14 21:22:26 UTC
Can you create a new user and open that file to see if there's a problem too?
Comment 2 Roman Fietze 2009-04-14 21:54:05 UTC
Loading the bad std.ics by a freshly created user causes the same problem.

After removing the garbage umlauts, the file shrinked from way more than 100 MB to about 39 kB. Now I can load it w/o problems.

I will try one more thing: resend that invitation with the V-Card attachment and the umlaut. See if korganizer still has problems with such an invitation.
Comment 3 Sergio Martins 2009-04-14 21:57:27 UTC
Can you provide that file? Or at least a minimum testcase so that i can reproduce this.
Comment 4 Roman Fietze 2009-04-16 22:23:38 UTC
Created attachment 32879 [details]
Corrupted std.ics by V-Card Attachment with Umlauts

This is the resulting and corrupted file of the invitation with an attached V-Card.

I will try to reproduce the invitation once more, to see if the current version of korganzier still corrupts std.ics accepting such an invitation.
Comment 5 Sergio Martins 2009-04-16 22:44:19 UTC
The memory usage is explained by the huge attachment, so I don't see a bug in KOrganizer.

How did you create the invitation?
Comment 6 Roman Fietze 2009-04-17 20:02:48 UTC
(In reply to comment #5)

> The memory usage is explained by the huge attachment, so I don't see a bug in
> KOrganizer.

The attachment wasn't as huge when it was attached to the invitation. Because the mail that was sent out was pretty small, the error must have been on the receiving side, wich was a 4.x korganizer/kmail.

> How did you create the invitation?

Using a 3.5.10 korganizer at work. What I normally do is, I invite myself at home when I have important meetings at the company. In this special case I attached a V-Card of the person that I had to call up the next day.

I'm currently trying to reproduce a similar or even exactly the same invitation with the original V-Card used.
Comment 7 Roman Fietze 2009-10-18 14:52:15 UTC
Could not reproduce this error since then, neither on any 3.5 version, nor any 4.x version of the PIM programs.