Open BurtHarris opened 4 years ago
It looks like something related to garbage collection. Example output:
S C:\code\antlr4ts> npm run cover > antlr4ts-root@0.5.0-dev cover C:\code\antlr4ts > nyc --reporter=none mocha --timeout=10000 <--- Last few GCs ---> [7832:000001915B6E2640] 140945 ms: Scavenge 2042.4 (2049.8) -> 2041.0 (2050.3) MB, 4.2 / 0.0 ms (average mu = 0.162, current mu = 0.172) allocation failure [7832:000001915B6E2640] 140951 ms: Scavenge 2042.7 (2050.3) -> 2041.3 (2050.6) MB, 5.2 / 0.0 ms (average mu = 0.162, current mu = 0.172) allocation failure [7832:000001915B6E2640] 140956 ms: Scavenge 2042.9 (2050.6) -> 2041.6 (2054.8) MB, 4.6 / 0.0 ms (average mu = 0.162, current mu = 0.172) allocation failure <--- JS stacktrace ---> ==== JS stack trace ========================================= 0: ExitFrame [pc: 00007FF67B154DDD] Security context: 0x0045995808d1 <JSObject> 1: SourceMapConsumer_allGeneratedPositionsFor [000001DE4CE7AB19] [C:\code\antlr4ts\node_modules\source-map\lib\source-map-consumer.js:~178] [pc=000001CE48C5597B](this=0x00e546d4c3b1 <BasicSourceMapConsumer map = 0000016486C3CAC9>,0x019c3ea23921 <Object map = 00000148684C2FF9>) 2: /* anonymous */(aka /* anonymous */) [0000008FF12B1399] [C:\code\antl... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Writing Node.js report to file: report.20200411.153613.7832.0.001.json Node.js report completed 1: 00007FF67A55363F napi_wrap+128063 2: 00007FF67A4F2836 public: bool __cdecl v8::base::CPU::has_sse(void)const __ptr64+35142 3: 00007FF67A4F34F6 public: bool __cdecl v8::base::CPU::has_sse(void)const __ptr64+38406 4: 00007FF67AD09F4E private: void __cdecl v8::Isolate::ReportExternalAllocationLimitReached(void) __ptr64+94 5: 00007FF67ACF2021 public: class v8::SharedArrayBuffer::Contents __cdecl v8::SharedArrayBuffer::Externalize(void) __ptr64+833 6: 00007FF67ABBE57C public: static void __cdecl v8::internal::Heap::EphemeronKeyWriteBarrierFromCode(unsigned __int64,unsigned __int64,class v8::internal::Isolate * __ptr64)+1436 7: 00007FF67ABC97D0 public: void __cdecl v8::internal::Heap::ProtectUnprotectedMemoryChunks(void) __ptr64+1312 8: 00007FF67ABC62F4 public: static bool __cdecl v8::internal::Heap::PageFlagsAreConsistent(class v8::internal::HeapObject)+3204 9: 00007FF67ABBBB13 public: bool __cdecl v8::internal::Heap::CollectGarbage(enum v8::internal::AllocationSpace,enum v8::internal::GarbageCollectionReason,enum v8::GCCallbackFlags) __ptr64+1283 10: 00007FF67ABBA184 public: void __cdecl v8::internal::Heap::AddRetainedMap(class v8::internal::Handle<class v8::internal::Map>) __ptr64+2452 11: 00007FF67ABDB36D public: class v8::internal::Handle<class v8::internal::HeapObject> __cdecl v8::internal::Factory::NewFillerObject(int,bool,enum v8::internal::AllocationType,enum v8::internal::AllocationOrigin) __ptr64+61 12: 00007FF67A940C51 public: class v8::internal::interpreter::JumpTableTargetOffsets::iterator & __ptr64 __cdecl v8::internal::interpreter::JumpTableTargetOffsets::iterator::operator=(class v8::internal::interpreter::JumpTableTargetOffsets::iterator && __ptr64) __ptr64+1665 13: 00007FF67B154DDD public: virtual bool __cdecl v8::internal::SetupIsolateDelegate::SetupHeap(class v8::internal::Heap * __ptr64) __ptr64+546637 14: 000001CE48C5597B npm ERR! code ELIFECYCLE npm ERR! errno 134 npm ERR! antlr4ts-root@0.5.0-dev cover: `nyc --reporter=none mocha --timeout=10000` npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the antlr4ts-root@0.5.0-dev cover script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Burt_.000\AppData\Roaming\npm-cache\_logs\2020-04-11T22_36_14_571Z-debug.log
2020-04-11T22_36_14_571Z-debug.log
It looks like something related to garbage collection. Example output: