style="width:100%" cause a memory leak
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
I wrote a very simple code to reproduce this problem. (https://stackblitz.com/edit/angular-ivy-iiyqnc)
There are two hello component, the only difference is ‘width:100%’ in hello 2, and this cause a memory leak, but not happened in every browser, I tested two device.
Window chrome 96.0.4664.110 It’s fine.
Android chrome 96.0.4664.45 Remainder of hello2 almost not release its memory.
And I also got some weird memory leak problem by mix ngIf+Directive+EventEmitter, but it is hard to reproduce simply, and I still fight with it.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-ivy-iiyqnc
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version
)
Angular: 12.2.5 / 13.1.1
Anything else?
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Multiple copies of stylesheets stored in memory (leak)
I noticed that there are memory leaks in our application. I have been using Firefox's about:memory page to try and troubleshoot the problem....
Read more >4 Types of Memory Leaks in JavaScript and How to Get Rid Of ...
The main cause for leaks in garbage collected languages are unwanted references. To understand what unwanted references are, first we need to ...
Read more >Memory Leak Issue with inline DataTemplates in Xaml - MSDN
Same problem with Styles Defined in resources. Example A which defines ControlTemplate inline of style (InResources!) will cause memory leak.
Read more >How to avoid memory leaks in your Angular application
In this article I will show you an example of a memory leak in a real world example and the proper steps to...
Read more >How To Detect and Prevent Memory Leaks | Scout APM Blog
The main causes of memory leaks in python are: lingering on all the ... they can shut down in an orderly fashion and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@harshsingla-devops
Thanks, I moved the code as you suggested, although it has nothing to do with the problem.
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.