NS_ERROR_OUT_OF_MEMORY exception when creating certain monthly repeating events

RESOLVED FIXED in 4.0.0.1

Status

Calendar
Internal Components
--
critical
RESOLVED FIXED
10 years ago
2 years ago

People

(Reporter: Stefan Sitter, Assigned: Decathlon)

Tracking

({dataloss})

Sunbird 0.9
4.0.0.1
dataloss

Details

(Reporter)

Description

10 years ago
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]

Comment 1

10 years ago
Seems like this causes dataloss (except for users who know how to find the event in the unifinder).  --> Severity: Major or Critical?

Updated

10 years ago
Severity: normal → major

Updated

10 years ago
Flags: wanted-calendar0.9+

Updated

9 years ago
Flags: wanted-calendar1.0+
Flags: wanted-calendar0.9+
Flags: blocking-calendar1.0?

Updated

9 years ago
Blocks: 466520
(Reporter)

Updated

9 years ago
Duplicate of this bug: 466520
OS: Windows XP → All
Hardware: x86 → All
Duplicate of this bug: 514946

Updated

7 years ago
Duplicate of this bug: 619037
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
(Reporter)

Comment 6

6 years ago
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]

Comment 7

5 years ago
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?
Duplicate of this bug: 957870
Severity: major → critical
Flags: needinfo?
Keywords: dataloss
(Assignee)

Comment 10

3 years ago
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
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.0
Flags: wanted-calendar1.0+
Flags: blocking-calendar1.0?
(Reporter)

Updated

2 years ago
Duplicate of this bug: 1147356
You need to log in before you can comment on or make changes to this bug.