martinbean / netlify-plugin-amp-server-side-rendering

Server-side render your AMP pages.
18 stars 11 forks source link

Out of memory bug #10

Open bakugod opened 3 years ago

bakugod commented 3 years ago

I had this log:

AMP Server-Side Rendering Successfully rendered 333 file(s).

11:23:12 PM: (netlify-plugin-amp-server-side-rendering onPostBuild completed in 32.5s)

And when i add 4 new pages i see this log:

Plugin "netlify-plugin-amp-server-side-rendering" internal error

Plugin exited with exit code null and signal SIGABRT. The plugin might have exited due to a bug terminating the process, such as an infinite loop. The plugin might also have explicitly terminated the process, for example with process.exit(). Plugin methods should instead:

on success: return on failure: call utils.build.failPlugin() or utils.build.failBuild()

2:38:12 AM:   2. onPostBuild command from netlify-plugin-amp-server-side-rendering  
2:38:12 AM: ────────────────────────────────────────────────────────────────────────
2:38:12 AM: ​
2:38:31 AM: <--- Last few GCs --->
2:38:31 AM: [3630:0x3f68c40]    54741 ms: Mark-sweep 2001.3 (2095.2) -> 2001.2 (2065.7) MB, 90.4 / 0.0 ms  (average mu = 0.197, current mu = 0.000) last resort GC in old space requested
2:38:31 AM: [3630:0x3f68c40]    54833 ms: Mark-sweep 2001.2 (2065.7) -> 2001.1 (2066.0) MB, 91.2 / 0.0 ms  (average mu = 0.106, current mu = 0.000) last resort GC in old space requested
2:38:31 AM: <--- JS stacktrace --->
2:38:31 AM: ==== JS stack trace =========================================
2:38:31 AM: Security context: 0x21e4686c08d1 <JSObject>
2:38:31 AM:     0: builtin exit frame: utf8Slice(this=0x37e00738f579 <Uint8Array map = 0x39b7952e46a9>,327367,0,0x37e00738f579 <Uint8Array map = 0x39b7952e46a9>)
2:38:31 AM:     1: toString [0x353259d6fc81] [buffer.js:773] [bytecode=0x17e705cae149 offset=31](this=0x37e00738f579 <Uint8Array map = 0x39b7952e46a9>,0x356df00804b1 <undefined>,0x356df00804b1 <undefined>,0x356df00804b1 <undefined>)
2:38:31 AM:     2: arguments adaptor f...
2:38:31 AM: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2:38:31 AM:  1: 0xa09830 node::Abort() [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  2: 0xa09c55 node::OnFatalError(char const*, char const*) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  3: 0xb7d71e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  4: 0xb7da99 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  5: 0xd2a1f5  [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  6: 0xd3ab08 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  7: 0xd0891c v8::internal::Factory::NewRawOneByteString(int, v8::internal::AllocationType) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  8: 0xd090dd v8::internal::Factory::NewStringFromUtf8(v8::internal::Vector<char const> const&, v8::internal::AllocationType) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM:  9: 0xb95a7f v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM: 10: 0xacde40 node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Local<v8::Value>*) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM: 11: 0x9e3986  [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM: 12: 0xbe96a9  [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM: 13: 0xbeb497 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:31 AM: 14: 0x13c5c79  [/opt/buildhome/.netlify-build-nvm/versions/node/v12.16.3/bin/node]
2:38:32 AM: ​
2:38:32 AM: ────────────────────────────────────────────────────────────────────
2:38:32 AM:   Plugin "netlify-plugin-amp-server-side-rendering" internal error  
2:38:32 AM: ────────────────────────────────────────────────────────────────────
2:38:32 AM: ​
2:38:32 AM:   Error message
2:38:32 AM:   Plugin exited with exit code null and signal SIGABRT.
2:38:32 AM:   The plugin might have exited due to a bug terminating the process, such as an infinite loop.
2:38:32 AM:   The plugin might also have explicitly terminated the process, for example with process.exit().
2:38:32 AM:   Plugin methods should instead:
2:38:32 AM:     - on success: return
2:38:32 AM:     - on failure: call utils.build.failPlugin() or utils.build.failBuild()
2:38:32 AM: ​
2:38:32 AM:   Plugin details
2:38:32 AM:   Package:        netlify-plugin-amp-server-side-rendering
2:38:32 AM:   Version:        1.0.2
2:38:32 AM:   Repository:     git+https://github.com/martinbean/netlify-plugin-amp-server-side-rendering.git
2:38:32 AM:   npm link:       https://www.npmjs.com/package/netlify-plugin-amp-server-side-rendering
2:38:32 AM:   Report issues:  https://github.com/martinbean/netlify-plugin-amp-server-side-rendering
martinbean commented 3 years ago

@bakugod Do you have a repo where I can see and replicate this?

bakugod commented 3 years ago

@martinbean if you share your account on gitlab, i will add you to my private repo