Permanent Orange: TEST-UNEXPECTED-FAIL | test_index_junk_imap_offline.js | uncaught exception: 2147500037

RESOLVED FIXED in Thunderbird 26.0

Status

MailNews Core
Testing Infrastructure
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: standard8, Assigned: standard8)

Tracking

({intermittent-failure})

Trunk
Thunderbird 26.0
intermittent-failure

Thunderbird Tracking Flags

(thunderbird24 fixed, thunderbird25 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
Seen since we've had the major orange:

https://tbpl.mozilla.org/php/getParsedLog.php?id=26347955&tree=Thunderbird-Trunk#error0

TEST-UNEXPECTED-FAIL | ../../../../resources/logHelper.js | Error console says [stackFrame uncaught exception: 2147500037] - See following stack:
JS frame :: ../../../../resources/logHelper.js :: _errorConsoleTunnel.observe :: line 63
native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0
(Assignee)

Comment 1

4 years ago
Created attachment 788118 [details] [diff] [review]
Workaround

I've traced this through via the debugger. This is roughly what is happening:

- The test sets up the message folders, and configures for offline storage
- Attempting to get one of the messages (in test_never_indexes_a_message_marked_as_junk), causes the IMAP service to initialise the offline cache
- It then looks in the offline storage, it is not there, so it looks in the "browser" cache
- The "browser" cache gets initialised, and as part of this it looks for "cachePDir" from the nsIDirectoryServiceProvider.
- The implemented directory service providers throw as they should do.
- The javascript console records the error as uncaught, even though c++ handles the result.

So I think this is really some sort of xpconnect issue. Unfortunately I've not been able to come up with a simple test case just yet.

I'm therefore proposing that we work around it by setting two prefs that will mean we avoid calling the directory service with "cachePDir". (See nsCacheProfilePrefObserver::ReadPrefs for more info).

When I get time, I'll then see if I can come up with a test case later on and get a core bug filed.
Assignee: nobody → mbanner
Status: NEW → ASSIGNED
Attachment #788118 - Flags: review?(Pidgeot18)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Attachment #788118 - Flags: review?(Pidgeot18) → review+
Comment hidden (Treeherder Robot)
(Assignee)

Comment 5

4 years ago
https://hg.mozilla.org/comm-central/rev/1526a145fd9e
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 26.0
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Assignee)

Comment 10

4 years ago
Comment on attachment 788118 [details] [diff] [review]
Workaround

[Triage Comment]
Passes on trunk, so taking to aurora & beta
Attachment #788118 - Flags: approval-comm-beta+
Attachment #788118 - Flags: approval-comm-aurora+
(Assignee)

Comment 11

4 years ago
https://hg.mozilla.org/releases/comm-aurora/rev/019bb9b66dff
https://hg.mozilla.org/releases/comm-beta/rev/c84489dedef5
status-thunderbird24: --- → fixed
status-thunderbird25: --- → fixed
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
You need to log in before you can comment on or make changes to this bug.