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

NX lint: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory #29808

Open
1 of 4 tasks
scophe opened this issue Jan 30, 2025 · 2 comments
Open
1 of 4 tasks
Assignees
Labels

Comments

@scophe
Copy link

scophe commented Jan 30, 2025

Current Behavior

I'm using the command:
nx run project:lint

And the stack of the error:
Linting "project"...
<--- Last few GCs --->
[21564:000001E5C959C2D0] 40479 ms: Mark-Compact (reduce) 4044.5 (4143.4) -> 4042.5 (4143.9) MB, 1655.56 / 0.00 ms (average mu = 0.514, current mu = 0.357) allocation failure; scavenge might not succeed
[21564:000001E5C959C2D0] 42171 ms: Mark-Compact (reduce) 4043.8 (4143.9) -> 4043.3 (4144.7) MB, 1686.24 / 0.00 ms (average mu = 0.303, current mu = 0.003) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 00007FF65F520B6B node::SetCppgcReference+18123
2: 00007FF65F4924D8 DSA_meth_get_flags+92504
3: 00007FF65FF09821 v8::Isolate::ReportExternalAllocationLimitReached+65
4: 00007FF65FEF2F78 v8::Function::Experimental_IsNopFunction+1336
5: 00007FF65FD54A20 v8::Platform::SystemClockTimeMillis+659328
6: 00007FF65FD51AA8 v8::Platform::SystemClockTimeMillis+647176
7: 00007FF65FD66DBA v8::Platform::SystemClockTimeMillis+733978
8: 00007FF65FD67637 v8::Platform::SystemClockTimeMillis+736151
9: 00007FF65FD75F2F v8::Platform::SystemClockTimeMillis+795791
10: 00007FF65FA36615 v8::CodeEvent::GetFunctionName+116773
11: 000001E5EB21AAFA

Environment

"@angular/animations": "19.1.4",
"@angular/cdk": "19.1.2",
"@angular/common": "19.1.4",
"@angular/compiler": "19.1.4",
"@angular/core": "19.1.4",
"@angular/elements": "19.1.4",
"@angular/forms": "19.1.4",
"@angular/platform-browser": "19.1.4",
"@angular/platform-browser-dynamic": "19.1.4",
"@angular/router": "19.1.4",
"@angular/upgrade": "19.1.4",
"@angular-devkit/build-angular": "19.1.5",
"@angular-devkit/core": "19.1.5",
"@angular-devkit/schematics": "19.1.5",
"@angular-eslint/eslint-plugin": "19.0.2",
"@angular-eslint/eslint-plugin-template": "19.0.2",
"@angular-eslint/template-parser": "19.0.2",
"@angular/cli": "~19.1.0",
"@angular/compiler-cli": "19.1.4",
"@angular/language-service": "19.1.4",
"@angular/localize": "19.1.4",
"@babel/plugin-transform-runtime": "^7.22.5",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@ngrx/schematics": "19.0.0",
"@ngrx/store-devtools": "19.0.0",
"@nx/angular": "20.4.0",
"@nx/cypress": "20.4.0",
"@nx/esbuild": "20.4.0",
"@nx/eslint": "20.4.0",
"@nx/eslint-plugin": "20.4.0",
"@nx/jest": "20.4.0",
"@nx/js": "20.4.0",
"@nx/web": "20.4.0",
"@nx/workspace": "20.4.0",
"esbuild": "^0.19.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-cypress": "2.13.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "47.0.2",
"eslint-plugin-no-null": "latest",
"eslint-plugin-prefer-arrow": "latest",
"eslint-plugin-rxjs": "^5.0.3",
"eslint-plugin-unicorn": "49.0.0",
"eslint-utils": "^3.0.0",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "5.7.3",

Expected Behavior

Should be able to lint and fix

GitHub Repo

No response

Steps to Reproduce

nx run project:lint

Nx Report

nx report

 NX   Report complete - copy this into the issue template

Node           : 20.16.0
OS             : win32-x64
Native Target  : x86_64-windows
yarn           : 1.22.22

nx (global)            : 20.0.1
nx                     : 20.4.0
@nx/js                 : 20.4.0
@nx/jest               : 20.4.0
@nx/eslint             : 20.4.0
@nx/workspace          : 20.4.0
@nx/angular            : 20.4.0
@nx/cypress            : 20.4.0
@nx/devkit             : 20.4.0
@nx/esbuild            : 20.4.0
@nx/eslint-plugin      : 20.4.0
@nx/module-federation  : 20.4.0
@nx/web                : 20.4.0
@nx/webpack            : 20.4.0
typescript             : 5.7.3
---------------------------------------
Community plugins:
@ng-bootstrap/ng-bootstrap : 14.2.0
@ngrx/effects              : 19.0.0
@ngrx/entity               : 19.0.0
@ngrx/operators            : 19.0.0
@ngrx/router-store         : 19.0.0
@ngrx/schematics           : 19.0.0
@ngrx/signals              : 19.0.0
@ngrx/store                : 19.0.0
@ngrx/store-devtools       : 19.0.0
angular-eslint             : 19.0.2
ng-mocks                   : 14.13.1
ngx-build-plus             : 18.0.0
ngxtension                 : 4.2.1

Failure Logs

<--- Last few GCs --->
[33660:000001FC8CAAE8A0]    41861 ms: Mark-Compact (reduce) 4044.7 (4143.2) -> 4043.9 (4143.7) MB, 1681.91 / 0.00 ms  (average mu = 0.178, current mu = 0.018) allocation failure; scavenge might not succeed
[33660:000001FC8CAAE8A0]    43713 ms: Mark-Compact (reduce) 4045.1 (4143.7) -> 4044.5 (4144.2) MB, 1845.24 / 0.00 ms  (average mu = 0.092, current mu = 0.003) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
 1: 00007FF65F520B6B node::SetCppgcReference+18123
 2: 00007FF65F4924D8 DSA_meth_get_flags+92504
 3: 00007FF65FF09821 v8::Isolate::ReportExternalAllocationLimitReached+65
 4: 00007FF65FEF2F78 v8::Function::Experimental_IsNopFunction+1336
 5: 00007FF65FD54A20 v8::Platform::SystemClockTimeMillis+659328
 6: 00007FF65FD51AA8 v8::Platform::SystemClockTimeMillis+647176
 7: 00007FF65FD66DBA v8::Platform::SystemClockTimeMillis+733978
 8: 00007FF65FD67637 v8::Platform::SystemClockTimeMillis+736151
 9: 00007FF65FD75F2F v8::Platform::SystemClockTimeMillis+795791
10: 00007FF65FA36615 v8::CodeEvent::GetFunctionName+116773
11: 00007FF65FFBB1AE v8::PropertyDescriptor::writable+678094
12: 00007FF65FF2E997 v8::PropertyDescriptor::writable+102583
13: 00007FF5E1C1A73C

Package Manager Version

yarn 1.22.22

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@FrozenPandaz
Copy link
Collaborator

Sorry, this will be hard to debug without a reproduction. Could you please provide a minimal reproduction in a repo? It would help us investigate the issue and address it.

Copy link

github-actions bot commented Feb 8, 2025

This issue has been automatically marked as stale because more information has not been provided within 7 days.
It will be closed in 21 days if no information is provided.
If information has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions github-actions bot added the stale label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants