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

Too many open files errors on mac #857

Closed
jakemac53 opened this issue Jan 17, 2018 · 3 comments
Closed

Too many open files errors on mac #857

jakemac53 opened this issue Jan 17, 2018 · 3 comments
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures package:build_runner type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@jakemac53
Copy link
Contributor

We should dial back our max number of open files and see if that resolves the issue, otherwise the issue may be in the analyzer or dartdevc workers.

cc @kwalrath

@jakemac53 jakemac53 added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) package:build_runner labels Jan 17, 2018
@jakemac53
Copy link
Contributor Author

Additional ideas here involve checking the ulimit on mac before doing builds, and catching these specific errors and dealing with them in a more friendly way.

@jakemac53 jakemac53 added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Jan 17, 2018
@kwalrath
Copy link
Contributor

The workaround is to increase the limit. Here's what I used on my Mac:

ulimit -n 1024
pub run build_runner serve

@natebosch
Copy link
Member

I think the ulimit -n 1024 fix is temporary - that only applies to the terminal you're running in. I think if you start a new terminal or log out and back in you'll hit this issue again.

https://superuser.com/questions/302754/increase-the-maximum-number-of-open-file-descriptors-in-snow-leopard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures package:build_runner type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants