Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upArray.append causes runtime error on largish arrays #444
Comments
klaftertief
changed the title from
Array.append causes runtime error on largihs
to
Array.append causes runtime error on largish arrays
Nov 21, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
eeue56
Dec 1, 2015
Contributor
I spent a while looking at this problem with @klaftertief and sadly was unable to figure out a solid solution. I'm glad you made it an issue! When I get some time I'll look more into this.
|
I spent a while looking at this problem with @klaftertief and sadly was unable to figure out a solid solution. I'm glad you made it an issue! When I get some time I'll look more into this. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
klaftertief
Dec 1, 2015
Thanks @eeue56 for your efforts.
This commit fixes the symptoms of this specific issue, see this test.
There are more Array related bugs/crashes popping up in other test cases, but it's hard to find minimal test cases to have a solid foundation to fix those. I hope I'll find some time to add more minimal failing tests and maybe get a better understanding of the native implementation.
klaftertief
commented
Dec 1, 2015
|
Thanks @eeue56 for your efforts. This commit fixes the symptoms of this specific issue, see this test. There are more Array related bugs/crashes popping up in other test cases, but it's hard to find minimal test cases to have a solid foundation to fix those. I hope I'll find some time to add more minimal failing tests and maybe get a better understanding of the native implementation. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dan-tull
Jan 15, 2016
I hit this issue today, though for me the Array.append call that is failing is for arrays of length 963 + 1 and 960 + 2 (both slightly lower bounds than the 993 in the example above).
If it would be useful, I could extract minimal test case for the bug in my scenario.
dan-tull
commented
Jan 15, 2016
|
I hit this issue today, though for me the Array.append call that is failing is for arrays of length 963 + 1 and 960 + 2 (both slightly lower bounds than the 993 in the example above). If it would be useful, I could extract minimal test case for the bug in my scenario. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
We're working on it |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Jun 25, 2016
Member
Closing in favor of #649 which will track all array issues and progress on a new implementation.
|
Closing in favor of #649 which will track all array issues and progress on a new implementation. |
klaftertief commentedNov 21, 2015
I know there are already some similar Array issues, but I hope to offer a better test case for this specific issue. This is extracted from issues working on a polyline simplification library, for this issue mainly https://github.com/klaftertief/elm-simplify/blob/tail-recursive-array/src/Simplify/RadialDistance.elm.
I applied the open pull requests #396 and #399, but they didn't help.
This test cases crashes in
subLengths += a.table[i].table.length(tableis undefined) starting at a length of32^2 - 1*32 + 1.It's extracted from this recursive function (which is similar to the one in the linked repo). An interesting thing is that this starts crashing at a length of
32^2 - 2*32 + 1.