Closed
Bug 796853
Opened 12 years ago
Closed 9 years ago
Recurring Event with long duration hangs Lightning
Categories
(Calendar :: Internal Components, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 680620
People
(Reporter: Fallen, Unassigned)
Details
(Keywords: hang, perf, testcase)
Attachments
(2 files)
292 bytes,
text/plain
|
Details | |
13.41 KB,
patch
|
Details | Diff | Splinter Review |
The attached testcase will hang lightning. The event starts in 1970 and ends recently. All is fine until onAddItem observers get called, for example the minimonth. The minimonth tries to expand the items in setBusyDaysForItem, which should be fast because it only expands in a certain range. Then take a look at calRecurrenceInfo.js' calculateDates: http://hg.mozilla.org/comm-central/annotate/2c53684716c7/calendar/base/src/calRecurrenceInfo.js#l440 This piece of code goes back by the duration of the event, which is 40 years back. Then it iterates occurrences, which happen to be quite a lot.
Reporter | ||
Comment 1•12 years ago
|
||
To make life easier, here is some logging to get to the root of the error, especially if its on a caldav server.
Updated•11 years ago
|
Severity: normal → critical
Comment 2•10 years ago
|
||
(perhaps a shorter recurring duration would just be a perf issue?)
Keywords: perf
Reporter | ||
Comment 4•9 years ago
|
||
I am not sure if it is an exact duplicate since the other bug also happens with single events, but close enough. I'll make note on the other bug.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(philipp)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•