Closed Bug 2002728 Opened 2 months ago Closed 2 months ago

Can't take a memory snapshot on Fenix

Categories

(DevTools :: Memory, defect)

defect

Tracking

(firefox147 fixed)

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

Details

Attachments

(1 file)

You would get the following exception when trying to take a memory snapshot from the memory panel while debugging any fenix's tab:

Error: Protocol error (Error): ChromeUtils.importESModule: global option is required in DevTools distinct global from: server0.conn0.heapSnapshotFileActor4 (resource://devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js:1:40)
Stack: onPacket/<@resource://devtools/shared/protocol/Front.js:404:31
DevTools RDP*request@resource://devtools/shared/protocol/Front.js:320:14
generateRequestMethods/</frontProto[name]@resource://devtools/shared/protocol/Front/FrontClassWithSpec.js:57:19
transferHeapSnapshot@resource://devtools/client/fronts/memory.js:77:45
Line: 404, column: 31

I'm getting the correct location: ChromeUtils.importESModule: global option is required in DevTools distinct global from: server0.conn0.heapSnapshotFileActor4 (resource://devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js:26:13) which points to https://searchfox.org/firefox-main/rev/f81fae7890605739dd8dde14755f159fe6beb8aa/devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js#26-28

ChromeUtils.defineESModuleGetters(lazy, {
  FileUtils: "resource://gre/modules/FileUtils.sys.mjs",
});
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b07347e94d08 https://hg.mozilla.org/integration/autoland/rev/7459f7aee615 [devtools] Ensure passing an explicit module context for memory module. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: