Maximum call stack size exceeded
- 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

```
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
Assessment
This issue has not been assessed yet.