Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_click.py TestClickCloseContext.test_click_close_tab | NoSuchWindowException: Unable to locate window: 2147483688

RESOLVED INCOMPLETE

Status

defect
P5
normal
RESOLVED INCOMPLETE
Last year
11 months ago

People

(Reporter: intermittent-bug-filer, Unassigned)

Tracking

({intermittent-failure})

Version 3
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

Last year
treeherder
Filed by: ccoroiu [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=186511608&repo=mozilla-inbound

https://queue.taskcluster.net/v1/task/Ci1O9C3dRVmr0zmvWMn35Q/runs/0/artifacts/public/logs/live_backing.log

task 2018-07-04T23:08:47.955Z] 23:08:47     INFO -  [Parent 1144, Main Thread] WARNING: Remote iframe not rendered: file /builds/worker/workspace/build/src/layout/ipc/RenderFrameParent.cpp, line 182
[task 2018-07-04T23:08:48.052Z] 23:08:48     INFO -  1530745728042	Marionette	TRACE	169 <- [1,25,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQQCAYAAAC9RfbYAAAgAElEQVR4nOzd3Ytc95ngcV0O5P8IaJhAwgzegA1JGNgBY5hZX8SZMBjW ... AAAAAAMCYAAQAAAGBMAAIAAADAmAAEAAAAgDEBCAAAAABjAhAAAAAAxgQgAAAAAIwJQAAAAAAYE4AAAAAAMCYAAQAAAGAsk4VtNY5EIi0AAAAASUVORK5CYII="}]
[task 2018-07-04T23:08:48.112Z] 23:08:48     INFO -  1530745728107	Marionette	TRACE	169 -> [0,26,"Marionette:SetContext",{"value":"content"}]
[task 2018-07-04T23:08:48.120Z] 23:08:48     INFO -  1530745728111	Marionette	TRACE	169 <- [1,26,null,{"value":null}]
[task 2018-07-04T23:08:48.144Z] 23:08:48     INFO -  1530745728139	Marionette	TRACE	169 -> [0,27,"Marionette:GetContext",{}]
[task 2018-07-04T23:08:48.147Z] 23:08:48     INFO -  1530745728143	Marionette	TRACE	169 <- [1,27,null,{"value":"content"}]
[task 2018-07-04T23:08:48.155Z] 23:08:48     INFO -  1530745728152	Marionette	TRACE	169 -> [0,28,"Marionette:SetContext",{"value":"content"}]
[task 2018-07-04T23:08:48.163Z] 23:08:48     INFO -  1530745728157	Marionette	TRACE	169 <- [1,28,null,{"value":null}]
[task 2018-07-04T23:08:48.171Z] 23:08:48     INFO -  1530745728167	Marionette	TRACE	169 -> [0,29,"WebDriver:GetPageSource",{}]
[task 2018-07-04T23:08:48.177Z] 23:08:48     INFO -  1530745728171	Marionette	TRACE	169 <- [1,29,{"error":"no such window","message":"Browsing context has been discarded","stacktrace":"WebDriverError@chrome://marione ... et@chrome://marionette/content/server.js:245:8\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:500:9\n"},null]
[task 2018-07-04T23:08:48.183Z] 23:08:48     INFO -  1530745728180	Marionette	TRACE	169 -> [0,30,"Marionette:SetContext",{"value":"content"}]
[task 2018-07-04T23:08:48.189Z] 23:08:48     INFO -  1530745728182	Marionette	TRACE	169 <- [1,30,null,{"value":null}]
[task 2018-07-04T23:08:48.191Z] 23:08:48  WARNING - Failed to gather test failure debug: Browsing context has been discarded
[task 2018-07-04T23:08:48.193Z] 23:08:48  WARNING - stacktrace:
[task 2018-07-04T23:08:48.194Z] 23:08:48  WARNING - 	WebDriverError@chrome://marionette/content/error.js:178:5
[task 2018-07-04T23:08:48.196Z] 23:08:48  WARNING - 	NoSuchWindowError@chrome://marionette/content/error.js:410:5
[task 2018-07-04T23:08:48.198Z] 23:08:48  WARNING - 	assert.that/<@chrome://marionette/content/assert.js:405:13
[task 2018-07-04T23:08:48.199Z] 23:08:48  WARNING - 	assert.open@chrome://marionette/content/assert.js:161:10
[task 2018-07-04T23:08:48.201Z] 23:08:48  WARNING - 	GeckoDriver.prototype.getPageSource@chrome://marionette/content/driver.js:1156:15
[task 2018-07-04T23:08:48.202Z] 23:08:48  WARNING - 	Async*despatch@chrome://marionette/content/server.js:297:20
[task 2018-07-04T23:08:48.203Z] 23:08:48  WARNING - 	async*execute@chrome://marionette/content/server.js:271:11
[task 2018-07-04T23:08:48.206Z] 23:08:48  WARNING - 	async*onPacket/<@chrome://marionette/content/server.js:246:15
[task 2018-07-04T23:08:48.207Z] 23:08:48  WARNING - 	async*onPacket@chrome://marionette/content/server.js:245:8
[task 2018-07-04T23:08:48.209Z] 23:08:48  WARNING - 	_onJSONObjectReady/<@chrome://marionette/content/transport.js:500:9
[task 2018-07-04T23:08:48.212Z] 23:08:48  WARNING - 
[task 2018-07-04T23:08:48.229Z] 23:08:48     INFO - TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_click.py TestClickCloseContext.test_click_close_tab | NoSuchWindowException: Unable to locate window: 2147483688
[task 2018-07-04T23:08:48.230Z] 23:08:48     INFO - stacktrace:
[task 2018-07-04T23:08:48.233Z] 23:08:48     INFO - 	WebDriverError@chrome://marionette/content/error.js:178:5
[task 2018-07-04T23:08:48.234Z] 23:08:48     INFO - 	NoSuchWindowError@chrome://marionette/content/error.js:410:5
[task 2018-07-04T23:08:48.235Z] 23:08:48     INFO - 	GeckoDriver.prototype.switchToWindow@chrome://marionette/content/driver.js:1556:11
[task 2018-07-04T23:08:48.241Z] 23:08:48     INFO - 	Async*despatch@chrome://marionette/content/server.js:297:20
[task 2018-07-04T23:08:48.243Z] 23:08:48     INFO - 	async*execute@chrome://marionette/content/server.js:271:11
[task 2018-07-04T23:08:48.245Z] 23:08:48     INFO - 	async*onPacket/<@chrome://marionette/content/server.js:246:15
[task 2018-07-04T23:08:48.246Z] 23:08:48     INFO - 	async*onPacket@chrome://marionette/content/server.js:245:8
[task 2018-07-04T23:08:48.248Z] 23:08:48     INFO - 	_onJSONObjectReady/<@chrome://marionette/content/transport.js:500:9
[task 2018-07-04T23:08:48.249Z] 23:08:48     INFO - Traceback (most recent call last):
[task 2018-07-04T23:08:48.251Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 190, in run
[task 2018-07-04T23:08:48.252Z] 23:08:48     INFO -     self.tearDown()
[task 2018-07-04T23:08:48.254Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_click.py", line 447, in tearDown
[task 2018-07-04T23:08:48.255Z] 23:08:48     INFO -     self.close_all_tabs()
[task 2018-07-04T23:08:48.257Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/runner/mixins/window_manager.py", line 44, in close_all_tabs
[task 2018-07-04T23:08:48.258Z] 23:08:48     INFO -     self.marionette.switch_to_window(handle)
[task 2018-07-04T23:08:48.261Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1478, in switch_to_window
[task 2018-07-04T23:08:48.262Z] 23:08:48     INFO -     {"focus": focus, "name": window_id})
[task 2018-07-04T23:08:48.263Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _
[task 2018-07-04T23:08:48.266Z] 23:08:48     INFO -     return func(*args, **kwargs)
[task 2018-07-04T23:08:48.267Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 761, in _send_message
[task 2018-07-04T23:08:48.268Z] 23:08:48     INFO -     self._handle_error(err)
[task 2018-07-04T23:08:48.269Z] 23:08:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 781, in _handle_error
[task 2018-07-04T23:08:48.271Z] 23:08:48     INFO -     raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2018-07-04T23:08:48.272Z] 23:08:48     INFO - TEST-INFO took 3360ms
Very strange. I thought I had this fixed with bug 1452653. But we still return too early for `click` which potentially could close a window:

> [task 2018-07-04T23:08:46.286Z] 23:08:46     INFO -  1530745726280	Marionette	TRACE	169 -> [0,19,"WebDriver:FindElement",{"using":"id","value":"close-window"}]
> [task 2018-07-04T23:08:46.811Z] 23:08:46     INFO -  1530745726806	Marionette	TRACE	169 <- [1,19,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"bfa3de55-de84-47cf-815c-d7ff548ffb66","ELEMENT":"bfa3de55-de84-47cf-815c-d7ff548ffb66"}}]
> [task 2018-07-04T23:08:46.813Z] 23:08:46     INFO -  1530745726810	Marionette	TRACE	169 -> [0,20,"WebDriver:ElementClick",{"id":"bfa3de55-de84-47cf-815c-d7ff548ffb66"}]
> [task 2018-07-04T23:08:47.700Z] 23:08:47     INFO -  1530745727687	Marionette	DEBUG	[2147483688] Canceled page load listener because no navigation has been detected
> [task 2018-07-04T23:08:47.702Z] 23:08:47     INFO -  1530745727691	Marionette	TRACE	169 <- [1,20,null,{"value":null}]
> [task 2018-07-04T23:08:47.703Z] 23:08:47     INFO -  1530745727697	Marionette	TRACE	169 -> [0,21,"WebDriver:GetWindowHandles",{}]
> [task 2018-07-04T23:08:47.706Z] 23:08:47     INFO -  1530745727700	Marionette	TRACE	169 <- [1,21,null,["2147483649","2147483688"]]
Depends on: 1452653
Comment hidden (Intermittent Failures Robot)
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.