Skip to content

Stack Overflow Mapping over Array #54

Description

@fros1y

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.

testCase :: forall a. Int -> Widget HTML a
testCase n = D.div' $ (\x -> D.text $ (show x) <> "\t") <$> (A.range 0 n) 

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions