You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed #9199
changed the title [-]Leak when asynchronously continuing the compilation of nodes[/-][+]Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/+]on Sep 21, 2014
@caitp I created the new issue to be sure it is tracked as a leak and not as something that can cause no harm. That said, I am ok with just moving everything to the original issue
I commented on the two commits in #9079. I believe the commit that prevents double destroy events could cause memory leaks and proposed a different solution of actually recursing down the scope hierarchy and calling $destroy on all descendants, based on the fact that #9281 would make the scope hierarchy more conducive to this - currently this would fail to destroy transcluded scopes.
I think the second commit is the right thing to do assuming that we really have destroyed the descendant scopes.
changed the title [-]Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/-][+]SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/+]on Sep 26, 2014
Activity
[-]Leak when asynchronously continuing the compilation of nodes[/-][+]Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/+]caitp commentedon Sep 21, 2014
did we really need to create a new issue for this? it's basically the same thing as the one you were commenting on is it not?
lgalfaso commentedon Sep 21, 2014
@caitp I created the new issue to be sure it is tracked as a leak and not as something that can cause no harm. That said, I am ok with just moving everything to the original issue
fix($compile): Resolve leak with asynchronous compilation
lgalfaso commentedon Sep 22, 2014
Posted an update on #9079 that solves this issue
petebacondarwin commentedon Sep 26, 2014
I commented on the two commits in #9079. I believe the commit that prevents double destroy events could cause memory leaks and proposed a different solution of actually recursing down the scope hierarchy and calling
$destroyon all descendants, based on the fact that #9281 would make the scope hierarchy more conducive to this - currently this would fail to destroy transcluded scopes.I think the second commit is the right thing to do assuming that we really have destroyed the descendant scopes.
[-]Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/-][+]SCOPE DESTRUCTION: Leak when asynchronously continuing the linking of directives on scopes that are already destroyed[/+]fix($compile): Resolve leak with asynchronous compilation
fix($compile): Resolve leak with asynchronous compilation
fix($compile): Resolve leak with asynchronous compilation
fix($compile): Resolve leak with asynchronous compilation
fix($compile): Resolve leak with asynchronous compilation