Skip to content

application builder with i18n: An unhandled exception occurred: EMFILE: too many open files, #26014

Closed

Description

@zip-fa

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hi.
I have project with 19 locales in it. Build gives up when using application builder with this exception:

An unhandled exception occurred: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'
Fatal error writing debug log file: Error: EMFILE: too many open files, open 'C:\Users\123\AppData\Local\Temp\ng-P9vNh5\angular-errors.log'
Error: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'

Log file is empty.
If you leave only 2 languages, the build will end.

Minimal Reproduction

ng build

Exception or Error

An unhandled exception occurred: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'
Fatal error writing debug log file: Error: EMFILE: too many open files, open 'C:\Users\123\AppData\Local\Temp\ng-P9vNh5\angular-errors.log'
Error: EMFILE: too many open files, open 'C:\Users\123\WebstormProjects\123\dist\456\server\ro\chunk-XKJBHO6U.mjs'

Your Environment

Angular CLI: 17.0.0-next.8
Node: 18.18.1
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.0.0-next.7
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-next.8
@angular-devkit/build-angular   17.0.0-next.8
@angular-devkit/core            17.0.0-next.8
@angular-devkit/schematics      17.0.0-next.8
@angular/cdk                    17.0.0-next.6
@angular/cli                    17.0.0-next.8
@angular/material               17.0.0-next.6
@angular/ssr                    17.0.0-next.8
@schematics/angular             16.2.5
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else relevant?

No response

Activity

  1. angular-automatic-lock-bot commented on Nov 12, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  2. locked and limited conversation to collaborators on Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions