jlfwong / speedscope

🔬 A fast, interactive web-based viewer for performance profiles.
https://www.speedscope.app
MIT License
5.58k stars 247 forks source link

Maximum call stack size exceeded #426

Open zlsun opened 1 year ago

zlsun commented 1 year ago

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 (<anonymous>)
    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 (<anonymous>)
    at a.resize (speedscope.c62e67c1.js:14:6424)

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

image

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

System Info: