Skip to content

datepicker memory leak #17896

@rudzikdawid

Description

@rudzikdawid

Reproduction

Steps to reproduce:

  1. go to https://material.angular.io/components/datepicker/examples
  2. open datepicker and close multiple times
  3. each open and close action generate 135KB memory leak.

The more times we open and close datepicker, the more memory are allocated.
Garbage collector does not clear all allocated memory.

Expected Behavior

datepicker without memory leaks

Actual Behavior

memory leaks

Environment

  • Angular: 8.2.14, 9.0.0-rc.5
  • CDK/Material: 8.2.3, 9.0.0-rc.5
  • Browser(s): Chrome 78.0.3904.108
  • Operating System: Fedora 31

Metadata

Metadata

Labels

P2The issue is important to a large percentage of users, with a workaroundanimationThis issue is related to Angular animations or CSS animationsperfThis issue is related to performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions