olov / ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations
MIT License
2.03k stars 150 forks source link

JavaScript heap out of memory #262

Closed Insidexa closed 7 years ago

Insidexa commented 7 years ago
 91% additional asset processing                                                        
<--- Last few GCs --->

 5457642 ms: Mark-sweep 1339.1 (1397.2) -> 1314.9 (1374.1) MB, 924.0 / 0.0 ms [allocation failure] [GC in old space requested].
 5458673 ms: Mark-sweep 1314.9 (1374.1) -> 1314.9 (1375.1) MB, 1031.2 / 0.0 ms [allocation failure] [GC in old space requested].
 5459694 ms: Mark-sweep 1314.9 (1375.1) -> 1314.9 (1373.1) MB, 1020.4 / 0.0 ms [last resort gc].
 5460719 ms: Mark-sweep 1314.9 (1373.1) -> 1314.9 (1373.1) MB, 1025.0 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

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

Security context: 0x3101be7cf781 <JS Object>
    1: pre(aka pre) [/home/jashka/PhpstormProjects/site-frontend/node_modules/ng-annotate/build/es5/lut.js:29] [pc=0x22fd1e5818dc] (this=0x3101be704381 <undefined>,node=0x1e0547fe4909 <an Object with map 0x3042264985e1>)
    2: arguments adaptor frame: 4->1
    3: visit(aka visit) [/home/jashka/PhpstormProjects/site-frontend/node_modules/ordered-ast-traverse/ordered-ast-traverse.js:25] ...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x109f0ac [node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewUninitializedFixedArray(int) [node]
 6: 0xc4d70c [node]
 7: 0xc4e0b5 [node]
 8: v8::internal::JSObject::AddDataElement(v8::internal::Handle<v8::internal::JSObject>, unsigned int, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow) [node]
 9: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [node]
10: v8::internal::Object::SetProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::LanguageMode, v8::internal::Object::StoreFromKeyed) [node]
11: v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::LanguageMode) [node]
12: v8::internal::Runtime_SetProperty(int, v8::internal::Object**, v8::internal::Isolate*) [node]
13: 0x22fd12b092a7
olov commented 7 years ago

https://github.com/olov/ng-annotate/issues/253