Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails with Allocation failed - JavaScript heap out of memory #3476

Closed
abhinavmandala opened this issue Nov 22, 2019 · 0 comments
Closed

Comments

@abhinavmandala
Copy link

Getting out of memory error when trying 'yarn build' in mac

<--- Last few GCs --->

[22700:0x103001000] 194082 ms: Mark-sweep 1323.2 (1462.2) -> 1323.1 (1463.2) MB, 1325.4 / 0.0 ms allocation failure GC in old space requested
[22700:0x103001000] 195424 ms: Mark-sweep 1323.1 (1463.2) -> 1323.0 (1426.7) MB, 1341.3 / 0.0 ms last resort GC in old space requested
[22700:0x103001000] 196732 ms: Mark-sweep 1323.0 (1426.7) -> 1323.0 (1426.2) MB, 1308.2 / 0.0 ms last resort GC in old space requested

<--- JS stacktrace --->

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

Security context: 0x90b638258b9
1: push(this=0x90b5b1b76c1 <JSArray[171718]>)
2: /* anonymous /(aka / anonymous */) [/Users/amandala/Documents/code/a/news-bits/node_modules/webpack-sources/lib/applySourceMap.js:~58] [pc=0x2dd689837877](this=0x90bbc9022d1 ,chunk=0x90b6d4c0289 <String[13]: configurable,>,middleMapping=0x90bca40a949 )
3: walk(aka SourceNode_walk) [/Users/amandal...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
2: node::FatalException(v8::Isolate*, v8::Localv8::Value, v8::Localv8::Message) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
4: v8::internal::Factory::NewUninitializedFixedArray(int) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::ConvertElementsWithCapacity(v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::FixedArrayBase, v8::internal::ElementsKind, unsigned int, unsigned int, unsigned int, int) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
6: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacityAndConvertImpl(v8::internal::Handlev8::internal::JSObject, unsigned int) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
7: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::Add(v8::internal::Handlev8::internal::JSObject, unsigned int, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, unsigned int) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
8: v8::internal::JSObject::AddDataElement(v8::internal::Handlev8::internal::JSObject, unsigned int, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
9: v8::internal::Runtime_SetProperty(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/amandala/.nvm/versions/node/v8.14.0/bin/node]
10: 0x2dd687c842fd
✨ Done in 199.09s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant