Closed Bug 904910 Opened 11 years ago Closed 11 years ago

Profiler sometimes breaks with NS_ERROR_NOT_AVAILABLE

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: anton, Unassigned)

References

Details

I can't pinpoint exactly what's causing the issue but sometimes profiler breaks with server throwing following errors:

[16:08:08.597] [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIProfiler.StartProfiler]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource://gre/modules/devtools/dbg-server.jsm -> resource://gre/modules/devtools/server/actors/profiler.js :: ProfilerActor.prototype.onStartProfiler :: line 86"  data: no]
undefined @ resource://gre/modules/devtools/dbg-server.jsm -> resource://gre/modules/devtools/server/main.js:839

[16:08:08.597] Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'startProfiler': [Exception... \"Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIProfiler.StartProfiler]\"  nsresult: \"0x80040111 (NS_ERROR_NOT_AVAILABLE)\"  location: \"JS frame :: resource://gre/modules/devtools/dbg-server.jsm -> resource://gre/modules/devtools/server/actors/profiler.js :: ProfilerActor.prototype.onStartProfiler :: line 86\"  data: no]\nundefined"} @ resource://gre/modules/devtools/dbg-client.jsm:641
Benoit, have you experienced that before? It started last week.
Flags: needinfo?(bgirard)
NS_ERROR_NOT_AVAILABLE is when the profiler locks itself because of private browsing. You can listen for the events profiler-locked/profiler-unlocked that are sent by the profiler.

The problem is the thumbnail service is using private browsing to take screenshots in the background and it's interferring with how we detect that there's a private window open.
Flags: needinfo?(bgirard)
Priority: P2 → P1
Depends on: 899064
Couldn't reproduce this in a while and sine the blocker bug has been fixed I think this is no longer an issue.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.