Skip to content

Allocation failed - JavaScript heap out of memory #16732

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

Closed
1 task done
muhammedMoussa opened this issue Jan 22, 2020 · 2 comments
Closed
1 task done

Allocation failed - JavaScript heap out of memory #16732

muhammedMoussa opened this issue Jan 22, 2020 · 2 comments

Comments

@muhammedMoussa
Copy link

🐞 Bug report

Command (mark with an x)

  • build

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

while building after 92%

🔬 Minimal Reproduction

ng build --prod 

in angular.json

"configurations": { 
    ...,
    "sourceMap": false
}

🔥 Exception or Error






92% chunk asset optimization TerserPlugin
<--- Last few GCs --->

[8384:000002227461AF20]  1286511 ms: Mark-sweep 1939.1 (2054.6) -> 1938.9 (2054.1) MB, 4143.4 / 0.1 ms  (average mu = 0.076, current mu = 0.003) allocation failure GC in old space requested
[8384:000002227461AF20]  1290391 ms: Mark-sweep 1939.5 (2054.1) -> 1939.4 (2054.8) MB, 3877.0 / 0.1 ms  (average mu = 0.040, current mu = 0.001) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 00007FF7DB3C2A5D]
    1: StubFrame [pc: 00007FF7DB343AE1]
Security context: 0x01ba85f408a1 
    2: _replaceInStringNode [0000006D927BAEB1] [D:\for_build\AccFlex_Cloud_Front\accflex-erp\node_modules\webpack-sources\lib\ReplaceSource.js:~194] [pc=00000167FEE21567](this=0x01cf89a77c51 ,0x000fa445ce11 ,0x000fa445ce31 ,0...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Writing Node.js report to file: report.20200122.151018.8384.0.001.json
Node.js report completed

🌍 Your Environment






Angular CLI: 8.3.0
Node: 12.12.0
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.803.0
@angular-devkit/core         8.3.0
@angular-devkit/schematics   8.3.0
@schematics/angular          8.3.0
@schematics/update           0.803.0
rxjs                         6.4.0

Anything else relevant?

this issue comes from old version, will be good if not exist in v9

@clydin
Copy link
Member

clydin commented Jan 22, 2020

Duplicate of #16515

@clydin clydin marked this as a duplicate of #16515 Jan 22, 2020
@clydin clydin closed this as completed Jan 22, 2020
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants