`fatal error: Too many open files` during building on `macOS`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp, macos
- Domain
- build-system
Research direction
Start at the BuildTool entry point and reproduce the build from macOS Terminal.app with its default ulimit -n value of 256, then compare it with a shell using ulimit -n 512. Done means the affected build completes without requiring the user to raise the limit manually.
Written by the indexing model from the issue text.
Description
For some reason since https://github.com/HaxeFoundation/hxcpp/commit/aafc1d4344e1ab1ab6a5a9dbf967b1bbfc5bd4ed, macOS compile seems to give this weird fatal error Too many open files after some closer inspection, it seems that Terminal.app is defaulting the ulimit -n to 256 which hxcpp seems to not like, VSCode seems to default it to a much bigger value, after doing ulimit -n 512 the fatal error completely disappeared, i think the best solution in this case is to make the BuildTool set ulimit -n to a bigger value if the current value is too small.
I have to mention that im encountering all this on macOS Tahoe 26.5.2 on a MacBook Pro M5.
- Dominant language
- C++
- Stars
- 330
- Forks
- 237
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 20
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HaxeFoundation/hxcpp
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HaxeFoundation/hxcpp#1217 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
HaxeFoundation/hxcpp#1470 · 4 comments ·
Maintainers usually reply within 1 day
-
bug regression
Difficulty 3/5 1-2 days Newbie friendliness 40/100
HaxeFoundation/hxcpp#1464 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 1-2 days Newbie friendliness 18/100
HaxeFoundation/hxcpp#1454 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
HaxeFoundation/hxcpp#1452 ·
Maintainers usually reply within 1 day
All issues in HaxeFoundation/hxcpp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
Solution YAML loader rejects comments and blank lines before nested settingsPossibly taken @labishbardiya claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RunanywhereAI/runanywhere-sdks#1345 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
CachyOS/packageinstaller#156 ·
Maintainers usually reply within 2 days