Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updetectSeries breaks when iterating over large arrays #1293
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
This is a bug in the handler of the case of a resolved #1064 would fix this |
This comment has been minimized.
This comment has been minimized.
Is there a more short term fix that doesn't involve #1064? This seems pretty major - surprised it didn't pop up sooner. |
This comment has been minimized.
This comment has been minimized.
Not sure, thinking maybe an internal only #1064 is called for though |
This comment has been minimized.
This comment has been minimized.
Given that the issue is caused by the callback essentially being replaced
with function(cb) { cb(); } it strikes me a quick fix is to instead replace
it with function(cb) { setImmediate(cb); }.
|
suguru03
added a commit
to suguru03/neo-async
that referenced
this issue
Oct 16, 2016
hargasinski
added a commit
to hargasinski/async
that referenced
this issue
Nov 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Async 2.0.1, Node v0.10.29.
detectSeries on a large array causes a stack overflow even if the callbacks are called via setImmediate. Test case:
What did you expect to happen?
What was the actual result?
The bug appears to be tied to the size of arr. arr with 1000 items does not trigger the issue on my system.