angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.74k forks source link

bug(tooltip): matTooltip leaks memory #20110

Open mikebolt opened 4 years ago

mikebolt commented 4 years ago

This issue has been reported previously, e.g. in #12644

Reproduction

Steps to reproduce:

  1. Visit https://material.angular.io/components/tooltip/overview
  2. Take memory snapshot.
  3. Wiggle cursor over anything with an on-hover tooltip. (approx 100 times)
  4. Take memory snapshot.
  5. Repeat 3 and 4 to see an upward trend in memory usage.

Expected Behavior

Memory usage does not increase indefinitely due to toggling tooltip display.

Actual Behavior

It does.

Environment

crisbeto commented 4 years ago

Sounds related to https://github.com/angular/components/pull/9109 which we never ended up merging.

shlomiaz commented 4 years ago

Hi, any news on this issue?

crisbeto commented 4 years ago

Is this still a problem under Ivy? My understanding was that it should've resolved it, but I haven't had the time to confirm it.

shlomiaz commented 4 years ago

It was reproduce in v10 by @mikebolt so I guess it is using ivy

zbagley commented 3 years ago

Noting this bug still exists as of today.