Closed Bug 1858082 Opened 11 months ago Closed 11 months ago

Perma tier2 testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py | marionette_driver.errors.UnknownException: [Exception... "ServiceManager::GetService returned failure code:" nsresult: "0x80570016 ...

Categories

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

Desktop
Linux
defect

Tracking

(firefox-esr115 unaffected, firefox118 unaffected, firefox119 unaffected, firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox118 --- unaffected
firefox119 --- unaffected
firefox120 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: masayuki)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file)

Filed by: nerli [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=431946591&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KojkDBk4SwafrXzkmPXW9Q/runs/0/artifacts/public/logs/live_backing.log


[task 2023-10-10T08:54:58.311Z] 08:54:58  WARNING - Failed to gather test failure debug: Browsing context has been discarded
[task 2023-10-10T08:54:58.311Z] 08:54:58  WARNING - stacktrace:
[task 2023-10-10T08:54:58.312Z] 08:54:58  WARNING - 	RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2023-10-10T08:54:58.312Z] 08:54:58  WARNING - 	WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
[task 2023-10-10T08:54:58.312Z] 08:54:58  WARNING - 	NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:630:5
[task 2023-10-10T08:54:58.312Z] 08:54:58  WARNING - 	assert.that/<@chrome://remote/content/shared/webdriver/Assert.sys.mjs:485:13
[task 2023-10-10T08:54:58.313Z] 08:54:58  WARNING - 	assert.open@chrome://remote/content/shared/webdriver/Assert.sys.mjs:147:4
[task 2023-10-10T08:54:58.314Z] 08:54:58  WARNING - 	GeckoDriver.prototype.getPageSource@chrome://remote/content/marionette/driver.sys.mjs:943:15
[task 2023-10-10T08:54:58.314Z] 08:54:58  WARNING - 	despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
[task 2023-10-10T08:54:58.315Z] 08:54:58  WARNING - 	execute@chrome://remote/content/marionette/server.sys.mjs:289:16
[task 2023-10-10T08:54:58.315Z] 08:54:58  WARNING - 	onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
[task 2023-10-10T08:54:58.315Z] 08:54:58  WARNING - 	onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
[task 2023-10-10T08:54:58.315Z] 08:54:58  WARNING - 	_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
[task 2023-10-10T08:54:58.316Z] 08:54:58  WARNING - 
[task 2023-10-10T08:54:58.324Z] 08:54:58     INFO - TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py TestPointerActions.test_click_action | marionette_driver.errors.UnknownException: [Exception... "ServiceManager::GetService returned failure code:"  nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS frame :: chrome://remote/content/external/EventUtils.js :: getDragService :: line 583"  data: no]
[task 2023-10-10T08:54:58.325Z] 08:54:58     INFO - stacktrace:
[task 2023-10-10T08:54:58.326Z] 08:54:58     INFO - 	getDragService@chrome://remote/content/external/EventUtils.js:583:54
[task 2023-10-10T08:54:58.326Z] 08:54:58     INFO - 	_maybeSynthesizeDragOver@chrome://remote/content/external/EventUtils.js:618:23
[task 2023-10-10T08:54:58.328Z] 08:54:58     INFO - 	synthesizeMouseAtPoint@chrome://remote/content/external/EventUtils.js:673:35
[task 2023-10-10T08:54:58.328Z] 08:54:58     INFO - 	event.synthesizeMouseAtPoint@chrome://remote/content/marionette/event.sys.mjs:120:30
[task 2023-10-10T08:54:58.328Z] 08:54:58     INFO - 	pointerMove@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1842:16
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	performPointerMoveStep@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1127:25
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch/<@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1099:22
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	moveOverTime@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1645:13
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1095:12
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch/pendingEvents<@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1976:14
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1975:39
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch/chainEvents<@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1890:27
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	dispatch@chrome://remote/content/shared/webdriver/Actions.sys.mjs:1892:7
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	performActions@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:501:23
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - 	receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:143:31
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO - Traceback (most recent call last):
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py", line 197, in run
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO -     testMethod()
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py", line 46, in test_click_action
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO -     self.mouse_chain.click(element=box).perform()
[task 2023-10-10T08:54:58.329Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 72, in perform
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -     self.marionette.actions.perform([self.dict])
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 206, in perform
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -     return self.marionette._send_message("WebDriver:PerformActions", body)
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -     return func(*args, **kwargs)
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 722, in _send_message
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -     self._handle_error(err)
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 734, in _handle_error
[task 2023-10-10T08:54:58.330Z] 08:54:58     INFO -     raise errors.lookup(error)(message, stacktrace=stacktrace)

:masayuki, since you are the author of the regressor, bug 1844723, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(masayuki)

Ah, if it's in the headless mode, the drag service is never instantiated.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)

The drag service is never instantiated if it's in the headless mode.
And in this case, NS_ERROR_XPC_GS_RETURNED_FAILURE exception is thrown.
Therefore, we need to wrap the service getter with a try block and
return null if it fails.

Summary: Perma testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py | single tracking bug → Perma tier2 testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py | single tracking bug
Summary: Perma tier2 testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py | single tracking bug → Perma tier2 testing/marionette/harness/marionette_harness/tests/unit/test_chrome_action.py | marionette_driver.errors.UnknownException: [Exception... "ServiceManager::GetService returned failure code:" nsresult: "0x80570016 ...

Set release status flags based on info from the regressing bug 1844723

The behavior was introduced in bug 1353939 (there is no stack data of the crash though).

See Also: → 1353939
See Also: → 1812964
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/25aeae00c101
Wrap the drag service getter into a try block r=whimboo,webdriver-reviewers
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
See Also: → 1806870
OS: Unspecified → Linux
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: