gruntjs / grunt-contrib-concat

Concatenate files.
http://gruntjs.com/
MIT License
812 stars 170 forks source link

JS Stacktrace Crash on SourceMaps #177

Open jjravleuven opened 7 years ago

jjravleuven commented 7 years ago

This is all new...

<--- Last few GCs --->

   73369 ms: Mark-sweep 1328.8 (1404.8) -> 1328.8 (1404.8) MB, 879.5 / 0.0 ms [allocation failure] [GC in old space requested].
   74187 ms: Mark-sweep 1328.8 (1404.8) -> 1328.8 (1403.8) MB, 817.1 / 0.0 ms [allocation failure] [GC in old space requested].
   75022 ms: Mark-sweep 1328.8 (1403.8) -> 1336.8 (1403.8) MB, 834.9 / 0.0 ms [last resort gc].
   75860 ms: Mark-sweep 1336.8 (1403.8) -> 1344.8 (1403.8) MB, 838.3 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

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

Security context: 0x17997b9cfb51 <JS Object>
    1: addMapping(aka SourceMapGenerator_addMapping) [/Users/james/www/GitHub/v1.02/node_modules/grunt-contrib-concat/node_modules/source-map/lib/source-map/source-map-generator.js:~98] [pc=0x35e7f1e32877] (this=0x1ee24ad78e11 <a SourceMapGenerator with map 0x503057adea9>,aArgs=0x1c6033ffffb9 <an Object with map 0x503057ada31>)
    2: /* anonymous */ [/Users/james/www/GitHub/v1.02/node_modules/...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/bin/node]
 5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 6: 0x35e7f16079a7
Abort trap: 6

I have no idea why this is happening after it attempts to deal w/ sourceMaps

wiggitamoo commented 7 years ago

Try upgrading your version of grunt-contrib-concat to the latest version. That fixed the error for me. v1.0.1 was the latest at the time of this comment. https://github.com/gruntjs/grunt-contrib-concat