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

Tests break in Node.js 0.10.0 with "warning: Recursive process.nextTick detected" #777

Closed
TamsynUlthara opened this issue Mar 15, 2013 · 1 comment

Comments

@TamsynUlthara
Copy link

I have Mocha tests that have started to break in Node.js 0.10.0 with the following message:

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

util.js:35
  var str = String(f).replace(formatRegExp, function(x) {
                      ^
RangeError: Maximum call stack size exceeded

The initial "process.nextTick" warning is repeated many times, as one might expect from the recursion.

I'm having a very hard time isolating a minimal test case. It only seems to trigger under a certain combination of test files, but removing tests at random "fixes" the problem. It seems like I can still trigger the problem even if I modify my tests to be empty (i.e., none of my own code is being run, just the BDD "describe" and "it" calls).

As soon as I can get something minimal, I'll add it here.

Update: The following single-file test suite will trigger the bug.

https://gist.github.com/tomxtobin/5173183

@TamsynUlthara
Copy link
Author

Oops — turns out this is a dupe of #754 and was fixed in 73c49eb.

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