Closed Bug 964587 Opened 10 years ago Closed 10 years ago

[perf] [Tarako] JavascriptException: TypeError: app is undefined app://system.gaiamobile.org/js/window_manager.js, line 884

Categories

(Firefox OS Graveyard :: General, defect, P1)

ARM
Gonk (Firefox OS)

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: stephend, Assigned: hub)

References

()

Details

(Keywords: perf, Whiteboard: [c=automation p=1 s= u=tarako])

For the Contacts, Messages, and Settings apps on Tarako, we fail to launch, using the following job:

http://qa-selenium.mv.mozilla.com:8080/job/b2g.tarako.mozilla-aurora.v1.3.perf

Here's a sample stack trace:

18:21:18 2014-01-27 18:23:12,970 B2GPerfRunner INFO | Running B2GPerfLaunchContactsTest
18:21:18 2014-01-27 18:23:13,206 B2GPopulate INFO | Populating 200 contacts

18:22:58 2014-01-27 18:24:52,785 B2GPerfRunner INFO | Contacts [1/30]

18:23:16 2014-01-27 18:25:10,911 B2GPerfRunner INFO | Contacts [2/30]

18:23:30 2014-01-27 18:25:24,941 B2GPerfRunner INFO | Contacts [3/30]

18:23:42 2014-01-27 18:25:37,008 B2GPerfRunner INFO | Contacts [4/30]

18:23:54 2014-01-27 18:25:48,981 B2GPerfRunner INFO | Contacts [5/30]

18:24:06 2014-01-27 18:26:01,026 B2GPerfRunner INFO | Contacts [6/30]

18:24:18 2014-01-27 18:26:13,163 B2GPerfRunner INFO | Contacts [7/30]

18:24:30 2014-01-27 18:26:25,380 B2GPerfRunner INFO | Contacts [8/30]

18:24:42 2014-01-27 18:26:37,344 B2GPerfRunner INFO | Contacts [9/30]

18:24:54 2014-01-27 18:26:49,339 B2GPerfRunner INFO | Contacts [10/30]

18:25:06 2014-01-27 18:27:01,282 B2GPerfRunner INFO | Contacts [11/30]

18:25:18 2014-01-27 18:27:13,223 B2GPerfRunner INFO | Contacts [12/30]

18:25:30 Traceback (most recent call last):
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/b2gperf/b2gperf.py", line 369, in run
18:25:30     self.test()
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/b2gperf/b2gperf.py", line 412, in test
18:25:30     self.apps.kill(gaiatest.GaiaApp(origin=self.result.get('origin')))
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/gaiatest/gaia_test.py", line 112, in kill
18:25:30     result = self.marionette.execute_async_script("GaiaApps.kill('%s');" % app.origin)
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/marionette/marionette.py", line 1073, in execute_async_script
18:25:30     filename=os.path.basename(frame[0]))
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/marionette/marionette.py", line 577, in _send_message
18:25:30     self._handle_error(response)
18:25:30   File "/var/jenkins/workspace/b2g.tarako.mozilla-aurora.v1.3.perf/.env/local/lib/python2.7/site-packages/marionette/marionette.py", line 612, in _handle_error
18:25:30     raise JavascriptException(message=message, status=status, stacktrace=stacktrace)
18:25:30 JavascriptException: TypeError: app is undefined
18:25:30 	stacktrace:
18:25:30 	@app://system.gaiamobile.org/js/window_manager.js, line 884
I think Dave saw this today on a buri...
(In reply to Ben Kelly [:bkelly] from comment #1)
> I think Dave saw this today on a buri...

Could be; I'm filing these based on a Tarako thread :-)
Perhaps this is memory pressure causing a weak ref to get collected out from under the test harness.

Fernando, is it possible for these app objects to get GC'd as weak references with our current message manager state?
Flags: needinfo?(ferjmoreno)
Keywords: perf
Priority: -- → P1
Whiteboard: [c=automation p= s= u=tarako]
(In reply to Ben Kelly [:bkelly] from comment #3)
> Perhaps this is memory pressure causing a weak ref to get collected out from
> under the test harness.
> 
> Fernando, is it possible for these app objects to get GC'd as weak
> references with our current message manager state?

I can't access [1] but these app objects don't appear to be mozIDOMApplication instances (the ones hold as weak references) but custom window manager objects [2].

[1] http://qa-selenium.mv.mozilla.com:8080/job/b2g.tarako.mozilla-aurora.v1.3.perf
[2] https://github.com/mozilla-b2g/gaia/blob/v1.3/apps/system/js/window_manager.js#L847
Flags: needinfo?(ferjmoreno)
Assignee: nobody → hub
I can't get to reproduce here. 

gaia: 81981d260d0056c4e55e8b6dad6471ad14eb55d5
gecko: 9ac68cb015fc62362c9bdbafa9240c5497ecc477
I couldn't reproduce.

Please reopen it occur again.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Whiteboard: [c=automation p= s= u=tarako] → [c=automation p=1 s= u=tarako]
You need to log in before you can comment on or make changes to this bug.