nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

Fatal Error V8 Array Buffer NewBackingStore Allocatation failed - process out of memory #4299

Closed SandeepReddyPinniti closed 6 days ago

SandeepReddyPinniti commented 7 months ago

Details

We are encountering process out of memory error when running twilio flex:plugins:deploy command to deploy the plugin code. I have reached out to Twilio team and they have mentioned that is a node.js error. I have increased the memory size of node by configuring this in the windows environment variable. Node version on my machine is v16.20.0

node --max-old-space-size=1024

I have attached the error message too, Please let us know on how to resolve the issue?

Thanks in advance

image

Node.js version

v16.20.0

Example code

twilio flex:plugins:deploy

Operating system

Windows 10

Scope

Deploying Twilio Flex Plugin

Module and version

Not applicable.

ljharb commented 7 months ago

node 16 is EOL, and either way, if you're getting an out of memory error, either you need to fix your program so it doesn't leak memory, or, you need to increase the max-old-space-size even higher.

SandeepReddyPinniti commented 7 months ago

I'm encountering the same error with node 18 version too and increased the max-old-space-size to 4GB using an environment variable on a windows machine but no luck.

github-actions[bot] commented 1 month ago

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] commented 6 days ago

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.