Closed Bug 419490 Opened 16 years ago Closed 9 years ago

NS_ERROR_OUT_OF_MEMORY exception when creating certain monthly repeating events

Categories

(Calendar :: Internal Components, defect)

Sunbird 0.9
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
4.0.0.1

People

(Reporter: ssitter, Assigned: bv1578)

References

Details

(Keywords: dataloss)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13pre) Gecko/2008022505 Calendar/0.8pre

Steps to Reproduce
1. Create new event that repeats monthly
2. Open the Edit Recurrence dialog and select a 'every Xth weekday' rule that specifies a day that is not part of the month the events starts in. For example if the events starts in February 2008 select 'every 5th Monday'.
3. Check recurrence preview. Save event and check the view.

Actual Results:
Preview doesn't update after selecting the rule from above. 
The view doesn't show the event. 
Error Console shows many NS_ERROR_OUT_OF_MEMORY exceptions from views / minimonth / composite calendar containing:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [calIRecurrenceItem.getOccurrences]"  nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)"  location: "JS frame :: file:///E:/sunbird/js/calRecurrenceInfo.js :: anonymous :: line 409"  data: no]
Seems like this causes dataloss (except for users who know how to find the event in the unifinder).  --> Severity: Major or Critical?
Severity: normal → major
Flags: wanted-calendar0.9+
Flags: wanted-calendar1.0+
Flags: wanted-calendar0.9+
Flags: blocking-calendar1.0?
Blocks: 466520
OS: Windows XP → All
Hardware: x86 → All
This bug could likely be solved by updating to the latest libical. I remember seeing a patch that at some point stopped calculation if it had too many iterations.
Version: unspecified → Sunbird 0.9
Still exists in Lightning 1.3a1 + Mozilla/5.0 (Windows NT 6.1; rv:11.0a1) Gecko/20111213 Thunderbird/11.0a1. I get the error message shown below followed by different call stacks:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [calIRecurrenceItem.getOccurrences]"  nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)"  location: "JS frame :: [...]/calendar-js/calRecurrenceInfo.js :: cRI_calculateDates :: line 537"  data: no]
Still existing. For me the engine of a calendar should be very trustworthy. Adding events like "The fifth wednesday every month" seems to be a rare thing of course, but the engine should be able to handle it stable! Disappearance of ALL events after adding things like this, makes me really feel ugly about the safety of my important appointments.
(In reply to Pete Riley from comment #1)
> Seems like this causes dataloss (except for users who know how to find the
> event in the unifinder).  --> Severity: Major or Critical?

Does event really go "missing" to the user?
Flags: needinfo?
Severity: major → critical
Flags: needinfo?
Keywords: dataloss
This bug has been corrected with the patch for bug 958974.
Since the unit test now has a specific test that creates a monthly event on a fifth weekday of February, I set the bug to fixed. I'd be glad if someone else could verify.
Assignee: nobody → bv1578
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.0
Flags: wanted-calendar1.0+
Flags: blocking-calendar1.0?
You need to log in before you can comment on or make changes to this bug.