Closed Bug 1126987 Opened 9 years ago Closed 9 years ago

TypeError: frame is null: MarkerDetails.prototype.renderStackTrace

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: vporof, Assigned: tromey)

Details

Attachments

(1 file)

Seeing a lot of these.

STR: Record while cnn.com is loading. Then click on random markers until you get this error.

TypeError: frame is null: MarkerDetails.prototype.renderStackTrace@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/timeline/marker-details.js:182:11
MarkerDetails.prototype.render@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/timeline/marker-details.js:151:1
WaterfallView._onMarkerSelected@chrome://browser/content/devtools/performance/views/details-waterfall.js:121:1
EventEmitter_emit@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/event-emitter.js:137:11
Waterfall.prototype.selectRow@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/timeline/waterfall.js:367:7
Waterfall.prototype._buildMarker/container.onclick@resource://gre/modules/commonjs/toolkit/loader.js -> resource:///modules/devtools/timeline/waterfall.js:330:33
stack.js initializes _lastEventSize to -1, then later in makeEvent does

    let packet = Array(size - this._lastEventSize).fill(null);

This results in a null entry in the frame array that is sent to the client.

The simplest fix is to initialize to zero. I have a patch that does this,
but I haven't written a test yet.
Assignee: nobody → ttromey
Attachment #8574816 - Flags: review?(vporof)
Comment on attachment 8574816 [details] [diff] [review]
fix _lastEventSize initialization in stack.js

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

Only two big problems in computer science, right?
Attachment #8574816 - Flags: review?(vporof) → review+
Keywords: checkin-needed
https://hg.mozilla.org/integration/fx-team/rev/94b360f64761
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/94b360f64761
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Sorry for the spam. Moving bugs to Firefox :: Developer Tools: Performance Tools (Profiler/Timeline).

dkl
Component: Developer Tools: Timeline → Developer Tools: Performance Tools (Profiler/Timeline)
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: