# Image Animator excessively loading

**URL:** <https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [June 14, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017 "2023-06-14T13:15:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Braun](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sebastian\_Braun](https://forum.inductiveautomation.com/u/Sebastian_Braun)\
**Post date:** [June 14, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017/1 "2023-06-14T13:15:34Z")

</div>

Hey,

I am using a gif in a on one of my screens, which I am opening with swapWindow() through a gateway script. Whenever I do so, the ImageAnimator-Thread is started like 3 times, which isnt a big deal itself, but sometimes, when I am swapping to another window, it doesnt close properly, so if there are screens, that are heavily used, the slow down after a few hours, being nearly unresponsive with delay times up to 30s.  
When I check the Thread-Viewer i see sometimes like 30+ instances of the ImageAnimator.  
The Memory usage goes up from 250MB (after start of the vision client) to up to 2500MB (alternating between 2300 and 2800 within seconds).

what can I do (except removing the GIF and restarting the Vision Client) to handle this issue?

I am using Ignition 8.1 and the Vision Client.

Kind regards in advance

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 14, 2023, 1:55pm UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017/2 "2023-06-14T13:55:09Z")

</div>

> [@Sebastian\_Braun](#):
>
> with swapWindow() through a gateway script

How is this possible? Vision GUI functions are not present in gateway scope.

Please share your code so we understand what you are really doing.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 14, 2023, 4:28pm UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017/3 "2023-06-14T16:28:57Z")

</div>

Also, what's your proof that ImageAnimator threads are the actual source of a memory leak?  
Thread leaks != memory leaks. They certainly _can_ be related, but there's no 1:1 correlation.

You should probably take this to support to get proper analysis.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Braun](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sebastian\_Braun](https://forum.inductiveautomation.com/u/Sebastian_Braun)\
**Post date:** [June 15, 2023, 7:36am UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017/4 "2023-06-15T07:36:03Z")

</div>

i am actually sorry. i am doing this through a tag change script in the client events.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Braun](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sebastian\_Braun](https://forum.inductiveautomation.com/u/Sebastian_Braun)\
**Post date:** [June 15, 2023, 7:37am UTC](https://forum.inductiveautomation.com/t/image-animator-excessively-loading/75017/5 "2023-06-15T07:37:58Z")

</div>

thanks, there is no actual proof for now. I was just assuming, when I saw the 40 imageAnimator threads in the ThreadViewer.  
Thanks, will get in contact with the support.
