-
Notifications
You must be signed in to change notification settings - Fork 6.7k
$uibTooltip creates massive memory leak #4604
Comments
@maxklenk Could you please check if that happens with the old non-prefixed version? And if possible with 0.13.4? Thank you. |
Sure: 0.14.1 |
Interesting, really interesting. I wonder if we introduced it with the prefix work. It is too much ask for 0.14.0 test? |
We did lot of tooltip changes in 0.14.0 so one of them is. Thoughts @wesleycho ? |
The memory leak was already introduces in the 0.14.0 release. |
Thanks, it is time to check out why and fix it 👍 |
I suspect this might be the cause: c08509a |
If that is indeed the cause, the fix should be simple - on the $scope |
@wesleycho Verified that does in fact fix the problem. I can fix this as part of PR #4597 if you would like? |
Separate PR if possible |
Yeah, separate always. |
Thank you for fixing this that fast! |
The tooltip was not being removed from the stackedMap resulting in a memeory leak. Tooltip will now be removed from the stackedMap in scope destroy function. Closes angular-ui#4610 Fixes angular-ui#4604
Each usage of
<span uib-tooltip="Hey"></span>
creates a memory leak on each state change withui-router
.When profiling the heap allocation of this plnkr memory leaks can be seen with tooltips:
![screen shot 2015-10-13 at 2 32 46 pm](https://cloud.githubusercontent.com/assets/3898310/10454805/b4054f82-71b7-11e5-8c24-51e316d416a9.png)
![screen shot 2015-10-13 at 2 33 00 pm](https://cloud.githubusercontent.com/assets/3898310/10454814/c157eed8-71b7-11e5-8390-675103f0fb96.png)
and less when there are no tooltips
The text was updated successfully, but these errors were encountered: