Skip to content
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

Memory leak due to rapid toggle of animation #75

Open
mrhubbs opened this issue Mar 29, 2022 · 0 comments
Open

Memory leak due to rapid toggle of animation #75

mrhubbs opened this issue Mar 29, 2022 · 0 comments

Comments

@mrhubbs
Copy link

mrhubbs commented Mar 29, 2022

I'm using a GifImageView in situation where the animation is stopped and started very rapidly for a period of time. This toggling can happen as frequently as <10 milliseconds. This creates a memory leak which eventually crashes my app.

From the code here, it looks like the thread which runs the animation is not actually stopped on the call to stopAnimation.

https://github.com/felipecsl/GifImageView/blob/master/library/src/main/java/com/felipecsl/gifimageview/library/GifImageView.java#L184

Am I correct in that and, if so, what is the reason for this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant