angular-seed: Out of memory building larger project

Looks like there’s some kind of issue in https://github.com/AngularShowcase/ng2-bootstrap-sbadmin:

Brians-MBP:sbadmin2-ng2 brian$ rm -rf node_modules/
Brians-MBP:sbadmin2-ng2 brian$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Brians-MBP:sbadmin2-ng2 brian$ npm install
npm WARN engine @reactivex/rxjs@5.0.0-alpha.7: wanted: {"npm":"~2.0.0"} (current: {"node":"4.2.1","npm":"3.3.6"})
npm WARN engine karma@0.12.37: wanted: {"node":">=0.8 <=0.12 || >=1 <=2"} (current: {"node":"4.2.1","npm":"3.3.6"})
npm WARN engine joi-assert@0.0.3: wanted: {"node":">= 0.10.0 <= 0.11.0"} (current: {"node":"4.2.1","npm":"3.3.6"})
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global node-gyp@3.1.0 should be installed with -g

> fsevents@1.0.5 install /Users/brian/dev/sbadmin2-ng2/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/brian/dev/sbadmin2-ng2/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" is installed via remote

> ws@0.4.32 install /Users/brian/dev/sbadmin2-ng2/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o

> phantomjs2-ext@0.1.0 install /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext
> node install.js

Download already available at /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip
Extracting zip contents
Removing /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom
Copying extracted folder /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip-extract-1448322977450/phantomjs-2.0.0-20141016 -> /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom
Removing /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip-extract-1448322977450
Writing location.js file
Done. Phantomjs binary available at /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom/bin/phantomjs

> node-sass@3.4.2 install /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass/vendor/darwin-x64-46/binding.node

> spawn-sync@1.0.14 postinstall /Users/brian/dev/sbadmin2-ng2/node_modules/spawn-sync
> node postinstall


> node-sass@3.4.2 postinstall /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass
> node scripts/build.js

` /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass/vendor/darwin-x64-46/binding.node ` exists. 
 testing binary.
Binary is fine; exiting.

> fsevents@1.0.5 install /Users/brian/dev/sbadmin2-ng2/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/Users/brian/dev/sbadmin2-ng2/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global node-gyp@3.1.0 should be installed with -g

> node-sass@3.4.2 install /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass
> node scripts/install.js


> node-sass@3.4.2 postinstall /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass
> node scripts/build.js

` /Users/brian/dev/sbadmin2-ng2/node_modules/node-sass/vendor/darwin-x64-46/binding.node ` exists. 
 testing binary.
Binary is fine; exiting.

> phantomjs2-ext@0.1.0 install /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext
> node install.js

Download already available at /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip
Extracting zip contents
Removing /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom
Copying extracted folder /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip-extract-1448323011312/phantomjs-2.0.0-20141016 -> /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom
Removing /var/folders/k6/yflwyw756vb3fv8qmwrwp8k40000gn/T/phantomjs/phantomjs-2.0.0-20141016-macosx.zip-extract-1448323011312
Writing location.js file
Done. Phantomjs binary available at /Users/brian/dev/sbadmin2-ng2/node_modules/phantomjs2-ext/lib/phantom/bin/phantomjs

> spawn-sync@1.0.14 postinstall /Users/brian/dev/sbadmin2-ng2/node_modules/spawn-sync
> node postinstall


> ws@0.4.32 install /Users/brian/dev/sbadmin2-ng2/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o

> angular2-seed@0.0.0 postinstall /Users/brian/dev/sbadmin2-ng2
> tsd reinstall --clean && tsd link && tsd rebundle && gulp check.versions && gulp postinstall


-> running reinstall

>> written zero files

   >> definition-header (node)
   >> reflect-metadata (node)

>> nothing rebundled
[16:57:00] Requiring external module ts-node/register
[16:57:04] Using gulpfile ~/dev/sbadmin2-ng2/gulpfile.ts
[16:57:04] Starting 'check.versions'...
[16:57:04] Finished 'check.versions' after 16 ms
[16:57:04] Requiring external module ts-node/register
[16:57:08] Using gulpfile ~/dev/sbadmin2-ng2/gulpfile.ts
[16:57:08] Starting 'postinstall'...
[16:57:08] Starting 'clean'...
[16:57:08] Finished 'clean' after 11 ms
[16:57:08] Starting 'npm'...
[16:57:10] Finished 'npm' after 1.66 s
[16:57:10] Finished 'postinstall' after 1.67 s
angular2-seed@0.0.0 /Users/brian/dev/sbadmin2-ng2
├── @reactivex/rxjs@5.0.0-alpha.7 
├── angular2@2.0.0-alpha.46 
├── async@1.5.0 
├── bootstrap@3.3.5 
├── connect-livereload@0.5.3 
<snip/>
└─┬ zone.js@0.5.8 
  └── es6-promise@3.0.2 

Brians-MBP:sbadmin2-ng2 brian$ npm start

> angular2-seed@0.0.0 start /Users/brian/dev/sbadmin2-ng2
> gulp serve --env dev

[16:57:21] Requiring external module ts-node/register
[16:57:25] Using gulpfile ~/dev/sbadmin2-ng2/gulpfile.ts
[16:57:25] Starting 'serve'...
[16:57:25] Starting 'build.dev'...
[16:57:25] Starting 'clean.dist'...
[16:57:25] Finished 'clean.dist' after 3.44 ms
[16:57:25] Starting 'tslint'...

/Users/brian/dev/sbadmin2-ng2/app/components/app/app.ts
      line 18  col 9  unused variable: 'Header'

    ✖ 1 error

[16:57:26] Finished 'tslint' after 1.14 s
[16:57:26] Starting 'build.jslib.dev'...
[16:57:26] Finished 'build.jslib.dev' after 28 ms
[16:57:26] Starting 'build.ng2bs.dev'...

<--- Last few GCs --->

   47021 ms: Mark-sweep 1392.7 (1456.8) -> 1392.6 (1456.8) MB, 2338.5 / 0 ms [allocation failure] [GC in old space requested].
   49066 ms: Mark-sweep 1392.6 (1456.8) -> 1392.6 (1456.8) MB, 2044.9 / 0 ms [allocation failure] [GC in old space requested].
   51052 ms: Mark-sweep 1392.6 (1456.8) -> 1392.6 (1456.8) MB, 1985.6 / 0 ms [last resort gc].
   53112 ms: Mark-sweep 1392.6 (1456.8) -> 1392.6 (1456.8) MB, 2060.4 / 0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x33493a337399 <JS Object>
    2: /* anonymous */(aka /* anonymous */) [/Users/brian/dev/sbadmin2-ng2/node_modules/systemjs-builder/lib/trace.js:457] [pc=0x3bc531ffb4c5] (this=0x33493a304131 <undefined>,load=0xa4e1aad4139 <an Object with map 0x34d85cbf8ba1>)
    3: /* anonymous */(aka /* anonymous */) [native promise.js:227] [pc=0x3bc531fb8308] (this=0x33493a304131 <undefined>,o=0xa4e1aad4139 <an Object with map 0x34d85c...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6

I’m not sure I noticed this get introduced since I probably didn’t rebuild on that merge.

Would it be worth making that build some kind of larger scale test for this one?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 24 (12 by maintainers)

Most upvoted comments

I have a few ideas where the problem could be but it’s going to take a while to add enough content to my seed fork to reproduce the issue.

Give me a few hours