Closed
Bug 930340
Opened 11 years ago
Closed 10 years ago
Firefox Profiler Broken
Categories
(DevTools :: Performance Tools (Profiler/Timeline), defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 896222
People
(Reporter: lb1.3, Unassigned)
Details
Attachments
(1 file)
67.69 KB,
image/gif
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130910160258 Steps to reproduce: I clicked the new-profile button in Fx 25, it adds one to the list but does nothing else. (I did the Firefox beta update today.) Actual results: It gave the following errors in Browser Console: [17:09:45.164] [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:829 [17:09:45.165] 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 Expected results: Profiler should start a new performance profile.
I just got this again in Firefox 26. Even closing and reopening the debugger didn't fix it. 15:35:09.742 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/main.js -> resource://gre/modules/devtools/server/actors/profiler.js :: <TOP_LEVEL> :: line 86" data: no] main.js:923 15:35:09.743 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/main.js -> resource://gre/modules/devtools/server/actors/profiler.js :: <TOP_LEVEL> :: line 86\" data: no]"} dbg-client.jsm:651
Updated•10 years ago
|
Component: Untriaged → Developer Tools: Profiler
Version: 24 Branch → Trunk
Whacky... Using FF29, I cannot get the profiler to work. Yet, using FF29 devtools to connect to Android for remote debugging, the profiler works (slowly, yes, but it works). Go figure...
Comment 4•10 years ago
|
||
Can you post the contents of your about:support page? Also, what does the following line print if you paste it in the Browser Console (Ctrl-Shift-J)? Components.classes["@mozilla.org/tools/profiler;1"].getService(Components.interfaces.nsIProfiler).StartProfiler
About:Support ... Application Basics ------------------ Name: Firefox Version: 29.0a1 User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Extensions ---------- Important Modified Preferences ------------------------------ browser.cache.disk.capacity: 358400 browser.cache.disk.smart_size_cached_value: 358400 browser.cache.disk.smart_size.first_run: false browser.cache.disk.smart_size.use_old_max: false browser.places.smartBookmarksVersion: 6 browser.privatebrowsing.autostart: true browser.sessionstore.upgradeBackup.latestBuildID: 20140202030204 browser.startup.homepage_override.buildID: 20140202030204 browser.startup.homepage_override.mstone: 29.0a1 browser.tabs.tabClipWidth: 99 browser.urlbar.autocomplete.enabled: false dom.mozApps.used: true extensions.lastAppVersion: 29.0a1 gfx.direct3d.last_used_feature_level_idx: 0 network.cookie.prefsMigrated: true places.database.lastMaintenance: 1391380431 places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf plugin.importedState: true plugin.state.flash: 0 plugin.state.java: 0 plugin.state.npappdetector: 0 plugin.state.npctrl: 0 plugin.state.npdeployjava: 0 plugin.state.npgeplugin: 0 plugin.state.npgoogletalk: 0 plugin.state.npgoogleupdate: 0 plugin.state.npgtpo3dautoplugin: 0 plugin.state.npo1d: 0 plugin.state.nppdf: 0 plugin.state.npvlc: 0 plugin.state.npwlpg: 0 privacy.sanitize.migrateFx3Prefs: true storage.vacuum.last.index: 0 storage.vacuum.last.places.sqlite: 1391379081 Graphics -------- Adapter Description: AMD Radeon HD 6700 Series Adapter Description (GPU #2): Intel(R) HD Graphics Adapter Drivers: aticfx64 aticfx64 aticfx64 aticfx32 aticfx32 aticfx32 atiumd64 atidxx64 atidxx64 atiumdag atidxx32 atidxx32 atiumdva atiumd6a atitmm64 Adapter Drivers (GPU #2): igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32 Adapter RAM: 1024 Adapter RAM (GPU #2): Unknown ClearType Parameters: D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 400 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 400 ] Device ID: 0x68b8 Device ID (GPU #2): 0x0102 Direct2D Enabled: true DirectWrite Enabled: true (6.2.9200.16571) Driver Date: 10-8-2013 Driver Date (GPU #2): 12-12-2012 Driver Version: 13.152.1.8000 Driver Version (GPU #2): 9.17.10.2932 GPU #2 Active: false GPU Accelerated Windows: 2/2 Direct3D 10 Vendor ID: 0x1002 Vendor ID (GPU #2): 0x8086 WebGL Renderer: Google Inc. -- ANGLE (AMD Radeon HD 6700 Series Direct3D9Ex vs_3_0 ps_3_0) windowLayerManagerRemote: false AzureCanvasBackend: direct2d AzureContentBackend: direct2d AzureFallbackCanvasBackend: cairo AzureSkiaAccelerated: 0 JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Library Versions ---------------- NSPR Expected minimum version: 4.10.3 Beta Version in use: 4.10.3 Beta NSS Expected minimum version: 3.15.5 Basic ECC Beta Version in use: 3.15.5 Basic ECC Beta NSSSMIME Expected minimum version: 3.15.5 Basic ECC Beta Version in use: 3.15.5 Basic ECC Beta NSSSSL Expected minimum version: 3.15.5 Basic ECC Beta Version in use: 3.15.5 Basic ECC Beta NSSUTIL Expected minimum version: 3.15.5 Beta Version in use: 3.15.5 Beta
startProfiler ... note that I've included the complaints from the previous attempt to start prof from the tools UI. 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/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/profiler.js :: ProfilerActor.prototype.onStartProfiler :: line 86" data: no]Line: 86, column: 0 main.js:924 onPacket threw an exception: Error: 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/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/main.js -> resource://gre/modules/devtools/server/actors/profiler.js :: ProfilerActor.prototype.onStartProfiler :: line 86\" data: no]Line: 86, column: 0"} Stack: DebuggerClient.prototype.onPacket/<@resource://gre/modules/devtools/dbg-client.jsm:655 resolve@resource://gre/modules/commonjs/sdk/core/promise.js:118 then@resource://gre/modules/commonjs/sdk/core/promise.js:43 then@resource://gre/modules/commonjs/sdk/core/promise.js:153 DebuggerClient.prototype.onPacket@resource://gre/modules/devtools/dbg-client.jsm:705 LDT_send/<@resource://gre/modules/devtools/dbg-client.jsm -> resource://gre/modules/devtools/server/transport.js:258 makeInfallible/<@resource://gre/modules/devtools/DevToolsUtils.jsm -> resource://gre/modules/devtools/DevToolsUtils.js:80 Line: 655, column: 0 DevToolsUtils.js:56 TypeError: "Cu" is read-only resetProfile.js:7 Components.classes["@mozilla.org/tools/profiler;1"].getService(Components.interfaces.nsIProfiler).StartProfiler function StartProfiler() "notDebuggee: cannot access the environment of this function."
Comment 9•10 years ago
|
||
> browser.privatebrowsing.autostart: true This is your problem, profiling is disabled in private browsing mode due to the potential for information leak: http://dxr.mozilla.org/mozilla-central/source/tools/profiler/nsProfiler.cpp?from=StartProfiler#77 If you need to profile, you will have to use a normal browser window. Granted, the profiler UI for discovering this currently sucks, but bug 896222 will hopefully improve it.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Comment 10•10 years ago
|
||
Ha! Good catch. A few releases back, I'd been testing the new tabs UI stuff and left it that way... Thanks.
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•