Closed Bug 1172029 Opened 10 years ago Closed 10 years ago

Intermittent JavascriptException: TypeError: window.wrappedJSObject.ScreenManager is undefined

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: martijn.martijn)

References

Details

Attachments

(1 file, 1 obsolete file)

Saw this happening in this Jenkins run: http://jenkins1.qa.scl3.mozilla.com/job/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/278/testReport/%28root%29/test_homescreen_move_app_py%20TestMoveApp_test_move_app_position/test_homescreen_move_app_py_TestMoveApp_test_move_app_position/ Traceback (most recent call last): File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_client-0.13-py2.7.egg/marionette/marionette_test.py", line 277, in run self.setUp() File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/tests/python/gaia-ui-tests/gaiatest/tests/functional/homescreen/test_homescreen_move_app.py", line 12, in setUp GaiaTestCase.setUp(self) File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/tests/python/gaia-ui-tests/gaiatest/gaia_test.py", line 867, in setUp 'window.wrappedJSObject.ScreenManager.LOCKING_TIMEOUT = 9999;') File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_driver-0.7-py2.7.egg/marionette_driver/marionette.py", line 1452, in execute_script filename=os.path.basename(frame[0])) File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_driver-0.7-py2.7.egg/marionette_driver/decorators.py", line 36, in _ return func(*args, **kwargs) File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_driver-0.7-py2.7.egg/marionette_driver/marionette.py", line 711, in _send_message self._handle_error(response) File "/var/jenkins/2/workspace/flame-kk-319.mozilla-central.nightly.ui.functional.smoke/.env/local/lib/python2.7/site-packages/marionette_driver-0.7-py2.7.egg/marionette_driver/marionette.py", line 747, in _handle_error raise errors.lookup(status)(message, stacktrace=stacktrace) JavascriptException: JavascriptException: TypeError: window.wrappedJSObject.ScreenManager is undefined stacktrace: execute_script @gaia_test.py, line 867 inline javascript, line 0 src: "let __marionetteFunc = function(){window.wrappedJSObject.ScreenManager.LOCKING_TIMEOUT = 9999;};__marionetteFunc.apply(null, __marionetteParams);" This apparently started with the fix for bug 1169332. I haven't been able to reproduce locally yet. I'll keep an eye on this failure.
Attached file console_output.txt (obsolete) —
Ok, I can reproduce this locally too, after doing a test run like this. The device can't suddently be found after a while. Now I remember I've seen this issue myself before, that I couldn't find the device anymore after a while. I then would unplug and replug the usb cable and the device would be found again.
Please ignore comment 1, that was meant for bug 1172343.
This is how the homescreen looks like when this happened. Apparantly all the icons haven't been loaded yet.
Attachment #8616485 - Attachment is obsolete: true
This will probably be fixed by bug 1172497.
Depends on: 1172497
Should be fixed now by bug 1172497.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: