jlfwong / jlfwong/speedscope

Maximum call stack size exceeded

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

Description

Similar to #327
```
speedscope.c62e67c1.js:183 Uncaught RangeError: Maximum call stack size exceeded
at maybeResize (speedscope.c62e67c1.js:183:2113)
at onBeforeFrame (speedscope.c62e67c1.js:30:725)
at speedscope.c62e67c1.js:14:6435
at Set.forEach ()
at a.resize (speedscope.c62e67c1.js:14:6424)
at maybeResize (speedscope.c62e67c1.js:183:2186)
at onBeforeFrame (speedscope.c62e67c1.js:30:725)
at speedscope.c62e67c1.js:14:6435
at Set.forEach ()
at a.resize (speedscope.c62e67c1.js:14:6424)
```

I try to debug it, and find that it was caused by floating-point error

![image](https://github.com/jlfwong/speedscope/assets/6016980/768d1aae-613d-4437-b4e1-2a6f70051c64)

```
n.width: 2066.004150390625
i: 2066.0166015625
n.height: 494.50836181640625
r: 494.5209655761719
```

System Info:
- System: Windows 10
- Monitor resolution: 2560 x 1440
- System Custom scaling: 124% (`window.devicePixelRatio: 1.2395833730697632` )

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.