Skip to content

@next runs out of memory on build, throws JS stacktracke #4902

Closed
@hyperknot

Description

@hyperknot

I'm getting this one with @next branch. I'm using:

npx create-react-app@next --scripts-version=2.0.0-next.3e165448 app-name
<--- Last few GCs --->

[74687:0x103000000]    80393 ms: Mark-sweep 1364.8 (1460.4) -> 1364.6 (1463.4) MB, 1038.8 / 0.0 ms  allocation failure GC in old space requested
[74687:0x103000000]    81325 ms: Mark-sweep 1364.6 (1463.4) -> 1364.4 (1429.9) MB, 931.1 / 0.0 ms  last resort GC in old space requested
[74687:0x103000000]    82266 ms: Mark-sweep 1364.4 (1429.9) -> 1364.4 (1426.9) MB, 940.7 / 0.0 ms  last resort GC in old space requested


<--- JS stacktrace --->

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

Security context: 0x13240d025879 <JSObject>
    1: _parseMappings(aka SourceMapConsumer_parseMappings) [/Users/user/nonsync/dev/populus/groundtruth/fe/build/node_modules/webpack-sources/node_modules/source-map/lib/source-map-consumer.js:~468] [pc=0x1a0d2022cd16](this=0x13244ecf6989 <BasicSourceMapConsumer map = 0x13240e45fe21>,aStr=0x13245a582201 <Very long string[6486484]>,aSourceRoot=0x13244ecf6ce1 <String[50]: /Users/user/nonsync/dev/p...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/user/n/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/user/n/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/user/n/bin/node]
 4: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [/Users/user/n/bin/node]
 5: v8::internal::HashTable<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::EnsureCapacity(v8::internal::Handle<v8::internal::NameDictionary>, int, v8::internal::PretenureFlag) [/Users/user/n/bin/node]
 6: v8::internal::Dictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::Add(v8::internal::Handle<v8::internal::NameDictionary>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyDetails, int*) [/Users/user/n/bin/node]
 7: v8::internal::LookupIterator::ApplyTransitionToDataProperty(v8::internal::Handle<v8::internal::JSObject>) [/Users/user/n/bin/node]
 8: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [/Users/user/n/bin/node]
 9: v8::internal::Runtime_SetProperty(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/user/n/bin/node]
10: 0x1a0d1fa842fd
11: 0x1a0d2022cd16
12: 0x1a0d1fcf6ee2
error Command failed with signal "SIGABRT".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions