Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger stack overflow crash when msg triggered with large Set in model #132

Open
adamdicarlo opened this issue May 27, 2023 · 0 comments

Comments

@adamdicarlo
Copy link

I'm finding that a Set with 3551 or more elements causes this exception to happen in Elm's debugger when msgs are triggered:

I imagine this is related to, or a duplicate of, #104 , #90.

For me, a Dict with 10,000 as many items works just fine. So to work around this Set issue, I'm using Dict String () instead of Set String in one of my projects.

Crash output from the Ellie:

211 workspace:9414 Uncaught RangeError: Maximum call stack size exceeded
    at Function.f (VM211 workspace:9414:11)
    at A2 (VM211 workspace:56:28)
    at Function.f (VM211 workspace:9503:6)
    at A2 (VM211 workspace:56:28)
    at Function.f (VM211 workspace:9504:6)
    at A2 (VM211 workspace:56:28)
    at Function.f (VM211 workspace:9504:6)
    at A2 (VM211 workspace:56:28)
    at Function.f (VM211 workspace:9504:6)
    at A2 (VM211 workspace:56:28)

SSCCE

https://ellie-app.com/mVLVhb3DYk2a1

Tested on Chromium Version 113.0.5672.126 (Official Build, ungoogled-chromium) Arch Linux (64-bit).

The problem happens in Firefox, too, but it seems intermittent or something, so I'm not sure the exact number that triggers it (it seems higher than 3551). Guessing the exact number isn't very important, tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant