Summary: | Huge memory usage just for the calendar with korgac and ical resource | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Alexandre Bonneau <alexandre.bonneau> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | edera, maksvlad |
Priority: | NOR | ||
Version: | 5.2.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
massif output for korganizer
illegal type for property: VALUE=DATE-TIME start ics file UTC ics file non UTC ics file |
Description
Alexandre Bonneau
2017-01-08 20:27:51 UTC
Created attachment 109689 [details]
massif output for korganizer
Same symptom here, although with an older version
korganizer --version
Qt: 4.8.6
KDE Development Platform: 4.14.25
KOrganizer: 4.14.10
korgac quickly reaches 2GB, then remains stable.
massif.out.16937 generated as follow:
akonadictl stop
kquitapp korgac
akonadictl start
valgrind --tool=massif korganizer --nofork
# the korgac process reaches about 2GB memory in few seconds
# could not quit cleanly the korganizer window (no interaction)
# Ctrl-C
# this is an ical, not a deprecated kcal issue
ps -ef | grep akonadi | grep cal_
/usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ical_resource_4
# the .ics files are only few MB:
find .kde4 -name "*.ics" -exec du -sk {} \;
4 .kde4/share/apps/kalarm/calendar.ics
4 .kde4/share/apps/kalarm/displaying.ics
4 .kde4/share/apps/kalarm/expired.ics
2272 .kde4/share/apps/korganizer/std.ics
1124 .kde4/share/apps/ktimetracker/ktimetracker.ics
There might be something wrong in this database;
any advice for further investigation ?
Created attachment 109701 [details] illegal type for property: VALUE=DATE-TIME Here is a clue: there were a lot of X-LIC-ERROR: RDATE;VALUE=DATE-TIME:19230527T230000 X-LIC-ERROR;X-LIC-ERRORTYPE=PARAMETER-VALUE-PARSE-ERROR:Got a VALUE parameter with an illegal type for property: VALUE=DATE-TIME X-LIC-ERROR;X-LIC-ERRORTYPE=PARAMETER-VALUE-PARSE-ERROR:Got a VALUE parameter with an illegal type for property: VALUE=DATE-TIME kquitapp korganizer, kquitapp korgac akonadictl stop removing them with kwrite search/replace mode "Escape sequences" (on a single line, without quotes) "\nX-LIC-ERROR;X-LIC-ERRORTYPE=PARAMETER-VALUE-PARSE-ERROR: Got a VALUE \n parameter with an illegal type for property: VALUE=DATE-TIME" replace: empty =>between 7000 and 8000 replacements... akonadictl start korganizer korgac memory < 170 MB As a check, brought back the previous std.ics. => 2GB. New one => fine. Unfortunately, each time akonadi is started or stopped, a new X-LIC-ERROR appear. (one for each RDATE;VALUE=DATE-TIME line) From this rate, it seems that the problem started less than 2 months ago. System: openSUSE-Leap-42.2 The last update for kdepim was 5 months ago. https://build.opensuse.org/project/show/openSUSE:Leap:42.2:Update Maybe the last daylight change, about 2 months ago ? the RDATE;VALUE=DATE-TIME:19230527T230000 format seems valid though https://www.kanzaki.com/docs/ical/rdate.html The years are weird (1923 ?), but removing those RDATE lines make all December appointments shift by 1 hour for instance. So they seem efficient somehow. head_18105ca.ics, which contains only the VTIMEZONE, is enough to reproduce the behavior. I think my problem gained by same issue I noticed my calendar on 1050 events got 6.5Mb when was added to korganizer 5.7 Earch event had timezone deferred Created attachment 110082 [details]
start ics file
Created attachment 110083 [details]
UTC ics file
Created attachment 110084 [details]
non UTC ics file
Gentoo. Korganizer ver 5.7.1, KDE Frameworks 5.42.0, Qt 5.9.3 I think my problem gained by same issue I noticed my calendar on 1050 events got 6.5Mb when was added to korganizer 5.7.1 The ics file was filled with "RDATE;VALUE=DATE-TIME:" entries. Earch event had timezone differed from UTC. I deleted all akonadi files and configs, cleaned up the ics-file. One was filled up again. When I tried to add a calendar with UTC timezone events. The size of ics file wasn't changed. Now I looking up for a workaround this issue I added sample files with UTC and non UTC timezone The workaround described in comment #2 can be automated (backup ~/.kde4/share/apps/korganizer/std.ics first !): kquitapp korganizer kquitapp korgac akonadictl stop # wait a bit for akonadi to really stop sleep 2 # DISCLAIMER: This will modify the calendar IN-PLACE. BACKUP first ! # strip the .ics from wrong error messages perl -i -p -0 -e 's/X-LIC-ERROR;X-LIC-ERRORTYPE=PARAMETER-VALUE-PARSE-ERROR:Got a VALUE \R parameter with an illegal type for property: VALUE=DATE-TIME\R//g' ~/.kde4/share/apps/korganizer/std.ics With kde-apps/korganizer-18.04.0 kde-apps/akonadi-18.04.0 my calendars shrink from 6MB to 433KB and 1.3MB to 73 KB. I think issue has been solved. Thank developers so much P.S. Kde-apps 18.04.0, kde-frameworks 5.45, gentoo Thanks for the update; let's close this. If you see this issue again with KDEPIM 5.8 (from KDE Applications 18.04), please add a comment. |