Vision app opening, closing, user login, logout slow

Can somebody look on this NonResponsiveEdt file and tell me, what the hell is going on?
NonResponsiveEdt-2025-02-01_102647.json (49.7 KB)

This is on Ignition 8.1.45.
I have a test Vision app with one main screen, where I have 53 templates for conveyors with a few property bindings.

Every time when I run Vision client, the NonResponsiveEdt file is created.
Then also every time when I login or logout in the client, the NonResponsiveEdt file is created. When I login/logout it takes around 4-5 seconds for client to refresh.

Also when I close/exit Vision client, it takes around 4-5 seconds before it closes and the NonResponsiveEdt file is created.

I've looked at the files, but... I can't make anything from them...

If remove the templates from the screen then everything is OK (fast).

The templates are not complicated:
5 indirect tag bindings and 2 expression bindings for colors. There are no scripts involved and no animations.
Only color changes.

Obviously there must be something 'wrong' with the templates, but I can't figure it out what.

I've done/created templates in the designer with rectangles and there's no imported SVGs involved...

And I can't believe that 53 templates with 7 bindings = 371 bindings is to much for the Vision client...?

Looks like there is a script just based on the photo you uploaded.

Your script module login_logout line 39 is trying to do a switchUser and the window it is trying to open is unusually complex, it seems.

Might need you to share the window/project with support so it can be opened, measured, inspected, etc...

There are loggers called Window, Components.Template, and Components.TemplateHolder that may have interesting output on DEBUG level.

You would have to set these in the Client or Designer, not the Gateway.

1 Like

Yesterday I spent entire afternoon, trying to figure this out and think I found it... but still I don't understand, why this is happening:

I have my main window the size of 1920x920px.
Then I have one docked window at the top, size 1920x60px
and one docked window at the bottom, size 1920x100px.
Together the combined height is 1080px.
This is because the Vison client will run Fullscreen on the PC with resolution 1920x1080px.

But because I'm using Ignition gateway without the license, I have a 28px height green bar at the bottom, reminding me, that Ignition is in Trial mode.

Because of that, my main window is not 1920x920 size, but 1902x851, if I run it in Window mode, and 1920x892 if in Fullscreen mode.
So everything on the main window is scaled down a little.

When I run in Window mode and try to login/logout, it takes about 3 seconds (you can see it by the progress bar in the upper right corner in the video), before actual script for login/logout is being executed and most of the times the NonResponsiveEdt file is created.

But, if I resize the window height with mouse, so that my main window is 920px height or more, then the login/logout script is executed immediately (no delay and no NonResponsiveEdt file).

Here is the video to demonstrate:

So, now I know what's happening, but still don't understand why...?

Does it still happen if you reverse the order and log in with the larger window first?

I think windows and templates get cached, so that could explain the first one being slow but subsequent loads not being as slow...

Yes, it does.

If I resize the window height first to be the right size and then login, it execute immediately.
Then I resize the window height to be smaller than original, and then login, it takes about 3 seconds to execute.
It makes no difference if I set the Cache policy property on the window to Auto, Never or Always.

The 3s delay is also there if I quit the client, either with 'X' on the window (top right) or with the system.util.exit() script, if the window is smaller...

Set those loggers I mentioned and post the logs here. Otherwise be ready to give support an export so somebody can take a look :man_shrugging:

I've set these:


And here are the logs:
window_smaller_3second_delay.txt (97.6 KB)
window_bigger_NO_delay.txt (96.1 KB)

Dang, looks like the 3s delay might be here:

04:50:29.477 [AWT-EventQueue-0] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager -- Updated login state. Logged in? true, Username: operator, Roles: [Operator, User], Security Zones: null
04:50:32.112 [AWT-EventQueue-0] DEBUG Vision.Components.TemplateHolder -- [name=SectionHeader,template=SectionHeader] Installing template "SectionHeader"

Not sure what's happening in between :confused:

Yup, I saw that too...