Closed
Bug 1838467
Opened 1 year ago
Closed 1 year ago
Intermittent [tier 2] /webdriver/tests/classic/maximize_window/maximize.py | test_maximize_when_resized_to_max_size - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1838331
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=419282550&repo=mozilla-beta
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Po6bqFdDSomto6dac3z4Ig/runs/0/artifacts/public/logs/live_backing.log
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - TEST-PASS | /webdriver/tests/classic/maximize_window/maximize.py | test_maximize
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - TEST-PASS | /webdriver/tests/classic/maximize_window/maximize.py | test_payload
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - TEST-PASS | /webdriver/tests/classic/maximize_window/maximize.py | test_maximize_twice_is_idempotent
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/classic/maximize_window/maximize.py | test_maximize_when_resized_to_max_size - webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - session = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - def test_maximize_when_resized_to_max_size(session):
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - # Determine the largest available window size by first maximising
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - # the window and getting the window rect dimensions.
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - #
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - # Then resize the window to the maximum available size.
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - session.end()
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO - > session.window.maximize()
[task 2023-06-14T14:35:34.735Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - session = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - tests\web-platform\tests\webdriver\tests\classic\maximize_window\maximize.py:85:
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:22: in inner
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - return func(self, *args, **kwargs)
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - args = ()
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - func = <function Window.maximize at 0x00000225FAB05310>
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - kwargs = {}
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - self = <webdriver.client.Window object at 0x00000225FABE3700>
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - session = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:365: in maximize
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - return self.session.send_session_command("POST", "window/maximize")
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - self = <webdriver.client.Window object at 0x00000225FABE3700>
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:658: in send_session_command
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - return self.send_command(method, url, body, timeout)
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - body = None
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - method = 'POST'
[task 2023-06-14T14:35:34.736Z] 14:35:34 INFO - self = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - timeout = None
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - uri = 'window/maximize'
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - url = 'session/5de7fb45-5c18-46d8-9b1a-51a5214a0604/window/maximize'
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - self = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>, method = 'POST'
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - url = 'session/5de7fb45-5c18-46d8-9b1a-51a5214a0604/window/maximize'
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - body = None, timeout = None
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.737Z] 14:35:34 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - """
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - Send a command to the remote end and validate its success.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :param method: HTTP method to use in request.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - e.g. `window/rect`.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :param body: Optional body of the HTTP request.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - the `value` field returned after parsing the response
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - body as JSON.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :raises error.WebDriverException: If the remote end returns
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - an error.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - :raises ValueError: If the response body does not contain a
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - `value` key.
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - """
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - response = self.transport.send(
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - method, url, body,
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2023-06-14T14:35:34.738Z] 14:35:34 INFO - session=self, timeout=timeout)
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - if response.status != 200:
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - err = error.from_response(response)
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - # The driver could have already been deleted the session.
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - self.session_id = None
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - > raise err
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E webdriver.error.NoSuchWindowException: no such window (404): Browsing context has been discarded
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E Remote-end stacktrace:
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:187:5
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:613:5
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E assert.that/<@chrome://remote/content/shared/webdriver/Assert.sys.mjs:485:13
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E assert.open@chrome://remote/content/shared/webdriver/Assert.sys.mjs:147:4
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E GeckoDriver.prototype.maximizeWindow@chrome://remote/content/marionette/driver.sys.mjs:2617:15
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E despatch@chrome://remote/content/marionette/server.sys.mjs:320:40
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E execute@chrome://remote/content/marionette/server.sys.mjs:291:16
[task 2023-06-14T14:35:34.739Z] 14:35:34 INFO - E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:264:20
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - E onPacket@chrome://remote/content/marionette/server.sys.mjs:265:9
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:496:20
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - body = None
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - err = <NoSuchWindowException http_status=404>
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - method = 'POST'
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - response = <Response status=404 error=<NoSuchWindowException http_status=404>>
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - self = <Session 5de7fb45-5c18-46d8-9b1a-51a5214a0604>
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - timeout = None
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - url = 'session/5de7fb45-5c18-46d8-9b1a-51a5214a0604/window/maximize'
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO -
[task 2023-06-14T14:35:34.740Z] 14:35:34 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:622: NoSuchWindowException
[task 2023-06-14T14:35:34.741Z] 14:35:34 INFO - TEST-OK | /webdriver/tests/classic/maximize_window/maximize.py | took 26676ms
[task 2023-06-14T14:35:34.742Z] 14:35:34 INFO - PID 9908 | 1686753334733 webdriver::server DEBUG -> GET /status
[task 2023-06-14T14:35:34.743Z] 14:35:34 INFO - PID 9908 | 1686753334733 webdriver::server DEBUG <- 200 OK {"value":{"message":"","ready":true}}
[task 2023-06-14T14:35:44.764Z] 14:35:44 WARNING - Forcibly terminating runner process
[task 2023-06-14T14:35:45.279Z] 14:35:45 INFO - PID 2532 | 1686753344784 geckodriver INFO Listening on 127.0.0.1:52788
[task 2023-06-14T14:35:45.282Z] 14:35:45 INFO - Starting runner
[task 2023-06-14T14:35:45.951Z] 14:35:45 INFO - TEST-START | /webdriver/tests/classic/maximize_window/stress.py
Comment 1•1 year ago
|
||
Basically the same underlying symptom as bug 1838331 covers.
You need to log in
before you can comment on or make changes to this bug.
Description
•