-
Notifications
You must be signed in to change notification settings - Fork 17
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
Stack Overflow Mapping over Array #54
Comments
Also worth pointing out, I just tried the official SlowButton implementation and it has the same failure mode for higher numbers. That example implies that the difference between SlowButton and FastButton is performance, but it appears to be correctness as well. Am I running into a fundamental limitation? (i.e., do I need to figure out how to drop down into mkLeafNode?) Thanks! |
Thanks for opening the issue. This is definitely a bug and not a fundamental limitation. I'll look into it. |
Thanks for looking into this. There's a thread on discourse also with some thoughts: https://discourse.purescript.org/t/advice-on-debugging-stack-size-problems-concur-react-related/1676/4 |
So it looks like there are multiple places that may not be stack safe. Based on the feedback on the Discourse thread above, above, I looked at the call to That gets farther! But I then get a a stack fault apparently based on a call to That's a pretty gnarly function, so still trying to get a good mental model for it. |
@fros1y Can you can try locally overriding purescript-concur-core with this branch, and let me know if this resolves your issue in your application? |
Hello,
I have a reproducible stack overflow error triggered by just mapping a
D.text
element over a sufficiently large array (n > 9000
). This is a synthetic example derived from a real example that was mapping over two dimensions with more reasonable values. While the N is higher, the error seems to be the same.This reproduces for
n > 9000
, at least in my Chrome. Tested on TryPurescript to avoid any potential local issues with same results.Full gist here:
https://gist.github.com/fros1y/09bf2efabe49d880f0a9c022f25d2706
To the extent it is relevant, I'm using a Linux build of Chrome, Version 84.0.4147.135 (Official Build) (64-bit)
Please let me know if there is more data I can provide!
The text was updated successfully, but these errors were encountered: