-
Notifications
You must be signed in to change notification settings - Fork 341
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
Warning Recursive process.nextTick detected then stack overflow #28
Comments
Same problem for me. This is immediately followed by a stack overflow & the node process fails:
This problem:
|
Same. |
JFYI this problem still exists because some of |
I submitted EvanOxfeld/node-pullstream#8 to fix the problem in node-pullstream. |
For some files I get a slew of messages that look like this:
(node) warning: Recursive process.nextTick detected. This will break in the next
version of node. Please use setImmediate for recursive deferral.
Followed by this:
RangeError: Maximum call stack size exceeded
My node version is:
v0.10.5
My unzip version is:
0.1.8
My code looks like this:
var parse_archive = function(path, callback) {
var unzipParser = unzip.Parse();
var entries = [];
unzipParser.on('close', function() {
console.log("Closing");
callback(null, entries);
});
unzipParser.on('error', function(err, dirPath) {
console.log("Error unzipping " + dirPath);
callback(err);
});
console.log("parse: " + path);
fs.createReadStream(path)
.pipe(unzipParser)
.on('entry', function(entry) {
if (entry.type === "File")
{
entries.push(entry.path);
entry.autodrain();
}
});
};
The text was updated successfully, but these errors were encountered: