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

Out of memory during build stage #1335

Closed
otterley opened this issue Dec 12, 2018 · 2 comments
Closed

Out of memory during build stage #1335

otterley opened this issue Dec 12, 2018 · 2 comments

Comments

@otterley
Copy link
Contributor

Similar to #56. While running install.sh on a MacBook Pro 2018 with 8GB RAM, the following error is encountered:

$ ./install.sh 
=============================================================================================
installing repo-global dependencies...
added 1442 packages from 397 contributors and audited 1500194 packages in 21.62s
found 0 vulnerabilities

=============================================================================================
bootstrapping...
lerna notice cli v3.6.0

<--- Last few GCs --->

[33033:0x104804c00]    16101 ms: Scavenge 1396.4 (1424.3) -> 1396.1 (1424.8) MB, 12.7 / 0.0 ms  (average mu = 0.168, current mu = 0.061) allocation failure 
[33033:0x104804c00]    16107 ms: Scavenge 1396.8 (1424.8) -> 1396.5 (1425.3) MB, 5.2 / 0.0 ms  (average mu = 0.168, current mu = 0.061) allocation failure 
[33033:0x104804c00]    17483 ms: Mark-sweep 1397.1 (1425.3) -> 1396.9 (1425.3) MB, 1375.0 / 0.0 ms  (average mu = 0.098, current mu = 0.022) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x2def1e4fb7d]
    1: StubFrame [pc: 0x2def1e50eea]
Security context: 0x086f10e1d9f1 <JSObject>
    2: formatProperty(aka formatProperty) [0x86fa14d7e69] [internal/util/inspect.js:~1117] [pc=0x2def20e588c](this=0x086fd43825b1 <undefined>,0x086f4c8c47d9 <Object map = 0x86fff1d8831>,0x086ff66671d1 <Result map = 0x86fff1df9f1>,0,0x086f694e1669 <String[5]: where>,0)
    3: formatRaw(aka formatRaw) [0x86fa14d7969] [intern...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x10005eeab node::Abort() [/usr/local/bin/node]
 2: 0x10005f68a node::FatalTryCatch::~FatalTryCatch() [/usr/local/bin/node]
 3: 0x100172023 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 4: 0x100171fc4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 5: 0x100433764 v8::internal::Heap::UpdateSurvivalStatistics(int) [/usr/local/bin/node]
 6: 0x100435181 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/usr/local/bin/node]
 7: 0x100432af9 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
 8: 0x1004318ef v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
 9: 0x1004397bd v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/bin/node]
10: 0x10043980c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/bin/node]
11: 0x100419bd3 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/bin/node]
12: 0x1005f7616 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
13: 0x2def1e4fb7d 
./install.sh: line 13: 33033 Abort trap: 6           lerna bootstrap --reject-cycles

Fix forthcoming.

@RomainMuller
Copy link
Contributor

Are you using Node 11.x by any chance? I consistently get this problem when using it, but not when using Node 8.x, 9.x or 10.x.

I have unfortunately not have had a chance to figure out the cause of the difference...

@otterley
Copy link
Contributor Author

Yes, I'm running Node 11.x. I haven't tried it with earlier versions -- new laptop, Node installed via Homebrew.

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

2 participants