Closed labnol closed 2 years ago
+1 to this
Likely related to https://github.com/gatsbyjs/gatsby/issues/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 https://github.com/gatsbyjs/gatsby/issues/36482#issuecomment-1311974320
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 https://github.com/gatsbyjs/gatsby/issues/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.
Currently we only know of #36899, since this issue didn't provide an steps and details on how to reproduce it, it'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.
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 [============================] 79.136 s 51/51 100% Running gatsby-plugin-sharp.IMAGE_PROCESSING jobs
<--- 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 [25016:000001A5923E6FB0] 169627 ms: Mark-sweep (reduce) 1900.5 (2078.1) -> 1900.3 (2071.1) MB, 693.5 / 0.0 ms (average mu = 0.115, current mu = 0.100) allocation failure; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF72E092BCF node_api_throw_syntax_error+175519
2: 00007FF72E0183A6 SSL_get_quiet_shutdown+64006
3: 00007FF72E019762 SSL_get_quiet_shutdown+69058
4: 00007FF72EABFDD4 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF72EAAB132 v8::Isolate::Exit+674
6: 00007FF72E92CF8C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF72E93A26D v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF72E9372F7 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF72E929A27 v8::internal::Heap::CollectGarbage+2039
10: 00007FF72E9403E3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF72E940C8D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
12: 00007FF72E9495DA v8::internal::Factory::AllocateRaw+810
13: 00007FF72E95CA1D v8::internal::FactoryBase
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
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