The page overflows its stack reporting a tap #378

Closed
opened 2026-10-25 18:47:10 -07:00 by rays · 1 comment
Owner

On the phone the page shows 'Maximum call stack size exceeded.' endTap (web/src/util.ts, #376) calls report, which calls traceparent(); when the trace is over a minute old (the page hidden after a minute idle, as switching apps on a phone does) traceparent starts a new trace, whose newTrace calls endTap again before rootKind was cleared, and a timing is never throttled, so it recurses until the stack runs out.

On the phone the page shows 'Maximum call stack size exceeded.' endTap (web/src/util.ts, #376) calls report, which calls traceparent(); when the trace is over a minute old (the page hidden after a minute idle, as switching apps on a phone does) traceparent starts a new trace, whose newTrace calls endTap again before rootKind was cleared, and a timing is never throttled, so it recurses until the stack runs out.
rays added the bug label 2026-10-25 18:47:10 -07:00
Author
Owner

Fixed in 070b39e: endTap clears the open tap before reporting it, so the new trace report starts cannot end it again. A page-unit test hides the page two minutes after a request and expects one report; it overflowed the stack before the fix. Deployed in ipx-web.

Fixed in 070b39e: endTap clears the open tap before reporting it, so the new trace report starts cannot end it again. A page-unit test hides the page two minutes after a request and expects one report; it overflowed the stack before the fix. Deployed in ipx-web.
rays closed this issue 2026-10-25 18:48:26 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#378