Closed
Bug 1827776
Opened 2 years ago
Closed 2 years ago
Intermittent Android Wd | webdriver.error.NoSuchWindowException: no such window (404) [!realm_->hasActiveAutoSetNewObjectMetadata_]
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1827830
People
(Reporter: intermittent-bug-filer, Unassigned)
References
Details
(Keywords: intermittent-failure)
Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=412247347&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/HdMJdtbOQr--VNCSIrnkuA/runs/0/artifacts/public/logs/live_backing.log
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - TEST-PASS | /webdriver/tests/find_element_from_shadow_root/find.py | test_find_element[closed-css selector-#linkText]
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/find_element_from_shadow_root/find.py | test_find_element[closed-link text-full link text] - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - session = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f78c2ae8b00>
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - using = 'link text', value = 'full link text', mode = 'closed'
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - @pytest.mark.parametrize("using,value",
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - [("css selector", "#linkText"),
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - ("link text", "full link text"),
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - ("partial link text", "link text"),
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - ("tag name", "a"),
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - ("xpath", "//a")])
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - @pytest.mark.parametrize("mode", ["open", "closed"])
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - def test_find_element(session, get_test_page, using, value, mode):
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - session.url = get_test_page(
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - shadow_doc="<div><a href=# id=linkText>full link text</a></div>",
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - shadow_root_mode=mode,
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - )
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - > shadow_root = session.find.css("custom-element", all=False).shadow_root
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - get_test_page = <function get_test_page.<locals>.get_test_page at 0x7f78c2ae8b00>
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - mode = 'closed'
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - session = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - using = 'link text'
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - value = 'full link text'
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - tests/web-platform/tests/webdriver/tests/find_element_from_shadow_root/find.py:171:
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:22: in inner
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - return func(self, *args, **kwargs)
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - args = ('custom-element',)
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - func = <function Find.css at 0x7f78c34a37a0>
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - kwargs = {'all': False}
[task 2023-04-13T02:21:26.645Z] 02:21:26 INFO - self = <webdriver.client.Find object at 0x7f78c2bf9110>
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - session = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:438: in css
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - elements = self._find_element("css selector", element_selector, all)
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - all = False
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - element_selector = 'custom-element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - self = <webdriver.client.Find object at 0x7f78c2bf9110>
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:445: in _find_element
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - return self.session.send_session_command("POST", route, body)
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - all = False
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - body = {'using': 'css selector', 'value': 'custom-element'}
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - route = 'element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - selector = 'custom-element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - self = <webdriver.client.Find object at 0x7f78c2bf9110>
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - strategy = 'css selector'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:661: in send_session_command
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - return self.send_command(method, url, body, timeout)
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - body = {'using': 'css selector', 'value': 'custom-element'}
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - method = 'POST'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - self = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - timeout = None
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - uri = 'element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - url = 'session/9d86c741-0bfd-49ba-a4be-5698a2795063/element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - self = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>, method = 'POST'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - url = 'session/9d86c741-0bfd-49ba-a4be-5698a2795063/element'
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - body = {'using': 'css selector', 'value': 'custom-element'}, timeout = None
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - """
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO - Send a command to the remote end and validate its success.
[task 2023-04-13T02:21:26.646Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :param method: HTTP method to use in request.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - e.g. `window/rect`.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :param body: Optional body of the HTTP request.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - the `value` field returned after parsing the response
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - body as JSON.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :raises error.WebDriverException: If the remote end returns
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - an error.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - :raises ValueError: If the response body does not contain a
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - `value` key.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - """
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - response = self.transport.send(
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - method, url, body,
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - session=self, timeout=timeout)
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - if response.status != 200:
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - err = error.from_response(response)
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - # The driver could have already been deleted the session.
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - self.session_id = None
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - > raise err
[task 2023-04-13T02:21:26.647Z] 02:21:26 INFO - E webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E Remote-end stacktrace:
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:183:5
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:468:5
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E assert.that/<@chrome://remote/content/shared/webdriver/Assert.sys.mjs:485:13
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E assert.open@chrome://remote/content/shared/webdriver/Assert.sys.mjs:147:4
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E GeckoDriver.prototype.findElement@chrome://remote/content/marionette/driver.sys.mjs:1495:15
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E despatch@chrome://remote/content/marionette/server.sys.mjs:304:40
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E execute@chrome://remote/content/marionette/server.sys.mjs:275:16
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:248:20
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E onPacket@chrome://remote/content/marionette/server.sys.mjs:249:9
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:496:20
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - body = {'using': 'css selector', 'value': 'custom-element'}
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - err = <NoSuchWindowException http_status=404>
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - method = 'POST'
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - response = <Response status=404 error=<NoSuchWindowException http_status=404>>
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - self = <Session 9d86c741-0bfd-49ba-a4be-5698a2795063>
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - timeout = None
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - url = 'session/9d86c741-0bfd-49ba-a4be-5698a2795063/element'
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO -
[task 2023-04-13T02:21:26.648Z] 02:21:26 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:625: NoSuchWindowException
[task 2023-04-13T02:21:26.658Z] 02:21:26 INFO - ................
[task 2023-04-13T02:21:26.658Z] 02:21:26 INFO - TEST-OK | /webdriver/tests/find_element_from_shadow_root/find.py | took 27782ms
Comment 1•2 years ago
|
||
The browser tab crash due to MOZ_Assert: Assertion failure: !realm_->hasActiveAutoSetNewObjectMetadata_ (Shouldn't nest AutoSetNewObjectMetadata), at /builds/worker/checkouts/gecko/js/src/vm/Realm.h:904
.
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1827830
Resolution: --- → DUPLICATE
Summary: Intermittent /webdriver/tests/find_element_from_shadow_root/find.py | test_find_element[closed-link text-full link text] - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded → Intermittent /webdriver/tests/find_element_from_shadow_root/find.py | test_find_element[closed-link text-full link text] - webdriver.error.NoSuchWindowException: no such window (404) [!realm_->hasActiveAutoSetNewObjectMetadata_]
Updated•2 years ago
|
Summary: Intermittent /webdriver/tests/find_element_from_shadow_root/find.py | test_find_element[closed-link text-full link text] - webdriver.error.NoSuchWindowException: no such window (404) [!realm_->hasActiveAutoSetNewObjectMetadata_] → Intermittent Android Wd | webdriver.error.NoSuchWindowException: no such window (404) [!realm_->hasActiveAutoSetNewObjectMetadata_]
You need to log in
before you can comment on or make changes to this bug.
Description
•