pwa-builder / PWABuilder-CLI

Node.js tool for App Generation
Other
1.63k stars 142 forks source link

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #306

Open douglasjunior opened 6 years ago

douglasjunior commented 6 years ago

I'm trying to use it for the first time, and I'm encountering this problem. My application is a SPA made with React JS.

➜  pwa git:(master) pwabuilder https://painel.govfacilcidadao.com.br -p web
[warn ] pwabuilder  : No manifest found. A new manifest will be created.

<--- Last few GCs --->

[96444:0x104003200]    37846 ms: Mark-sweep 1337.1 (1391.4) -> 1337.0 (1391.4) MB, 1864.5 / 0.0 ms  allocation failure GC in old space requested
[96444:0x104003200]    39648 ms: Mark-sweep 1337.0 (1391.4) -> 1337.0 (1360.4) MB, 1802.1 / 0.0 ms  last resort GC in old space requested
[96444:0x104003200]    41579 ms: Mark-sweep 1337.0 (1360.4) -> 1337.0 (1360.4) MB, 1930.7 / 0.0 ms  last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x3facc7b257c1 <JSObject>
    1: extractOne(aka extractOne) [/usr/local/lib/node_modules/pwabuilder/node_modules/pwabuilder-lib/lib/manifestTools/manifestCreator/scrapers/icojs/src/extract-one.js:~20] [pc=0x6b3f1e3f947](this=0x3facda3022d1 <undefined>,buffer=0x3fac16784a61 <ArrayBuffer map = 0x3fac79802d01>,index=0)
    2: /* anonymous */(aka /* anonymous */) [/usr/local/lib/node_modules/pwabuilder/node_modules/pwabuilde...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 5: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]
 6: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node]
 7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 8: 0x6b3f1c842fd
[1]    96444 abort      pwabuilder https://painel.govfacilcidadao.com.br -p web
boyofgreen commented 5 years ago

looks like the .com.br is what we have a bug on. I think we should be able to address in sept release.