Bug 462638 - KOrganizer freezing when loading remote iCal file
Summary: KOrganizer freezing when loading remote iCal file
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: import/export (show other bugs)
Version: 5.21.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-04 16:08 UTC by Matthieu L.
Modified: 2023-01-25 13:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu L. 2022-12-04 16:08:57 UTC
SUMMARY
Hello,
I wanted to use KOrganizer to access the remote ical file my school gives for my schedule.  (The software they use for giving us the schedule and that ical file is Pronote if that matters).
I added the remote ical using the "iCal Calendar File" option, and soon after, Korganizer froze. My terminal was filled with errors that all looked like "org.kde.pim.calendarview: AgendaView::calendarIncidenceChanged() Invalid agendaItem for incidence  "Cours-82409-19-20221204T163428Z-Index-Education", and my system logs was filled with critical logs from akodani_ical_resource that looked like "akonadi_ical_resource: Can't find incidence with uid  "Cours-82173-20-20221204T163405Z-Index-Education" ; item.id() =  85323".
akodani_ical_resource also had debug logs saying "The hash has changed.", and the logs seemed to loop, so i had to kill KOrganizer after around 5 minutes of waiting as it just wouldn't unfreeze.

I tried to download the ical file locally and load it, and i still got the "Invalid agendaItem for incidence" errors a few times, but this time it didn't freeze and it loaded properly, so this seems to be an issue only with remote iCals.
Maybe korganizer thinks the file keeps changing and so it keeps downloading it over and over leading to a freeze, but i'm not well versed enough in how it works to be sure.

STEPS TO REPRODUCE
1. Add a new remote iCal to KOrganizer. The "Read only" and "Enable file monitoring" options don't change anything.
2. Restart the newly created callendar so it downloads the data.

OBSERVED RESULT
KOrganizer seems to get stuck in a loop and freezes. It also freezes in the same way a bit after restarting it.

EXPECTED RESULT
KOrganizer handles the iCal file once and stops there.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.8-1-MANJARO
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Comment 1 Kevin Funk 2023-01-25 13:16:24 UTC
Got the same issue with a ical calendar shared from https://outlook.office365.com/.