speedscope icon indicating copy to clipboard operation
speedscope copied to clipboard

Web flamegraph sometimes crashes with "startsWith of undefined" (rack-mini-profiler)

Open danny-pflughoeft opened this issue 3 years ago • 2 comments

When used to view traces recorded by rack-mini-profiler, the web-based flamegraph sometimes crashes with the following error

speedscope.44364064.js:174 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'startsWith')

The minified code is

for(let t of this.frames)t.name.startsWith("__Z")&& ...

which appears to be the call on this line

danny-pflughoeft avatar Nov 18 '21 20:11 danny-pflughoeft

I've confirmed this is an issue with all stackprof-generated flamegraphs, not just ones from rack-mini-profiler

danny-pflughoeft avatar Dec 17 '21 12:12 danny-pflughoeft

I've opened a PR which should fix this: #419

jez avatar May 19 '23 02:05 jez