getappmap / getappmap/appmap-js

Maximum call stack size exceeded building sequence diagram

Open
#1,634 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
53
Forks
18
Avg merge
3d 18h
Merged PRs (30d)
8

Description

RangeError: Maximum call stack size exceeded
    at Set.has (<anonymous>)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16514)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)
    at E (/Users/kgilpin/source/appland/appmap-js/packages/models/dist/index.cjs:3:16611)

See attached AppMap.

test__cli__fix_loop_limit_behavior_--_noqa__disable_all_n--_Comment_A_nSELECT_1_FROM_foo-0.appmap.json

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce sequence-diagram construction with the attached AppMap and inspect the repeated stack frames in packages/models/dist/index.cjs. Trace the recursive path that reaches Set.has and determine why this input exceeds the call stack. Done means the attached AppMap builds without a RangeError and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.