# Client swap windows freezing

**URL:** <https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793>\
**Category:** General Discussion\
**Tags:** vision\
**Created:** [October 20, 2023, 8:58pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793 "2023-10-20T20:58:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 20, 2023, 8:58pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/1 "2023-10-20T20:58:58Z")

</div>

I have a project that runs on a nuc its setup to swap between 2 windows and it will work for a while then it freezes on 1 screen and have to restart the nuc to get it going again.

---

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 20, 2023, 9:00pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/2 "2023-10-20T21:00:00Z")

</div>

![Capture4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/5/b5d36a5f14b1cbf720ae738c1fe0ca2bbac6c661.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 20, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/3 "2023-10-20T21:01:07Z")

</div>

Please tag the question as Vision if you want to attract the Vision guys.

---

<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:** [October 23, 2023, 3:08pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/4 "2023-10-23T15:08:29Z")

</div>

There's nothing obviously wrong with that script or setup. I've done virtually the same thing for ceiling-mounted Vision-based dashboards.

There's almost certainly something else wrong. Client freeze-ups in Vision are almost always caused by abuse of the foreground UI thread with inappropriate scripts, particularly in runScript bindings and propertyChange events. You should search this forum for related topics.

---

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 23, 2023, 4:15pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/5 "2023-10-23T16:15:44Z")

</div>

```auto
10:25:46.313 [Thread-2] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Skipping local challenge - directory doesn't exist.
10:25:46.319 [Thread-2] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Updated login state. Logged in? true, Username: TTMA, Roles: [], Security Zones: null
Creating frame. extendedState=6, bounds=java.awt.Rectangle[x=-1920,y=0,width=1920,height=1080]
10:25:46.351 [Thread-5] INFO ignition.TagManager.Gateway - Starting up polling tag manager, polling rate: 250 ms
10:25:46.667 [Thread-5] INFO com.inductiveautomation.reporting.client.ReportingClientHook - Starting up Reporting Module. Mode: Activated
10:25:46.832 [AWT-EventQueue-0] INFO vision.App - Starting Up...
10:25:47.261 [AWT-EventQueue-0] INFO ignition.TagManager.Gateway - Starting tag polling.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at com.inductiveautomation.factorypmi.application.script.builtin.WindowUtilities.doGUIAction(WindowUtilities.java:797)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.swapWindow(NavUtilities.java:205)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.swapTo(NavUtilities.java:114)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilities.swapTo(NavUtilities.java:101)
	at com.inductiveautomation.factorypmi.application.script.builtin.NavUtilitiesDispatcher.swapTo(NavUtilitiesDispatcher.java:67)
	at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.python.core.PyReflectedFunction. __call__ (PyReflectedFunction.java:186)
	at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. __call__ (ScriptManager.java:431)
	at org.python.core.PyObject. __call__ (PyObject.java:387)
	at org.python.core.PyObject. __call__ (PyObject.java:391)
	at org.python.pycode._pyx0.f$0(<TimerScript:Welding1_RTM_Office/Screen Change @15,000ms >:6)
	at org.python.pycode._pyx0.call_function(<TimerScript:Welding1_RTM_Office/Screen Change @15,000ms >)
	at org.python.core.PyTableCode.call(PyTableCode.java:165)
	at org.python.core.PyCode.call(PyCode.java:18)
	at org.python.core.Py.runCode(Py.java:1275)
	at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:636)
	at com.inductiveautomation.ignition.common.script.ScriptManager.runCode(ScriptManager.java:603)
	at com.inductiveautomation.ignition.common.script.TimerScriptTask.run(TimerScriptTask.java:88)
	at java.util.TimerThread.mainLoop(Unknown Source)
	at java.util.TimerThread.run(Unknown Source)
Exception in thread "image-cache-maint" java.lang.OutOfMemoryError: Java heap space
Exception in thread "client-script-shared-timer-[Welding1_RTM_Office]" java.lang.OutOfMemoryError: Java heap space
10:59:57.619 [TagManager-1] ERROR ignition.TagManager.Gateway - ###Fatal-Uncaught exception during polling.
java.lang.OutOfMemoryError: Java heap space
11:00:01.579 [TagManager-2] ERROR ignition.TagManager.Gateway - ###Fatal-Uncaught exception during polling.
java.lang.OutOfMemoryError: Java heap space
11:00:01.839 [TagManager-3] ERROR ignition.TagManager.Gateway - ###Fatal-Uncaught exception during polling.
java.lang.OutOfMemoryError: Java heap space
11:14:05.296 [TagManager-2] ERROR ignition.TagManager.Gateway - ###Fatal-Uncaught exception during polling.
java.lang.OutOfMemoryError: Java heap space
11:14:05.578 [TagManager-2] ERROR ignition.TagManager.Gateway - ###Fatal-Uncaught exception during polling.
java.lang.OutOfMemoryError: Java heap space

```

Here is a copy of the console when it freezes

---

<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:** [October 23, 2023, 4:19pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/6 "2023-10-23T16:19:00Z")

</div>

> [@Brad\_Mills](#):
>
> `java.lang.OutOfMemoryError: Java heap space`

Well, that's a doozy. Something in your application is leaking memory in the Vision client. You probably will need IA support to help you track that down.

---

<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:** [October 23, 2023, 4:29pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/7 "2023-10-23T16:29:27Z")

</div>

You're running some Ignition 7.X version. You should make sure it's at least the latest available 7.9.X release, in case this is a known client memory leak we've already fixed.

You should also really strongly consider the upgrade to 8.1, since 7.9 is now unsupported.

---

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 23, 2023, 4:33pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/8 "2023-10-23T16:33:05Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/d/fd8ed0dfad1eaffc11ac85b2881cecbfb084e3c8.png)

This is the version we are using.

---

<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:** [October 23, 2023, 4:36pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/9 "2023-10-23T16:36:55Z")

</div>

Well, then support is your next best bet. 7.9.21 is out, but doesn't have any memory leak related bugfixes. Support may be able to help you identify what's going wrong with your project.

---

<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:** [October 23, 2023, 5:26pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/10 "2023-10-23T17:26:27Z")

</div>

Try giving your client more memory to play with (in the project settings) to see if it runs longer before dying. Or runs indefinitely.

---

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 23, 2023, 6:11pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/11 "2023-10-23T18:11:46Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/6/a695bf829a19dd4741e8c19fa3c8cd7989021aa7.png)

---

<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:** [October 23, 2023, 6:13pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/12 "2023-10-23T18:13:40Z")

</div>

Not the designer. The actual client(s). It's in the project properties once you open the particular project in the designer.

---

<div class="post-metadata">

**Author:** ![Brad\_Mills](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Brad\_Mills](https://forum.inductiveautomation.com/u/Brad_Mills)\
**Post date:** [October 23, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/13 "2023-10-23T18:16:15Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/9/1952b058511eb9c2450b9916441ef5e543cd490c.png)  
One of these?

---

<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:** [October 23, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/client-swap-windows-freezing/80793/14 "2023-10-23T18:16:44Z")

</div>

Yeah, `Client > Launching`.

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