jlfwong / jlfwong/speedscope

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

Open
#378 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/jlfwong/speedscope/blob/b71cef5db4162e9cd871ad7a1bf5716fffabe5ff/src/lib/profile.ts#L409)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.