Client swap windows freezing

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.

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

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.

2 Likes
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

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.

3 Likes

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.

image

This is the version we are using.

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.

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

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

1 Like


One of these?

Yeah, Client > Launching.