question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

style="width:100%" cause a memory leak

See original GitHub issue

Which @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 image It’s fine.

Android chrome 96.0.4664.45 image 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jimliuxyzcommented, Dec 23, 2021

@harshsingla-devops

Thanks, I moved the code as you suggested, although it has nothing to do with the problem.

0reactions
angular-automatic-lock-bot[bot]commented, Feb 13, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found