remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

JavaScript heap out of memory #163

Open berserkore opened 7 years ago

berserkore commented 7 years ago

Hi,

I am getting this issue while inlining over a site URL:

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::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/usr/local/bin/node]
 6: v8::internal::Runtime_StringBuilderJoin(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0x3a323eb043a7
Abort trap: 6

Does inliner has some limitations in terms of memory allocation? if yes, is there a way to increase or bypass this problem?

Regards

remy commented 7 years ago

Probably bound by the limits node has. Otherwise there's nothing artificial that I know of.

On Fri, 6 Oct 2017, 04:25 berserkore, notifications@github.com wrote:

Hi,

I am getting this issue while inlining over a site URL:

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::Local) [/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::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/usr/local/bin/node] 6: v8::internal::Runtime_StringBuilderJoin(int, v8::internal::Object*, v8::internal::Isolate) [/usr/local/bin/node] 7: 0x3a323eb043a7 Abort trap: 6

Does inliner has some limitations in terms of memory allocation? if yes, is there a way to increase or bypass this problem?

Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/remy/inliner/issues/163, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA1hEaDhPpcX3dgfpYr4JQO0BCeo-Avks5spZ2WgaJpZM4Pv9lk .