-
Notifications
You must be signed in to change notification settings - Fork 785
Error: EMFILE, too many open files #38
Comments
Could you give me the following info?
Thanks for reporting the issue. |
My high-level use case is manually generating instrumented JS files with istanbul and then running Jasmine tests using Guard-Jasmine which will then feeds istanbul the results somehow and generates reports. I tried to read the code (relevant commit), but it's a bit too much for me to understand so early in the morning :) Tried to run It's also happening with node 0.8.22. Edit: Actually, there's one more piece to the puzzle I just realised, I do get a report on the CLI from Guard-Jasmine:
Which implies that the coverage bit is completely fine, it's the HTML report generation which seems to break. This also lines up with what's in the stack trace, but thought I should mention. |
This is good information - it proves that the reporter is opening too many files at the same time and it is not a side effect of the test runner. I'm totally tied up with my day job right now so may not be able to get to a fix soon. This is how I think you can get unblocked:
Let me know if this unblocks you. I will get to a permanent fix when my current day-job deadlines are met. |
Yeah, I can reproduce it and, yeah, that fix should work. I don't know what I was smoking when I wrote the async version of the reporter but it will take some time to untangle :) Let me know if this is a workable solution for you for the time being. |
That worked perfectly, thanks 👍 Glad I could help with the report :) It's quite fast as well, so this is not a bad fix :) I don't even have a package.json (it's a pure client side project with some Ruby gems for compilation sprinkled on top), but a little bit of Googling gave me the quick and dirty way: Edit: Oh yeah, and by the way it works with node 0.10.0! |
Cool. I'll roll in a fix in the next week or two. |
@daaain - Fix is available in v0.1.34. Please try it and let me know if it looks ok. Thanks! |
It works perfectly (tested with node 0.10.2), thanks a lot for the fix! |
I'm working on a project with quite a good number of files (298 as picked up by Istanbul to be precise) and it doesn't seem to be able to deal with them :(
Setup is OS X 10.7.5, Node v0.10.0, Istanbul 0.1.32 and using via Guard-Jasmine 1.13.2.
The text was updated successfully, but these errors were encountered: