- 
                Notifications
    You must be signed in to change notification settings 
- Fork 11.9k
Description
🐞 Bug report
Command (mark with an x)
- [ ] new
- [x] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes, the previous version in which this bug was not present was: 8.1.3Description
When using ng serve or build --watch, when I make a change and it recompiles, it starts endlessly consuming memory until it crashes. A few seconds of the task manager are captured in this gif.
it just keeps allocating memory until it uses it all and crashes.
🔬 Minimal Reproduction
For me all I have to do is run ng serve and then make a change anywhere so that it recompiles. that triggers the endless loop of memory allocation.
For a minimal repro, I would appreciate some advice. I tried just doing this with a "hello world" app and the problem is not there (obviously that would have been caught), so it's something about my application's structure or additional libraries or something that confuses the 8.2 compiler.
While the app is not huge, it's not trivial, and I can't make it public on github. I don't really know where to begin to try to pare it down. and just reverting to 8.1.3 of the cli removes the issue. Is there any way to maybe turn on a debug log or something of that nature so I could provide info on what the cli is doing when it consumes all that memory? I turned on --verbose, but the output doesn't look significantly different than 8.1.3 and it doesn't continue to output anything once the incremental compile is done even though the memory use is continuing to grow.
Otherwise, I guess I can start chopping bits out and see if there is something obvious that makes the problem go away.
🔥 Exception or Error
#
# Fatal error in , line 0
# Fatal process out of memory: Zone
#
#
#
#FailureMessage Object: 00000024574F9F00
🌍 Your Environment
Angular CLI: 8.2.1
Node: 12.6.0
OS: win32 x64
Angular: 8.2.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.802.1
@angular-devkit/build-angular      0.802.1
@angular-devkit/build-optimizer    0.802.1
@angular-devkit/build-webpack      0.802.1
@angular-devkit/core               8.2.1
@angular-devkit/schematics         8.2.1
@angular/cdk                       8.1.2
@angular/material                  8.1.2
@angular/material-moment-adapter   8.1.2
@angular/pwa                       0.802.1
@ngtools/webpack                   8.2.1
@schematics/angular                8.2.1
@schematics/update                 0.802.1
rxjs                               6.5.2
typescript                         3.5.3
webpack                            4.38.0
Anything else relevant?
