Closed
Bug 821766
Opened 12 years ago
Closed 11 years ago
Repeatedly launching app causes a JavaScript exception to be thrown
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: davehunt, Unassigned)
References
Details
I believe this is just highlighting an issue that we see in various circumstances, but it's pretty easy to replicate this way: $ wget https://raw.github.com/mozilla/gaia-ui-tests/master/gaiatest/atoms/gaia_apps.js $ adb forward tcp:2828 tcp:2828 $ python >>> from marionette import Marionette >>> marionette = Marionette(host='localhost', port=2828) >>> marionette.start_session() >>> marionette.set_script_timeout(60000) >>> marionette.set_context(marionette.CONTEXT_CONTENT) >>> marionette.import_script('gaia_apps.js') >>> for i in range(10): ... marionette.execute_async_script('GaiaApps.launchWithName("Phone");') ... marionette.execute_async_script('GaiaApps.killAll();') Expected result: Phone app launches and terminates 10 times Actual result: After a few iterations the following traceback is thrown. Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/Users/dhunt/workspace/mozilla-central/testing/marionette/client/marionette/marionette.py", line 458, in execute_async_script specialPowers=special_powers) File "/Users/dhunt/workspace/mozilla-central/testing/marionette/client/marionette/marionette.py", line 211, in _send_message self._handle_error(response) File "/Users/dhunt/workspace/mozilla-central/testing/marionette/client/marionette/marionette.py", line 246, in _handle_error raise JavascriptException(message=message, status=status, stacktrace=stacktrace) marionette.errors.JavascriptException: {}
Comment 1•12 years ago
|
||
Malini found a way to get stack traces for some of these weird exceptions; once that's landed, we should be able to figure this out. My gut feeling is that we're hitting a Gaia bug, which we're catching in our "error" event listener.
Reporter | ||
Comment 2•11 years ago
|
||
I'm no longer able to replicate this, so resolving as WORKSFORME. Please reopen with additional details if you still encounter this issue.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•