Open Bug 1679132 Opened 4 years ago Updated 1 month ago

Calendar causes several minute 100% CPU hangs very frequently (Recurrence handling)

Categories

(Calendar :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

Details

(Keywords: perf)

Attachments

(1 file)

I just received this profile from a user that is experiencing hangs very frequently using Thunderbird 78.5.0. The hangs are 100% CPU and last for about 4-5 mins:

https://share.firefox.dev/398TqSX

Looking at the stack chart, it appears the calendar is mainly processing in CalRecurrenceInfo.jsm, with calculateDates taking approximately 30 seconds for some runs, and getOccurrences being a big part of that, taking 13 - 16 seconds a run.

_ensureCoverage also features quite high and seems to be doing a lot of sorting.

I'm assuming that Ical.jsm is used for some parts of calendar, even though Ical.jsm is turned off by default?

Flags: needinfo?(philipp)

ical.jsm should not be used if it is off, at least to my knowledge. I can't seem to access the profile unfortunately.

Flags: needinfo?(philipp)

The profile link works for me. I've found that sometimes I need to reload such links. Try a new container?

Flags: needinfo?(philipp)

Works now. The stack clearly indicates that ical.js is used, though I'm not sure if we can see if it is enabled. A more efficient way to calculate occurrences in a range would be a clear winner for this bug, regardless of ical.js or not. Both are not set up well to get occurrences in a range, as they take the start date and iterate until the range is reached.

Flags: needinfo?(philipp)

Meanwhile I disabled calendar.icaljs. Let's see if that helps.
But independent form that I wonder why long running calendar routines make thunderbird completely unresponsive.
Aren't those running in the "background" (separate thread etc.)?
And what's the difference to previous versions with lightning add-in?

Severity: -- → S3
See Also: → 1789999

(In reply to Mark Banner (:standard8) from comment #0)

I just received this profile from a user that is experiencing hangs very frequently using Thunderbird 78.5.0. The hangs are 100% CPU and last for about 4-5 mins:

Mark do you still have contact with this user?

(In reply to Wayne Mery (:wsmwk) from comment #6)

(In reply to Mark Banner (:standard8) from comment #0)

I just received this profile from a user that is experiencing hangs very frequently using Thunderbird 78.5.0. The hangs are 100% CPU and last for about 4-5 mins:

Mark do you still have contact with this user?

Unlikely.

Duplicate of this bug: 1872620
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: