Intermittent dom/tests/browser/browser_ConsoleStorageAPITests.js | Uncaught exception - [Exception... "(null)" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "<unknown>" data: no]
Categories
(DevTools :: General, defect, P5)
Tracking
(firefox73 fixed, firefox74 fixed)
People
(Reporter: intermittent-bug-filer, Assigned: jdescottes)
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
Filed by: aciure [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=281174434&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/FkYm63nWS7GM1jCm5-Q06Q/runs/0/artifacts/public/logs/live_backing.log
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - TEST-PASS | dom/tests/browser/browser_ConsoleStorageAPITests.js | Cleared Storage - 0 == 0 -
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - Buffered messages finished
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - TEST-UNEXPECTED-FAIL | dom/tests/browser/browser_ConsoleStorageAPITests.js | Uncaught exception - [Exception... "(null)" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "<unknown>" data: no]
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - Leaving test bound
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - GECKO(2959) | MEMORY STAT | vsize 20974928MB | residentFast 1060MB
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - TEST-OK | dom/tests/browser/browser_ConsoleStorageAPITests.js | took 2039ms
[task 2019-12-14T10:08:57.188Z] 10:08:57 INFO - checking window state
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 5•4 years ago
|
||
Julian,
This has quite a high failure rate on the beta simulations and on integration as well:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=db5256ada418a2770ae296caf42b1e89b2f15f56&searchStr=linux%2Cx64%2Casan%2Cmochitests%2Ctest-linux64-asan%2Fopt-mochitest-browser-chrome-e10s-14%2Cm%28bc14%29&selectedJob=283347245
Could you please look into it?
Assignee | ||
Comment 6•4 years ago
|
||
Seems like there are two calls to BrowserTestUtils.addTab
without await
right before we call SpecialPowers.spawn. So we might try to use JSWindowActors that will be destroyed by navigation?
Let's see if that fixes it:
- push on top of the beta simulation https://treeherder.mozilla.org/#/jobs?repo=try&revision=174bba183b4e4a9af5e7a8b6acf7abf75574771a
- beta simulation baseline https://treeherder.mozilla.org/#/jobs?repo=try&revision=644881e7b442bf38f3caa5d704daaee8838df65f
- push on top of central https://treeherder.mozilla.org/#/jobs?repo=try&revision=56b421d3fb09d85b81e7524e595b017a8638c8eb
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 8•4 years ago
|
||
Adding await
before those addTab calls didn't work, but it seems the issue is with
await SpecialPowers.spawn(browser, [], function() {
// make sure a closed window's events are in fact removed from
// the storage cache
content.console.log("adding a new event");
});
Right before, the test tab navigates from about:blank to a test document, and even though we wait for DOMContentLoaded
, it seems this is called too soon and we get old JSWindowActors instead of the ones for the new global?
I can try to workaround this, but I'm confused as to why the approach here is invalid.
Assignee | ||
Comment 9•4 years ago
|
||
Additionally waiting for a DOM element fixes the intermittent, but this is a workaround.
Updated•4 years ago
|
Assignee | ||
Comment 10•4 years ago
|
||
I am pushing a patch for working around the issue but it would be great if someone more familiar with JS Window Actors could check if the pattern used in the test (waiting for DOMContentLoaded
) is bad (what should be done instead?) or if something needs to be looked at on the platform side.
Hopefully, kmag can share some advice.
Comment 11•4 years ago
|
||
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/230e7d093c19 Wait for navigation in browser_ConsoleStorageAPITests.js r=nchevobbe
Comment 12•4 years ago
|
||
bugherder uplift |
Updated•4 years ago
|
Comment 13•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•4 years ago
|
Description
•