Closed Bug 1171304 Opened 9 years ago Closed 9 years ago

"###!!! ASSERTION: Recursive GetService!" error accessing @mozilla.org/addons/integration;1 service using xpcshell debugger in debug builds

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: markh, Assigned: ochameau)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1140131 +++

In a debug build, attempting to run xpcshell tests with --jsdebugger fails.  Bug 1140131 solved part of the problem and this patch is to solve the rest.

The following attachment avoids using the service in xpcshell by assuming that Services.appinfo.ID being undefined means xpcshell. It solves the recursion problem for me, but the process then crashes - I've no reason to believe the crash is related to this, but I'm not going to find time to dig deeper yet, so I'm just getting this up for comment.
Attachment #8615037 - Flags: feedback?(past)
Comment on attachment 8615037 [details] [diff] [review]
Don't attempt to use the addons/integration service in xpcshell

Review of attachment 8615037 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah, I could live with that if it doesn't break anything (add-on debugging in particular).
Attachment #8615037 - Flags: feedback?(past) → feedback+
Blocks: 1113865
Rebased patch.

Thanks Mark for the patch, we should proceed with it!
I hit this assertion while working on bug 1113865.
I don't get why this assertion isn't hit today,
but this patch looks good.

Try run:
  https://treeherder.mozilla.org/#/jobs?repo=try&revision=6484dad5727f
Attachment #8684901 - Flags: review+
Attachment #8615037 - Attachment is obsolete: true
This exception happens as we are running onNewScript hook for addonManager.js.
It makes perfect sense to hit this exception, I just don't get why we haven't hit that before!
Assignee: nobody → poirot.alex
https://hg.mozilla.org/integration/fx-team/rev/9003db0847784daaacde751b30ff5cabe3dcbf27
Bug 1171304 - Don't attempt to use the addons/integration service in xpcshell r=ochameau
https://hg.mozilla.org/mozilla-central/rev/9003db084778
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: