Skip to content

100% reproducible memory leak  #10573

Closed
@MarkJeoffery

Description

@MarkJeoffery

Bug, feature request, or proposal:

Bug

What is the expected behavior?

What is the current behavior?

Any overlay control (menu, popup) if opened and closed enough times affects the performance of all the input boxes. As funny as it seems, it does!

What are the steps to reproduce?

Try material's website: https://material.angular.io

  1. Navigate to the "Form Controls -> Input" to load the input page
  2. Navigate to "Navigation -> Menu"
  3. Open and close the menu 150 times or more by clicking on the "Menu" button.
  4. Navigate to the "Form Controls -> Input". (to see the issue better, try to repeat steps 2 to 4)
    5- Try to type quickly in any of the input boxes and you will see it's typing slowly. Try to delete the text by holding the backspace key and you will see it's lagging.

What is the use-case or motivation for changing an existing behavior? We are building a software that will be running for the entire day. Obviously the menus will open for more than 150 times. So it's not a dramatic number. After a lot of investigation on why it's slowing down, we realized that it's the menu causing that. We tried it on material's own website and we were able to replicate the issue

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

The latest stable version: 5.2.4
We even tried on 6.0.0-beta.4

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions