obsidian-community / obsidian-full-calendar

Keep events and manage your calendar alongside all your other notes in your Obsidian Vault.
https://davish.github.io/obsidian-full-calendar/
MIT License
801 stars 107 forks source link

Obsidian freezes/locks up when trying to add "busy" remote Google Calendar(s) #469

Open CJamesKeller opened 1 year ago

CJamesKeller commented 1 year ago

Please check that this issue hasn't been reported before.

Expected Behavior

Full Calendar should have a calendar import strategy capable of processing large numbers of events, without causing the application to lock up.

Current behaviour

Upon attempt to add the remote calendar, Obsidian becomes unresponsive, and did not return to normal behavior/interactivity in a several-hour window for which I kept the application open and waited.

JavaScript console output

(Unable to provide, as the application freezes/locks up)

Steps to reproduce

I do not want to share my "secret iCal address", but can provide an anonymized version of my .ics files. However, I am unsure of the best method to provide them, if that is indeed the best way to replicate this behavior.

Calendar information

My end-goal is to import/connect two to four remote calendars, which are coming from Google Calendar. Two of them have perhaps a dozen events per day, most of which are recurring, using standard rules (daily, weekly, monthly, etc). It appears one produces a 1.8 MB ics file, and the other a 4.5 MB ics file. The lower-priority calendars have fewer events, perhaps 3 per day, and are a mix of recurring and non-recurring events.

Which Operating Systems are you using?

Obsidian Version

1.3.5

Full Calendar Plugin Version

0.10.7

Checks

Possible solution

As the issue occurs when trying to add the calendars (even waiting a while between), I think processing the events in batches may help to prevent hitting memory constraints. I am happy to make a first-pass at the change and open a PR, if you would like.

Comments

No response

flowingblaze commented 1 year ago

I have a similar but not the same issues. Obsidian freezes for me whenever I try to open the Full Calendar, I am on windows though and I'm not really trying to add a remote calendar. I added this comment to your bug because I think my issue might not be different enough to make a separate issue about.