-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: ion-spinner has memory leak #3583
Comments
Any way you could provide a demo of this? |
I can reproduce this bug with a blank ionic template and a simple ionicLoading statement -> http://forum.ionicframework.com/t/rc0-1-high-idle-cpu-usage-on-ios-7-iphone-4/19705 |
If you don't rely on the spinner, here's a quick workaround for the memory leak:
|
Ok, I've noticed a few issues around this and have tried to consolidate them. This looks like a big deal. Thanks everyone for chiming in and submitting issues about this. |
Hi, Any news about this critical issue ? Thanks |
Digging in to this a bit more, setting This will potentially cause a flicker on some devices. I'm going to re-evaluate across a range of devices bearing this significant memory impact in mind. Stay tuned. |
Interesting, I stay tuned :) |
fixed in 32da5cd |
Will it be integrated in nightly build soon? Thanks for the fix |
Tested it and it works great, thanks ;) |
Should be fixed by: 9f341a8 |
Still present in 1.2.4.
works fine if one adds spinner=none |
Type: bug
Platform: all
# Problem 1:The current implementation does not cleanup on the deletion of the scope. This leads to a memory leak. The spinning animation keeps on running even if the spinner is not in the dom anymore. The animation should be stopped when the scope gets destroyed. This degrades scrolling performance too.
Problem 2:
The spinner in combination with the infinite-scroll directive.
It is not sufficient to have the spinner translated out of view. (Why this solution was chosen instead of opacity?). The spinner is still getting animated and degrades scrolling performance on iOS devices a lot. Even if out of view.
The text was updated successfully, but these errors were encountered: