Open Bug 1645615 Opened 6 years ago Updated 6 years ago

JavaScript error: resource:///modules/CalAlarmService.jsm, line 604: TypeError: can't access property "getProperty", cal.getCalendarManager().getCalendarById(...) is null

Categories

(Calendar :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: ishikawa, Unassigned)

Details

During local mochitest run of Full DEBUG version of TB, I see the following error.:

The error is visible in tryserver as well. For example benc's job,
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=b36d20f09a11e8a3af3076d85ba00c5da913613b
has the same error: See,
https://firefoxci.taskcluster-artifacts.net/bFrLNNFEQy26gjrJxSFYjg/0/public/logs/live_backing.log

Funny, though, my local log line is preceded a warning., but not the log from benc's job above.
My local log lines:

 6:48.12 INFO Console message: [JavaScript Warning: "Empty string passed to getElementById()." {file: "chrome://global/content/elements/richlistbox.js" line: 719}]
 6:50.76 GECKO(888284) JavaScript error: resource:///modules/CalAlarmService.jsm, line 604: TypeError: can't access property "getProperty", cal.getCalendarManager().getCalendarById(...) is null
 6:50.76 GECKO(888284) JavaScript error: chrome://calendar/content/calendar-alarm-dialog.js, line 424: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "can't access property "getProperty", cal.getCalendarManager().getCalendarById(...) is null" {file: "resource:///modules/CalAlarmService.jsm" line: 604}]'[JavaScript Error: "can't access property "getProperty", cal.getCalendarManager().getCalendarById(...) is null" {file: "resource:///modules/CalAlarmService.jsm" line: 604}]' when calling method: [calIAlarmService::isLoading]
 6:51.39 INFO Console message: [JavaScript Error: "TypeError: can't access property "getProperty", cal.getCalendarManager().getCalendarById(...) is null" {file: "resource:///modules/CalAlarmService.jsm" line: 604}]
get isLoading@resource:///modules/CalAlarmService.jsm:604:10
closeIfEmpty@chrome://calendar/content/calendar-alarm-dialog.js:424:42
removeWidgetFor@chrome://calendar/content/calendar-alarm-dialog.js:364:7
onRemoveAlarmsByItem/this.mAlarms<@resource:///modules/CalAlarmMonitor.jsm:157:24
onRemoveAlarmsByItem@resource:///modules/CalAlarmMonitor.jsm:153:33
notify@resource:///modules/calendar/utils/calDataUtils.jsm:38:23
removeAlarmsForItem@resource:///modules/CalAlarmService.jsm:404:21
removeAlarmsForOccurrences@resource:///modules/CalAlarmService.jsm:434:10
onDeleteItem@resource:///modules/CalAlarmService.jsm:64:25
onModifyItem@resource:///modules/CalAlarmService.jsm:60:12
notify@resource:///modules/calendar/utils/calDataUtils.jsm:38:23
notify@resource:///modules/calendar/utils/calDataUtils.jsm:65:18
doModifyItem@resource:///modules/CalStorageCalendar.jsm:504:20
async*onOperationComplete@resource:///modules/CalStorageCalendar.jsm:397:14
getItemOfflineFlag@resource:///modules/CalStorageCalendar.jsm:879:15
async*modifyItem@resource:///modules/CalStorageCalendar.jsm:400:10
dismissAlarm@resource:///modules/CalAlarmService.jsm:200:31
onDismissAllAlarms@chrome://calendar/content/calendar-alarm-dialog.js:97:23
oncommand@chrome://calendar/content/calendar-alarm-dialog.xhtml:1:1
synthesizeMouse@resource://testing-common/mozmill/EventUtils.jsm:141:13
MozMillController.prototype.mouseEvent@resource://testing-common/mozmill/controller.jsm:556:16
MozMillController.prototype.click@resource://testing-common/mozmill/controller.jsm:578:10
wrapperFunc@resource://testing-common/mozmill/WindowHelpers.jsm:1332:32
MozMillController.prototype.waitThenClick@resource://testing-common/mozmill/controller.jsm:873:8
testEventDialog/<@chrome://mochitests/content/browser/comm/calendar/test/browser/eventDialog/browser_eventDialog.js:157:11
startTest@resource://testing-common/mozmill/WindowHelpers.jsm:339:16
WindowWatcher_notify@resource://testing-common/mozmill/WindowHelpers.jsm:376:9
waitFor@resource://testing-common/mozmill/utils.jsm:425:12
WindowWatcher_waitForModalDialog@resource://testing-common/mozmill/WindowHelpers.jsm:410:11
wait_for_modal_dialog@resource://testing-common/mozmill/WindowHelpers.jsm:671:17
testEventDialog@chrome://mochitests/content/browser/comm/calendar/test/browser/eventDialog/browser_eventDialog.js:161:24
Async*Tester_execTest/<@chrome://mochikit/content/browser-test.js:1064:34
Tester_execTest@chrome://mochikit/content/browser-test.js:1104:11
nextTest/<@chrome://mochikit/content/browser-test.js:927:14
SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:918:23

My log line "[JavaScript Warning: "Empty string passed to getElementById()." {file: "chrome://global/content/elements/richlistbox.js" line: 719}]" is very suggestive of the cause of the problem. But I have no idea why I don't see it in benc's tryserver job.

Anyway, something is wrong with the calendar code.

(I can't find the component for Calendar easily, and so assigned this to General.)

Product: Thunderbird → Calendar
You need to log in before you can comment on or make changes to this bug.