-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Gatsby 5 Build Fails - FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory #37010
Comments
+1 to this |
Likely related to #36899 4.16+ are affected |
Partytown errors show up for me in 4.15.0 as well, 4.16+ won't even build due to OOM issues during the image processing jobs of gatsby-plugin-sharp. Current usable, error-free version for me is 4.14.1 but, unfortunately, I still do need to upgrade due to MDX incompatibilities such as The new node didn't pass validation: "internal.contentFilePath" is not allowed on Mdx types. |
@amamenko Check #36482 (comment) hope it helps while this gets fixed |
Gatsby v4 works for me without issues. The memory thing happened only after upgraded to Gatsby v5. |
Currently we only know of #36899, since this issue didn't provide any steps and details on how to reproduce it, I'll close it. The original issue could also just happen because the system has not enough memory allocated. Hard to tell without details on environment, steps to reproduce, etc. The linked issue is at least confirmed. |
@LekoArts - We moved to Gatsby cloud and the same issue persists. You can view the logs here. |
This is related #36899 (comment) |
Even with the latest Gatsby version (as of today, 5.8.0) the issue is still here. My blog has 130 articles and 150 images - I don't expect it to generate that much heap allocation. ⠋ Building HTML renderer <--- Last few GCs ---> [25016:000001A5923E6FB0] 168856 ms: Mark-sweep (reduce) 1889.8 (2074.8) -> 1889.7 (2067.5) MB, 731.0 / 0.0 ms (average mu = 0.130, current mu = 0.034) allocation failure; GC in old space requested <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory |
I'm facing the same issue |
Me too...No bug fix yet? |
I found a way to fix this issue, I've increased the memory descriptors from the agent and everything is working now vm.max_map_count= new value |
For Linux users, it must be good news, but I am using Windows... |
Preliminary Checks
Description
Reproduction Link
https://gatsby.dev/reproduction
Steps to Reproduce
Expected Result
--
Actual Result
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: