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
FATAL ERROR: JavaScript heap out of memory #3279
Comments
It is vaguely possible this is related to #3071? |
@lukehoban we are not using secrets, so it seems unlikely. Does the size of the output on line 191 of the previously attached vpc_only_log.txt seem suspicious to you? |
@lukehoban could this be related to #3257? |
I am hitting the similar problem on Node v10.16.3:
|
Does anyone who has seen this have any more details for a repro? We have not yet been able to reproduce this, and don't have any great guesses for what would be wrong here based on details shared so far unfortunately. |
No details for a repro but I can confirm that I am getting this as well. My stack outputs do not have secrets |
I believe this is likely fixed with #3850. If anyone still sees issues like this - please do open a new issue. |
@lukehoban (from slack)
We are running into a strange issue when using pulumi.StackReference. We are using two stacks, one for infrastructure and one for services as recommended by the docs. The infrastructure stack deploys without any issues. In the services stack, we are creating a StackReference and calling getOutput to get/use variables that were exported from the infrastructure stack.
index.ts
When I run
pulumi up --yes
the index.ts file show above is successful. If I un-comment just one of the commented lines, it will still work, but it takes about 1-2 minutes on thepulumi:pulumi:Stack pulumi-services-project-staging running read pulumi:pulumi:StackReference username/pulumi-infra/project-staging
step. For each of the getOutput lines that I un-comment, the build process takes an additional 2 minutes or so. If all three are uncommented, the process takes about 5-6 minute and then fails due toFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
(see full_log.txt below)Our infrastructure index.ts file is not very large, maybe 500 or so lines creating a single VPC, 2 load balancers, an S3 Bucket, DynamoDb Table, an ECS cluster, an EC2 instance, and various IAM roles.
I've attached a log from the failed build processes. full_log.txt
Our build is taking place on AWS CodeBuild with 7 GB memory and 4 vCPUs.
What is interesting is the following log file. This is the log when only calling
getOutput("vpc")
and leaving the other two getOutput calls commented.Notice the HUGE dump on line 191
ReadResource RPC finished
: vpc_only_log.txtDoes that look normal, or does it seem to be exposing the issue?
The text was updated successfully, but these errors were encountered: