-
Notifications
You must be signed in to change notification settings - Fork 645
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
Hermes 0.7.2 : Max heap size was exceeded #1304
Comments
Does any of the error information presented (either via the RN app, or adb log) give an indication of the amount of memory being used? Additionally, I see you're on quite an old version (RN 0.64.4), which makes it trickier to investigate issues. Does this issue still occur on current versions? |
This error message indicates that you have attempted to allocate more memory than the configured Hermes GC heap size, so it usually indicates a problem in user code not an engine bug. The heap size is configured using RuntimeConfig/GCConfig. For Hermes 0.7.2: hermes/public/hermes/Public/GCConfig.h Line 102 in 22af9a3
As you can see the default is 512MB, which is probably low these days. However React Native is potentially overwriting the value here: Which seems to be called from here with 1GB size: You can try changing these values. Please, keep in mind that, as our issue template states, we are unable to help debug problems with previous Hermes versions , and we are not experts on React Native, so we can't debug React Native issues at all. |
Thanks a lot, this is more then helpful, I'll try to change these values and see if the crash still occurs . UPDATE :
|
Bug Description
gradle clean
and confirmed this bug does not occur with JSCHermes git revision (if applicable): 0.7.2
React Native version: 0.64.4
OS: Android 12 +
Platform : arm64-v8a
Steps To Reproduce
code example:
The Expected Behavior
Google Play Console stack trace :
My build.gradle :
The text was updated successfully, but these errors were encountered: