Closed Bug 1083454 Opened 10 years ago Closed 10 years ago

Aborting marionette tests is causing bootup failure

Categories

(Firefox OS Graveyard :: Runtime, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.1+, firefox34 wontfix, firefox35 wontfix, firefox36 fixed, b2g-v2.0 unaffected, b2g-v2.1 fixed, b2g-v2.2 fixed)

RESOLVED FIXED
2.1 S8 (7Nov)
blocking-b2g 2.1+
Tracking Status
firefox34 --- wontfix
firefox35 --- wontfix
firefox36 --- fixed
b2g-v2.0 --- unaffected
b2g-v2.1 --- fixed
b2g-v2.2 --- fixed

People

(Reporter: anshulj, Assigned: fabrice)

References

Details

(Keywords: regression, Whiteboard: [caf priority: p2][CR 741218])

Attachments

(1 file)

[Blocking Requested - why for this release]: This is causing a lot of grief as the only way to resolve the boot up issue is to reflash the build again.

STR.
1. Run a bath of marionette scripts one after the other
2. While the test is running, press ctrl + c to abort the test
3. Reboot the device

Observed: The phone get stuck on the firefox logo and I see the following error in the logs

0-15 13:41:45.906 I/Gecko   (  215): *************************
10-15 13:41:45.906 I/Gecko   (  215): A coding exception was thrown and uncaught in a Task.
10-15 13:41:45.906 I/Gecko   (  215): 
10-15 13:41:45.906 I/Gecko   (  215): Full message: TypeError: invalid 'in' operand aManifest
10-15 13:41:45.906 I/Gecko   (  215): Full stack: this.DOMApplicationRegistry.updateDataStore@resource://gre/modules/Webapps.jsm:680:1
10-15 13:41:45.906 I/Gecko   (  215): this.DOMApplicationRegistry.updateDataStoreForApp<@resource://gre/modules/Webapps.jsm:380:1
10-15 13:41:45.906 I/Gecko   (  215): TaskImpl_run@resource://gre/modules/Task.jsm:314:40
10-15 13:41:45.906 I/Gecko   (  215): Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:865:23
10-15 13:41:45.906 I/Gecko   (  215): this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:744:7
10-15 13:41:45.906 I/Gecko   (  215): 
10-15 13:41:45.906 I/Gecko   (  215): *************************
10-15 13:41:45.906 I/Gecko   (  215): *************************
10-15 13:41:45.906 I/Gecko   (  215): A coding exception was thrown and uncaught in a Task.
10-15 13:41:45.906 I/Gecko   (  215): 
10-15 13:41:45.906 I/Gecko   (  215): Full message: TypeError: invalid 'in' operand aManifest
10-15 13:41:45.906 I/Gecko   (  215): Full stack: this.DOMApplicationRegistry.updateDataStore@resource://gre/modules/Webapps.jsm:680:1
10-15 13:41:45.906 I/Gecko   (  215): this.DOMApplicationRegistry.updateDataStoreForApp<@resource://gre/modules/Webapps.jsm:380:1
10-15 13:41:45.906 I/Gecko   (  215): TaskImpl_run@resource://gre/modules/Task.jsm:314:40
10-15 13:41:45.906 I/Gecko   (  215): Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:865:23
10-15 13:41:45.906 I/Gecko   (  215): this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:744:7
10-15 13:41:45.906 I/Gecko   (  215): 
10-15 13:41:45.906 I/Gecko   (  215): *************************
10-15 13:41:45.916 E/GeckoConsole(  215): [JavaScript Error: "invalid 'in' operand aManifest" {file: "resource://gre/modules/Webapps.jsm" line: 680}]
This issue is reproducible both on 2.1 and Moz central.
qawanted to check 2.0 branch and confirm if we can reproduce on Flame.
Keywords: qawanted
Hi Tim, I don't see this is settings issue. Can you confirm and change to the right component? Thanks.
Flags: needinfo?(timdream)
2.1 CC blocker = 2.1+
blocking-b2g: 2.1? → 2.1+
(In reply to Anshul from comment #1)
> This issue is reproducible both on 2.1 and Moz central.

Does 2.0 run as expected?
Flags: needinfo?(anshulj)
Bhavana, yes it does.
Flags: needinfo?(anshulj)
This is either an FxOS: Runtime or DOM: Apps bug, judging by quick reading the log posted.
Component: Gaia::Settings → Runtime
Flags: needinfo?(timdream)
Whiteboard: [CR 741218]
Whiteboard: [CR 741218] → [caf priority: p2][CR 741218]
This is much more easily reproducible on moz central than it is on 2.1.
clearing QA-Wanted tag (which was addressed in comment 6) and setting appropriate tracking-flags
Hey James...should ownership of this bug fall on your team? If so, can we get assignee please :)...thanks!
Flags: needinfo?(jlal)
Maybe but this is really vague right now... The logs point to Webapps.jsm (which has nothing to do with marionette) and "marionette scripts" does not mean anything in particular. 


Can we get an up to date STR with the actual test framework name and some details as to what is actually being done.
Flags: needinfo?(jlal)
I can also reproduce the issue if I run |flash gaia| command while the phone hasn't finished booting up. The issue is not 100% reproducible and takes a few attempt.

1. Run adb reboot
2. Before the homescreen shows up run |flash gaia|
3. Run adb reboot
Hi Fabrice,
Not sure who can look into this. 
Could you forward to needinfo out?
Flags: needinfo?(fabrice.desre)
I was only able to reproduce once. This patch will prevent the error from happening, but I'm not sure this will lead to a sane boot anyway because this condition should not happen.

Anshulj, can you test with this patch?
Attachment #8510570 - Flags: feedback?(anshulj)
Flags: needinfo?(fabrice.desre)
Comment on attachment 8510570 [details] [diff] [review]
restart-block.patch

This patch does fix the issue.
Attachment #8510570 - Flags: feedback?(anshulj) → feedback+
Attachment #8510570 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/4bfa433c0437
Assignee: nobody → fabrice
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
Please request b2g34 approval on this when you get a chance.
Flags: needinfo?(fabrice)
Attachment #8510570 - Flags: approval-mozilla-b2g34+
Flags: needinfo?(fabrice)
Unable to verify at this location as this issue involves an automated test.
QA Whiteboard: [QAnalyst-Triage?][QAnalyst-verify-]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?][QAnalyst-verify-] → [QAnalyst-Triage+][QAnalyst-verify-]
Flags: needinfo?(ktucker)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: