-
Notifications
You must be signed in to change notification settings - Fork 4
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
Silent exit when too many files #2
Comments
Hi @mlarcher , we need to be able to reproduce the issue you are describing to help. Is it possible for you to provide the project files, or some mock project that reproduces this issue? |
I can't provide the project files, but I'll do my best to provide a test case. |
OK. But I don't think the number of files is at the root of the issue. I just checked a project that we are using parcel map for and it has 817 total files in the dependency graph but parcel map behaves as expected. |
It might be a ulimit issue with the error getting eaten somewhere. Check ulimits on your system with |
I have the following in git bash (default setting):
But I just increased it to 5000 and it didn't change the end result. |
I just tried on a mac: ulimit for open files is 256 too, and the problem is also present but it happens at 204 files instead of 201. |
I've set up a testcase, you can get it on http://ringabell.org/temp/testcase.zip There is nothing more to the test case than a bunch of require calls and parcelMap following the browserify dependency graph. You'll see that commenting out the second block of require calls makes the callback appear when testing, while it is missing when those calls are made. I've seend the problem occur on two different windows machine and one OSX computer, so I think it's safe to assume it isn't due to the environment. Hopefully this will help you figure out what's going wrong. Please let me know if there's anything more I can do to help fix the issue. |
Hi @mlarcher , This issue here is that the browserify write stream is not being piped anywhere, and no callback is being supplied to
To
In
Closing for now, but let me know if that does not solve the problem on your end. |
Looks like it fixes the issue :) |
My guess is that some internal stream hit its high water mark, which stops the data flow. https://nodejs.org/api/stream.html#stream_new_stream_readable_options Just a guess, though. |
When there is more than 200 files in the dependency tree, the 'done' event of parcelMap is never emitted. This is a big issue for us, as we are relying on it to build the project.
I tracked down the issue to the following line in index.js:
I can't go any much further though, as I lack experience with that kind of stream manipulations.
There is no error and the task exit code is 0, but the callback is never called in this scenario.
Could you please look into it and get back to me on the matter ?
The text was updated successfully, but these errors were encountered: