Closed
Bug 772249
Opened 12 years ago
Closed 12 years ago
Marionette hangs at new_session after restarting B2G for mochitests
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jgriffin, Unassigned)
References
Details
When running mochitests on a B2G emulator, we restart B2G with a test profile. After this, we use Marionette to navigate to the test page.
Sometime between June 26 and now, this stopped working; the request for new_session after B2G restarts times out:
INFO | runtests.py | Received unexpected exception while running application
Traceback (most recent call last):
File "/home/jgriffin/armB2G/objdir-gecko/_tests/testing/mochitest/runtests.py", line 697, in runTests
timeout = timeout)
File "/home/jgriffin/armB2G/objdir-gecko/_tests/testing/mochitest/automation.py", line 900, in runApp
stderr = subprocess.STDOUT)
File "/home/jgriffin/armB2G/objdir-gecko/_tests/testing/mochitest/b2gautomation.py", line 208, in Process
session = self.marionette.start_session()
File "/home/jgriffin/mozilla-central/src/testing/marionette/client/marionette/marionette.py", line 220, in start_session
self.session = self._send_message('newSession', 'value')
File "/home/jgriffin/mozilla-central/src/testing/marionette/client/marionette/marionette.py", line 142, in _send_message
raise TimeoutException(message='socket.timeout', status=ErrorCodes.TIMEOUT, stacktrace=None)
TimeoutException: socket.timeout
Reporter | ||
Comment 1•12 years ago
|
||
This is caused by bug 772307; that bug prevents shell.js from creating the content frame, which prevents Marionette from loading a listener frame script, which causes new_session to fail.
Reporter | ||
Comment 2•12 years ago
|
||
So, I can't test this on emulators currently due to https://github.com/mozilla-b2g/B2G/issues/70. I tried this on an otoro device, and the problem still persists. The only error in logcat that looks relevant is:
E/GeckoConsole( 106): [JavaScript Error: "NS_ERROR_MALFORMED_URI: Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService2.newURI]" {file: "chrome://browser/content/shell.js" line: 59}]
However, this same error was observed last week on the emulator (before it broke) and there it did not block reftest from running, so it may not be the cause of this problem on the otoro device.
Reporter | ||
Comment 3•12 years ago
|
||
This doesn't seem to be happening any longer.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•