FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
See original GitHub issueI just hit this error while running depcheck on a project that has about 3200 NPM modules installed. Thought I’d share it for a heads up.
`<— Last few GCs —>
200749 ms: Mark-sweep 1387.6 (1435.2) -> 1387.6 (1435.2) MB, 1550.4 / 0.0 ms [allocation failure] [GC in old space requested]. 202167 ms: Mark-sweep 1387.6 (1435.2) -> 1387.5 (1419.2) MB, 1417.2 / 0.0 ms [last resort gc]. 203589 ms: Mark-sweep 1387.5 (1419.2) -> 1387.5 (1419.2) MB, 1422.0 / 0.0 ms [last resort gc].
<— JS stacktrace —>
==== JS stack trace =========================================
Security context: 0x17f6253cfb39 <JS Object> 1: parseObj [/usr/local/lib/node_modules/depcheck/node_modules/babylon/lib/index.js:4020] [pc=0x14d1999b0106] (this=0x7f73ec3e619 <a Parser with map 0x3c8d0f3e9101>,isPattern=0x17f625304271 <false>,refShorthandDefaultPos=0x38749e922ee9 <an Object with map 0x3c8d0f3e7fd1>) 2: parseExprAtom [/usr/local/lib/node_modules/depcheck/node_modules/babylon/lib/index.js:~3606] [pc=0x14d199926cf4] …
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::Localv8::Value, v8::Localv8::Message) [/usr/local/bin/node] 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node] 4: v8::internal::Factory::NewTransitionArray(int) [/usr/local/bin/node] 5: v8::internal::TransitionArray::Insert(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Map, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node] 6: v8::internal::Map::CopyReplaceDescriptors(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::DescriptorArray, v8::internal::Handlev8::internal::LayoutDescriptor, v8::internal::TransitionFlag, v8::internal::MaybeHandlev8::internal::Name, char const*, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node] 7: v8::internal::Map::CopyAddDescriptor(v8::internal::Handlev8::internal::Map, v8::internal::Descriptor*, v8::internal::TransitionFlag) [/usr/local/bin/node] 8: v8::internal::Map::CopyWithField(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::FieldType, v8::internal::PropertyAttributes, v8::internal::Representation, v8::internal::TransitionFlag) [/usr/local/bin/node] 9: v8::internal::Map::TransitionToDataProperty(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node] 10: v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node] 11: v8::internal::StoreIC::LookupForWrite(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node] 12: v8::internal::StoreIC::UpdateCaches(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node] 13: v8::internal::StoreIC::Store(v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Object, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node] 14: v8::internal::Runtime_StoreIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node] 15: 0x14d1992092a7 16: 0x14d1999b0106 [1] 79166 abort depcheck`
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8
Top GitHub Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had this issue on Node 10, but switching to Node 12 fixed it.