-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #22500
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library. If you'd like to propose a change or discuss a feature request, there is a repository dedicated to Discussions and Proposals you may use for this purpose. |
@truongluong1314520 How did you solve this thing?? :/ This seems like a general error of some kind. |
Hi @nurely , sorry for replying you late. I have post the solution on this page |
What the heck, I have a similar problem but I don't understand why would this program need 8GB of ram to process a 4MB file? |
Same issue but only after upgrading to the latest RN version and only when archieving my app. |
^^ Me too. Going from SDK 27 to 33... Of course it cant be smooth. |
for anyone bundle images in terminal by using
|
Thank you for the solution. I tried the solution and that worked but now I am again facing this with creating debug build.
|
Hi @aashu700 , sorry for the late reply. As far as I know, for debug, instead of using the started Nodejs server, you should shut it down and start a new one by using this command:
You can change the number "8192" to the higher number, but make sure you have enough RAM. Hope it can help |
I am struggling with the
React Native
andaws-sdk
. The reason I useaws-sdk
instead ofaws-amplify
is because:aws-amplify does not support Using a pre-signed URL to upload a file
My project is working fine until
aws-sdk
is installed bynpm
andaws-sdk-react-native
is imported (this file is 4.3MB whenaws-sdk
version is "2.369.0").After adding this line of code:
The application crashes with the error message:
I try a lot of solution like:
increase-memory-limit
node --max-old-space-size=8192 index.js
If you tried these solution and it is work, please let me know. Maybe I did something wrong
If you have any suggestion, I am always willing to hear from you.
Thank you in advance!
The text was updated successfully, but these errors were encountered: