At first, this CalendarAgent program had been a mild-mannered citizen on both my MacBook Air and on my older iMac. But a day or two after Discovery News posted my generally positive review of Mountain Lion, the iMac started locking up as CalendarAgent devoured as much as three to four gigabytes until I force-quit it with OS X’s Activity Monitor app.
The problem went away long enough for a cautious endorsement of Activity Monitor in Sunday’s USAT piece, but then it resumed. After a few days of getting bored with killing off this process two or three times an hour, I was trying to remember how to yank its execute privileges when I thought to check the Console app.
The repeated errors listed in this troubleshooting tool indicated that CalendarAgent was choking on my wife’s shared Google Calendar feed. I’d subscribed to that in Lion’s iCal without any issues (parenthood requires a non-trivial coordination of schedules), but Mountain Lion apparently had other opinions. I deleted the subscription from ML’s Calendar app, added it back in the BusySync software I use to publish my own set of calendars to Google, and was soon treated to the welcome and overdue sight of CalendarAgent’s memory allocation dropping back to normal levels.
I still don’t know what exactly went wrong on the iMac; the MacBook Air didn’t have this problem even after I subscribed directly to my wife’s schedule in its Calendar app. Adding it under the “delegation” option for the Google account I’d already configured in that copy of Mountain Lion–but which I hadn’t set up on the iMac–didn’t result in any memory leaks either.
But if you’re tired of seeing CalendarAgent hold up your Mac, try changing how Google calendars get to the computer. Instead of adding a direct .ics subscription via Calendar’s Edit menu, subscribe to that feed in your Google Calendar, add that Google account in System Preferences’ Mail, Contacts and Calendars pane and you should see the subscription when you click Calendar’s “Calendars” button look under “Delegates.” Or revert from the delegation approach to a direct subscription. Let me know if that yields any better results.