Skip to content

FATAL ERROR: Committing semi space failed. Allocation failed #37541

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
gayankasun opened this issue Jun 11, 2020 · 7 comments
Closed

FATAL ERROR: Committing semi space failed. Allocation failed #37541

gayankasun opened this issue Jun 11, 2020 · 7 comments
Labels
needs reproduction This issue needs a reproduction in order for the team to investigate further
Milestone

Comments

@gayankasun
Copy link

My project got build failed in Devops. But its succssfully got build in my pc with same command
any reason for that?

Command : node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng build --
configuration=prod
Angular version : 9.1.7
Node version :v12.17.0
1

@AndrewKushnir
Copy link
Contributor

Hi @gayankasun, it looks like similar issues are also reported in angular/angular-cli#16860, so I'm transferring this ticket to the Angular CLI repo for further investigation. Thank you.

@AndrewKushnir AndrewKushnir transferred this issue from angular/angular Jun 11, 2020
@alan-agius4
Copy link
Contributor

This is actually caused by NGCC, so back to the FW 😀

@alan-agius4 alan-agius4 transferred this issue from angular/angular-cli Jun 11, 2020
@ngbot ngbot bot added this to the needsTriage milestone Jun 11, 2020
@JoostK
Copy link
Member

JoostK commented Jun 12, 2020

I'm afraid we can't diagnose the cause of this issue without being able to reproduce ourselves. You can try running ngcc manually instead of using the CLI using:

node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ngcc --properties browser module main --first-only --create-ivy-entry-points

Alternatively/additionally, you could try passing the --trace_gc flag to node to get far more insight into the behavior of the garbage collector.

@JoostK JoostK added the needs reproduction This issue needs a reproduction in order for the team to investigate further label Jun 12, 2020
@jjmarty
Copy link

jjmarty commented Jun 15, 2020

I was also running into this issue in Azure Devops pipelines which started around the same timeframe on 6/10/2020. I resolved my issue by committing package-lock.json.

I believe my particular issue was caused by the build agent installing a slightly different npm dependency version on one or more packages. I believe package-lock.json file fixed it by installing the exact same dependencies on the azure build agent that I have locally on my machine.

Most likely an issue with the version of "@angular-devkit/build-angular".

@gayankasun
Copy link
Author

I have found the reason for it. its because of latest angular cli version. its working fine with angular/cli = 9.1.6",

@JoostK
Copy link
Member

JoostK commented Jul 4, 2020

Based on the comments and the investigation I did for angular/angular-cli#18087, I'm pretty certain this has the same cause. See angular/angular-cli#18087 (comment) for details. CLI 9.1.10 and 10.0.1 contain the fix.

@JoostK JoostK closed this as completed Jul 4, 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 Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reproduction This issue needs a reproduction in order for the team to investigate further
Projects
None yet
Development

No branches or pull requests

5 participants