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

I am running latest meteor version 1.8. My computer is linuxmint 18.3 and has 32gb of RAM (12GB unused).
I have tried all the variations I’ve found of:

export TOOL_NODE_FLAGS=-–max-old-space-size=4086

node memory is never over 1.6GB no matter what.

Any ideas?
Thanks.

the whole error is:

W20181011-22:55:57.716(2)? (STDERR) FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

W20181011-22:55:57.716(2)? (STDERR) 1: node::Abort() [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.716(2)? (STDERR) 2: 0x8c21ec [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 3: v8::Utils::ReportOOMFailure(char const*, bool) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 5: v8::internal::factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 6: v8::internal::factory::NewStringFromOneByte(v8::internal::Vector<unsigned char const>, v8::internal::PretenureFlag) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 7: v8::internal::factory::NewStringFromUtf8(v8::internal::Vector<char const>, v8::internal::PretenureFlag) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 8: v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.717(2)? (STDERR) 9: node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Local<v8::Value>*) [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.718(2)? (STDERR) 10: 0x8e2526 [/home/r2d2/.meteor/packages/meteor-tool/.1.8.0.1ko26hh.1hr7++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node]

W20181011-22:55:57.718(2)? (STDERR) 11: 0x38f2f00e54e7

=> Exited from signal: SIGABRT

1 Like