components icon indicating copy to clipboard operation
components copied to clipboard

bug(md-spinner): possible memory leak with AoT

Open ivoviz opened this issue 10 years ago • 1 comments

When using md-spinner with ngc and rollup its OnDestroy method won't run.

Simple plunker example.

The only modification made to md-progress-circle component was to add logging when OnDestroy is called. Obviously it should log destroyed twice, but it happens only once and the interdeterminateInterval keeps running in the background causing memory leak and more cpu usage.

Note that <md-progress-circle mode="indeterminate"> works and its OnDestroy method gets called, so as a workaround it's there. Also, md-spinner itself seems to work as well when not precompiled. I haven't really investigated further so I'm not sure whether it's ngc or rollup causing the issue.

ivoviz avatar Sep 20 '16 14:09 ivoviz

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.