Closed Bug 1684664 Opened 4 years ago Closed 2 years ago

Intermittent Wr Fission <test-name> TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null

Categories

(Testing :: Marionette Client and Harness, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: csabou [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=325645139&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I3l9TGBXREOAAj0uQZsjiw/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I3l9TGBXREOAAj0uQZsjiw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2021-01-01T22:42:13.105Z] 22:42:13     INFO - TEST-START | /css/css-align/baseline-rules/grid-item-input-type-number.html
[task 2021-01-01T22:42:13.169Z] 22:42:13     INFO - Setting pref dom.animations-api.compositing.enabled (true)
[task 2021-01-01T22:42:13.381Z] 22:42:13     INFO - PID 9367 | 1609540933380	Marionette	INFO	Testing http://web-platform.test:8000/css/css-align/baseline-rules/grid-item-input-type-number.html == http://web-platform.test:8000/css/css-align/baseline-rules/grid-item-input-type-number-ref.html
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - TEST-UNEXPECTED-ERROR | /css/css-align/baseline-rules/grid-item-input-type-number.html | Testing http://web-platform.test:8000/css/css-align/baseline-rules/grid-item-input-type-number.html == http://web-platform.test:8000/css/css-align/baseline-rules/grid-item-input-type-number-ref.html
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - loadTestUrl@chrome://marionette/content/reftest.js:672:21
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - screenshot@chrome://marionette/content/reftest.js:737:18
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - compareUrls@chrome://marionette/content/reftest.js:489:29
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - REFTEST   IMAGE 1 (TEST): data:image/png;base64,
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - REFTEST   IMAGE 2 (REFERENCE): data:image/png;base64,
[task 2021-01-01T22:42:14.484Z] 22:42:14     INFO - TEST-INFO took 1377ms
[task 2021-01-01T22:42:14.501Z] 22:42:14     INFO - PID 9367 | JavaScript error: resource://devtools/client/jsonview/Sniffer.jsm, line 53: NS_ERROR_NOT_AVAILABLE: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]
[task 2021-01-01T22:42:14.544Z] 22:42:14     INFO - PID 9367 | 1609540934542	Marionette	INFO	Stopped listening on port 40620
[task 2021-01-01T22:42:15.010Z] 22:42:15     INFO - Browser exited with return code 0
[task 2021-01-01T22:42:15.010Z] 22:42:15     INFO - PROCESS LEAKS None
[task 2021-01-01T22:42:15.010Z] 22:42:15     INFO - Closing logging queue
[task 2021-01-01T22:42:15.010Z] 22:42:15     INFO - queue closed
[task 2021-01-01T22:42:15.022Z] 22:42:15     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox --marionette about:blank -profile /tmp/tmpxh23awf3
[task 2021-01-01T22:42:15.029Z] 22:42:15     INFO - Starting runner
[task 2021-01-01T22:42:15.331Z] 22:42:15     INFO - PID 9684 | console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
[task 2021-01-01T22:42:16.135Z] 22:42:16     INFO - PID 9684 | 1609540936134	Marionette	INFO	Listening on port 34107```

All the failures are with Fission, mostly reftest and a few browser-chrome ones, all except a Windows one are on Linux. Henrik, can you take a look (calling line touched in bug 1612831)?

Flags: needinfo?(hskupin)
Summary: Intermittent <test-name> TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null → Intermittent Fission <test-name> TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null

Here the output from a recently failing job:

[task 2021-01-08T11:16:13.989Z] 11:16:13     INFO - PID 26752 | 1610104573987	Marionette	INFO	Testing http://web-platform.test:8000/css/mediaqueries/aspect-ratio-001.html == http://web-platform.test:8000/css/reference/ref-filled-green-100px-square.xht
[task 2021-01-08T11:16:14.730Z] 11:16:14     INFO - TEST-UNEXPECTED-ERROR | /css/mediaqueries/aspect-ratio-001.html | Testing http://web-platform.test:8000/css/mediaqueries/aspect-ratio-001.html == http://web-platform.test:8000/css/reference/ref-filled-green-100px-square.xht
[task 2021-01-08T11:16:14.730Z] 11:16:14     INFO - TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null
[task 2021-01-08T11:16:14.730Z] 11:16:14     INFO - loadTestUrl@chrome://marionette/content/reftest.js:672:21
[task 2021-01-08T11:16:14.730Z] 11:16:14     INFO - screenshot@chrome://marionette/content/reftest.js:737:18
[task 2021-01-08T11:16:14.730Z] 11:16:14     INFO - compareUrls@chrome://marionette/content/reftest.js:489:29

I think we need a similar retry mechanism as what we have for the MarionetteCommands actor:

https://searchfox.org/mozilla-central/rev/0379f315c75a2875d716b4f5e1a18bf27188f1e6/testing/marionette/actors/MarionetteCommandsParent.jsm#305

Sebastian, how often does it fail? I'm out tomorrow so in case of urgency I will CC Julian and James.

Component: Reftest → Marionette
Flags: needinfo?(hskupin) → needinfo?(aryx.bugmail)

It doesn't fail frequently (have a bug report for every second day). It hits random tests and the failure is not part of the failure line. A fix would prevent further bug spam. Thank you.

Flags: needinfo?(aryx.bugmail)
Summary: Intermittent Fission <test-name> TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null → Intermittent Wr Fission <test-name> TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null

Recent failure details:

[task 2021-03-04T11:42:55.653Z] 11:42:55     INFO - TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null
[task 2021-03-04T11:42:55.653Z] 11:42:55     INFO - loadTestUrl@chrome://marionette/content/reftest.js:672:21
[task 2021-03-04T11:42:55.653Z] 11:42:55     INFO - screenshot@chrome://marionette/content/reftest.js:737:18
[task 2021-03-04T11:42:55.653Z] 11:42:55     INFO - compareUrls@chrome://marionette/content/reftest.js:489:29

So it depends on bug 1662808.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 4 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

With bug 1794553 fixed this should no longer be an issue. To be safe I'm closing as WFM so that it will be reopened if such a failure happens again.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → WORKSFORME
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.