# Ignition screen randomly freezing - memory?

**URL:** <https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337>\
**Category:** Ignition\
**Created:** [December 20, 2021, 11:58pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337 "2021-12-20T23:58:52Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 20, 2021, 11:58pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/1 "2021-12-20T23:58:52Z")

</div>

Here is a pic of a freeze

 ![IMG_5657](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/5/c5cc0bd8377fb7164c32c375818e2f0561746e65.jpeg)

here is a pic of memory in the console within 30 minutes.

 ![memory](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/c/5cb59393be2068115f2285f067f3228a7a038fe2.png)

is it possible my memory is set to low and im maxing out causing freezes?

anyone seen igniton screens do this?

its happened to 2 different HMIs, happens at random usually early morning, and within the last hour.

Thank you

---

<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:** [December 21, 2021, 12:23am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/2 "2021-12-21T00:23:11Z")

</div>

Almost every time I’ve investigated such problems, they turn out to be programmer error. Specifically, doing a something in a foreground script that makes a gateway round trip. Anything that perturbs that round trip changes an unnoticeable milliseconds-level pause into a very noticeable multiple-seconds pause.

Audit your event scripts and runScript bindings for `system.tag.*`, `system.db.*`, and `system.alarm.*` calls. The only exceptions should be button actionPerformed events, since the user expects the system to go _do something_ at that point.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 12:29am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/3 "2021-12-21T00:29:07Z")

</div>

> [@pturmel](#):
>
> Audit your event scripts and runScript bindings for `system.tag.*` , `system.db.*` , and `system.alarm.*` calls. The only exceptions should be button actionPerformed events, since the user expects the system to go _do something_ at that point.

@pturmel could you point me in the direction of how to audit those things?

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 12:34am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/4 "2021-12-21T00:34:05Z")

</div>

This only happens on two HMIs running PIs mirroing off a VM.

and the only scripting added recently by my self you have seen on my other post. And I don’t think they relate to those 3 things. Maybe they increase the prior issue? I really don’t know at this point.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 12:36am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/5 "2021-12-21T00:36:32Z")

</div>

IT says they see the session disconnecting. But we are not sure why. And if it was the recently programmed code, why not on the other 6 clients?

---

<div class="post-metadata">

**Author:** ![jay](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jay](https://forum.inductiveautomation.com/u/jay)\
**Post date:** [December 21, 2021, 3:04am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/6 "2021-12-21T03:04:24Z")

</div>

Try stopping the client and deleting the client’s cache. I have seen this happen too. Sometimes the files in the cache get corrupted and cause the client to get very slow and use a lot of memory.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [December 21, 2021, 6:36am UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/7 "2021-12-21T06:36:50Z")

</div>

No, when the session, that for vision is actually a client, gets disconnected, a notorious message appears in the disconnected context.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [December 21, 2021, 1:18pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/8 "2021-12-21T13:18:44Z")

</div>

Do a control+F and search within all windows/templates (make sure everything is selected to be sure) for `runScript` and then within those, look to see if the functions that are being called call `system.tag\db\alarm`.

If you find nothing, start searching for `system.tag\db\alarm` one by one - it’s possible they exist in some property change script that is perhaps taking much longer than you think, or worse getting stuck in some property change infinite loop.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 1:53pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/9 "2021-12-21T13:53:48Z")

</div>

@jay i will look into trying thay

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 1:54pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/10 "2021-12-21T13:54:23Z")

</div>

@jespinmartin1 what is this notorious text?

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [December 21, 2021, 2:18pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/11 "2021-12-21T14:18:26Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/9864111aa25b67a1eb9634ce71ce586e4007ec58.png)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [December 21, 2021, 2:52pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/12 "2021-12-21T14:52:58Z")

</div>

> [@pturmel](#):
>
> Specifically, doing a something in a foreground script that makes a gateway round trip

If a script uses multiple `runNamedQuery` calls, would the round trips be mitigated by calling the same script through a gateway message handler?

---

<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:** [December 21, 2021, 3:07pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/13 "2021-12-21T15:07:52Z")

</div>

> [@dkhayes117](#):
>
> would the round trips be mitigated by calling the same script through a gateway message handler?

~~No.~~ Maybe. If using `.sendRequest()`, no. If using `.sendMessage()` to gateway scope, and listening with a client message handler for the response, yes.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 3:25pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/14 "2021-12-21T15:25:17Z")

</div>

Also prior i was getting freezes like in this picture below, which happen less frequently.

 ![choppy](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d8be468e2095bb0d91de5f9489d0f865c5e32f4b.jpeg)

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 3:34pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/15 "2021-12-21T15:34:17Z")

</div>

When I search via ctrl + F the the desinger freezes, doesn’t search and i have to end it via the task manager.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 3:41pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/16 "2021-12-21T15:41:16Z")

</div>

I also see a faild backup around midnight then everything restarting.

```auto
12:52:51 AM	ScheduledBackupManager	Scheduled backups config error: unable to create directory "\\abcdefg\files\BKUPs\Ignition".

```

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [December 21, 2021, 3:48pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/17 "2021-12-21T15:48:00Z")

</div>

I don’t think this would cause a client to freeze.

Regarding Control+F, try opening the problematic window(s) one at a time, and looking manually for runScripts, or property change events that call `system.tag\db\alarm`.

If you’re unable to even look through the designer to find what is wrong though due to it freezing up, then it’s probably time to call Ignition.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [December 21, 2021, 4:00pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/18 "2021-12-21T16:00:36Z")

</div>

@pturmel I have been looking and cant find any scripts like that. everything is actionperformed or indirect tag etc…

any other ideas?

---

<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:** [December 21, 2021, 4:06pm UTC](https://forum.inductiveautomation.com/t/ignition-screen-randomly-freezing-memory/54337/19 "2021-12-21T16:06:15Z")

</div>

I think you should call support.
