-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
AnimationItem.destroy memory leak #1933
Comments
Hi, there is some initialization of cached data that happen when an animation starts, but it should be a one off time. |
Thanks @bodymovin after multiple loads the heap size returns to the size after the first load. |
I can see if I can expose a method to remove all cached data. |
@bodymovin That would be amazing! |
@nathanbrud even if resources are freed, JS decides when to sweep memory and release resources by multiple factors. |
Hey @bodymovin we are experiencing the same issue, when we load multiple instances of the same animation we start to see an increment on the Google Task Manager for the tab where memory usage increases up to 1.5gb and totally freezes the site. Any idea? |
@siba2893-avantica are you using AE repeaters on the animation? |
"lottie-web": "^5.7.3" |
Could it be related to #1159 ? try to use |
Tell us about your environment
MacOS 10.14.4
Chrome 79.0.3945.88
What did you do? Please explain the steps you took before you encountered the problem.
Reproduce here - http://wbtz-test.s3.amazonaws.com/lottie-test.html
What did you expect to happen?
Heap size to return to the same value before lottie was loaded.
What actually happened? Please include as much relevant detail as possible.

Heap size increased by 600kb
Please provide a download link to the After Effects file that demonstrates the problem.
Animation data in in the example - http://wbtz-test.s3.amazonaws.com/lottie-test.html
Just used a random animation from lottie-files, was able to reproduce with other animations as well:
Thanks in advance! :)
The text was updated successfully, but these errors were encountered: