Bug: Intermittent browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines | JavascriptException: 2147549183
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-09-22 16:04:22+00:00
Resolved: 2020-10-20 17:03:13+00:00

**Filed by:** apavel [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer.html#?job_id=316384339&repo=try
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Iy2TCIuIQmidee-5jIP9Yg/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2020-09-22T14:41:42.478Z] 14:41:42     INFO -  TEST-START | browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines
[task 2020-09-22T14:41:42.629Z] 14:41:42     INFO -  Application command: Z:\task_1600785016\build\application\firefox\firefox.exe -no-remote -marionette --wait-for-browser -profile c:\users\task_1600785016\appdata\local\temp\tmpjuymev.mozrunner
[task 2020-09-22T14:41:42.789Z] 14:41:42     INFO -  DEBUG: Adding blocker OS.File: flush pending requests, warn about unclosed files, shut down service. for phase xpcom-will-shutdown
[task 2020-09-22T14:41:42.789Z] 14:41:42     INFO -  DEBUG: Adding blocker OS.File: flush I/O queued before profileBeforeChange for phase profile-before-change
[task 2020-09-22T14:41:42.789Z] 14:41:42     INFO -  DEBUG: Adding blocker AddonManager: shutting down. for phase profile-before-change
[task 2020-09-22T14:41:42.808Z] 14:41:42     INFO -  DEBUG: Adding blocker ClientManagerService: start destroying IPC actors early for phase xpcom-will-shutdown
[task 2020-09-22T14:41:42.869Z] 14:41:42     INFO -  DEBUG: Adding blocker Flush WebExtension StartupCache for phase profile-before-change
[task 2020-09-22T14:41:42.948Z] 14:41:42     INFO -  DEBUG: Adding blocker JSON store: writing data for phase profile-before-change
[task 2020-09-22T14:41:42.978Z] 14:41:42     INFO -  DEBUG: Adding blocker JSON store: writing data for phase AddonManager: Waiting for providers to shut down.
[task 2020-09-22T14:41:42.978Z] 14:41:42     INFO -  DEBUG: Adding blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2020-09-22T14:41:42.978Z] 14:41:42     INFO -  DEBUG: Completed blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2020-09-22T14:41:42.988Z] 14:41:42     INFO -  DEBUG: Adding blocker XPIProvider shutdown for phase quit-application-granted
[task 2020-09-22T14:41:42.988Z] 14:41:42     INFO -  DEBUG: Adding blocker XPIProvider for phase AddonManager: Waiting for providers to shut down.
[task 2020-09-22T14:41:42.988Z] 14:41:42     INFO -  DEBUG: Adding blocker PluginProvider for phase AddonManager: Waiting for providers to shut down.
[task 2020-09-22T14:41:42.988Z] 14:41:42     INFO -  DEBUG: Adding blocker ServiceWorkerRegistrar: Flushing data for phase profile-before-change
[task 2020-09-22T14:41:42.988Z] 14:41:42     INFO -  DEBUG: Adding blocker CrashMonitor: Writing notifications to file after receiving profile-before-change for phase OS.File: Waiting for clients before profileBeforeChange
[task 2020-09-22T14:41:43.071Z] 14:41:43     INFO -  DEBUG: Adding blocker TelemetryController: shutting down for phase profile-before-change-telemetry
[task 2020-09-22T14:41:43.089Z] 14:41:43     INFO -  DEBUG: Adding blocker EnvironmentAddonBuilder for phase AddonManager: Waiting to start provider shutdown.
[task 2020-09-22T14:41:43.089Z] 14:41:43     INFO -  DEBUG: Adding blocker RemoteSettingsClient - finish IDB access. for phase profile-before-change
[task 2020-09-22T14:41:43.099Z] 14:41:43     INFO -  1600785703092	Marionette	TRACE	Marionette enabled
[task 2020-09-22T14:41:43.137Z] 14:41:43     INFO -  1600785703125	Marionette	TRACE	Received observer notification toplevel-window-ready
[task 2020-09-22T14:41:43.321Z] 14:41:43     INFO -  DEBUG: Adding blocker MediaShutdownManager: shutdown for phase profile-before-change
[task 2020-09-22T14:41:43.341Z] 14:41:43     INFO -  DEBUG: Adding blocker JSON store: writing data for phase profile-before-change
[task 2020-09-22T14:41:43.381Z] 14:41:43     INFO -  DEBUG: Adding blocker ServiceWorkerShutdownBlocker: shutting down Service Workers for phase profile-change-teardown
[task 2020-09-22T14:41:43.402Z] 14:41:43     INFO -  DEBUG: Adding blocker Remote Settings profile-before-change for phase profile-before-change
[task 2020-09-22T14:41:43.402Z] 14:41:43     INFO -  DEBUG: Adding blocker JSON store: writing data for phase profile-before-change
[task 2020-09-22T14:41:43.421Z] 14:41:43     INFO -  DEBUG: Adding blocker GMPProvider for phase AddonManager: Waiting for providers to shut down.
[task 2020-09-22T14:41:43.421Z] 14:41:43     INFO -  DEBUG: Adding blocker PluginFinder: finding plugins to load for phase profile-change-teardown

[task 2020-09-22T14:41:45.100Z] 14:41:45     INFO -  1600785705098	Marionette	DEBUG	3 -> [0,5,"WebDriver:ExecuteAsyncScript",{"scriptTimeout":null,"newSandbox":true,"args":[],"filename":"Z:\\task_1600785016\\build\ ... chService.init().then(function () {\n  resolve(searchService.defaultEngine.identifier);\n});","sandbox":"default","line":34}]
[task 2020-09-22T14:41:45.102Z] 14:41:45     INFO -  console.debug: SearchService: "init"
[task 2020-09-22T14:41:45.102Z] 14:41:45     INFO -  1600785705100	Marionette	DEBUG	3 <- [1,5,{"error":"javascript error","message":"2147549183","stacktrace":"WebDriverError@chrome://marionette/content/error.js:181 ... Error@chrome://marionette/content/error.js:360:5\nevaluate.sandbox/<@chrome://marionette/content/evaluate.js:172:13\n"},null]
[task 2020-09-22T14:41:45.104Z] 14:41:45     INFO -  1600785705102	Marionette	DEBUG	3 -> [0,6,"Marionette:SetContext",{"value":"content"}]
[task 2020-09-22T14:41:45.104Z] 14:41:45     INFO -  1600785705102	Marionette	DEBUG	3 <- [1,6,null,{"value":null}]
[task 2020-09-22T14:41:45.106Z] 14:41:45     INFO -  1600785705104	Marionette	DEBUG	3 -> [0,7,"Marionette:GetContext",{}]
[task 2020-09-22T14:41:45.106Z] 14:41:45     INFO -  1600785705104	Marionette	DEBUG	3 <- [1,7,null,{"value":"content"}]
[task 2020-09-22T14:41:45.108Z] 14:41:45     INFO -  1600785705105	Marionette	DEBUG	3 -> [0,8,"Marionette:SetContext",{"value":"chrome"}]
[task 2020-09-22T14:41:45.108Z] 14:41:45     INFO -  1600785705105	Marionette	DEBUG	3 <- [1,8,null,{"value":null}]
[task 2020-09-22T14:41:45.108Z] 14:41:45     INFO -  1600785705106	Marionette	DEBUG	3 -> [0,9,"WebDriver:TakeScreenshot",{"full":true,"hash":false,"id":null,"scroll":true}]
[task 2020-09-22T14:41:45.174Z] 14:41:45     INFO -  1600785705170	Marionette	DEBUG	3 <- [1,9,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQHCAYAAACjlsT7AAAgAElEQVR4nOzdT2yc953fcZ17aU+LvdVAjmqBnH0omkMWQRaQEcUJEIAyk ... AAAACMCUAAAAAAGBOAAAAAADAmAAEAAABgTAACAAAAwJgABAAAAIAxAQgAAAAAYwIQAAAAAMYEIAAAAACMCUAAAAAAGAsqHS0hyltFxgAAAABJRU5ErkJggg=="}]
[task 2020-09-22T14:41:45.174Z] 14:41:45     INFO -  1600785705173	Marionette	DEBUG	3 -> [0,10,"Marionette:SetContext",{"value":"content"}]
[task 2020-09-22T14:41:45.174Z] 14:41:45     INFO -  1600785705173	Marionette	DEBUG	3 <- [1,10,null,{"value":null}]
[task 2020-09-22T14:41:45.176Z] 14:41:45     INFO -  1600785705174	Marionette	DEBUG	3 -> [0,11,"Marionette:GetContext",{}]
[task 2020-09-22T14:41:45.176Z] 14:41:45     INFO -  1600785705175	Marionette	DEBUG	3 <- [1,11,null,{"value":"content"}]
[task 2020-09-22T14:41:45.178Z] 14:41:45     INFO -  1600785705176	Marionette	DEBUG	3 -> [0,12,"Marionette:SetContext",{"value":"content"}]
[task 2020-09-22T14:41:45.178Z] 14:41:45     INFO -  1600785705176	Marionette	DEBUG	3 <- [1,12,null,{"value":null}]
[task 2020-09-22T14:41:45.180Z] 14:41:45     INFO -  1600785705177	Marionette	DEBUG	3 -> [0,13,"WebDriver:GetPageSource",{}]
[task 2020-09-22T14:41:45.185Z] 14:41:45     INFO -  1600785705182	Marionette	DEBUG	3 <- [1,13,null,{"value":"<html><head></head><body></body></html>"}]
[task 2020-09-22T14:41:45.185Z] 14:41:45     INFO -  1600785705183	Marionette	DEBUG	3 -> [0,14,"Marionette:SetContext",{"value":"content"}]
[task 2020-09-22T14:41:45.185Z] 14:41:45     INFO -  1600785705183	Marionette	DEBUG	3 <- [1,14,null,{"value":null}]
[task 2020-09-22T14:41:45.187Z] 14:41:45    ERROR -  TEST-UNEXPECTED-ERROR | browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines | JavascriptException: 2147549183
[task 2020-09-22T14:41:45.187Z] 14:41:45     INFO -  stacktrace:
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -  	WebDriverError@chrome://marionette/content/error.js:181:5
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -  	JavaScriptError@chrome://marionette/content/error.js:360:5
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -  	evaluate.sandbox/<@chrome://marionette/content/evaluate.js:172:13
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -  Traceback (most recent call last):
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 196, in run
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -      testMethod()
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\tests\marionette\tests\browser\components\search\test\marionette\test_engines_on_restart.py", line 37, in test_engines
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -      self.assertTrue(self.get_default_search_engine().startswith("google"))
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\tests\marionette\tests\browser\components\search\test\marionette\test_engines_on_restart.py", line 34, in get_default_search_engine
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -      return self.marionette.execute_async_script(textwrap.dedent(script))
[task 2020-09-22T14:41:45.188Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1652, in execute_async_script
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -      rv = self._send_message("WebDriver:ExecuteAsyncScript", body, key="value")
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\venv\lib\site-packages\marionette_driver\decorators.py", line 26, in _
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -      return func(*args, **kwargs)
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\venv\lib\site-packages\marionette_driver\marionette.py", line 602, in _send_message
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -      self._handle_error(err)
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -    File "Z:\task_1600785016\build\venv\lib\site-packages\marionette_driver\marionette.py", line 622, in _handle_error
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -      raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -  TEST-INFO took 2706ms
[task 2020-09-22T14:41:45.189Z] 14:41:45     INFO -  1600785705187	Marionette	DEBUG	3 -> [0,15,"WebDriver:DeleteSession",{}]
[task 2020-09-22T14:41:45.190Z] 14:41:45     INFO -  1600785705188	Marionette	DEBUG	3 <- [1,15,null,{"value":null}]
[task 2020-09-22T14:41:45.195Z] 14:41:45     INFO -  TEST-START | extensions/pref/autoconfig/test/marionette/test_autoconfig.py TestAutoConfig.test_autoconfig```