Skip to content

Bug: dialog causing detached DOM tree #12114

@shaniqwa

Description

@shaniqwa

Bug, feature request, or proposal:

Bug

What is the expected behavior?

avoid memory leaks

What is the current behavior?

each time a material dialog is opened, another detached DOM tree is added

What are the steps to reproduce?

I'm experiencing this behaviour in angular-electron app, I suspect it has something to do with electron since this is not happening in any other apps. Added a gif showing snapshots before and after opening the dialog few times. (this is happening with any dialog across this app, not only the one in this example.)

ezgif-2-2095b9c228

What is the use-case or motivation for changing an existing behavior?

I hope this is not happening to others, it's causing huge memory leak and after few hours the app gets very slow.

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

electron 2
angular 5.2.5
material 5.2.5
typescript 2.6.2

edit: also tested with -
electron 2.0.3
angular 6.0.5
material 6.3.2
typescript 2.7.2

same behaivouer

Is there anything else we should know?

I'm not 100% sure the problem is with material, but if it is its important that you know about this.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/dialogperfThis 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