# Vision app opening, closing, user login, logout slow

**URL:** <https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [February 1, 2025, 9:57am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706 "2025-02-01T09:57:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [February 1, 2025, 9:57am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/1 "2025-02-01T09:57:54Z")

</div>

Can somebody look on this NonResponsiveEdt file and tell me, what the hell is going on?  
[NonResponsiveEdt-2025-02-01\_102647.json](https://forum.inductiveautomation.com/uploads/short-url/zJS6ERtN26nkRviPSXXPXO4V3Le.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.

 ![Screenshot_30](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/8/e89644d2bd4dc02ac8397d1b4fd0d3427273a0c2.png)

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.

 ![Screenshot_29](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/ad0f787acfc7dcec1676d6e13d9d39caa6e3c383.png)

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...?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [February 1, 2025, 12:49pm UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/2 "2025-02-01T12:49:17Z")

</div>

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

---

<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:** [February 1, 2025, 1:43pm UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/3 "2025-02-01T13:43:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 1, 2025, 2:33pm UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/4 "2025-02-01T14:33:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 1, 2025, 2:43pm UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/5 "2025-02-01T14:43:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [February 2, 2025, 2:20am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/6 "2025-02-02T02:20:36Z")

</div>

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**...?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 2, 2025, 2:34am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/7 "2025-02-02T02:34:47Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [February 2, 2025, 3:31am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/8 "2025-02-02T03:31:29Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 2, 2025, 3:45am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/9 "2025-02-02T03:45:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [February 2, 2025, 3:56am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/10 "2025-02-02T03:56:19Z")

</div>

I've set these:

 ![window_debug](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/826ba5b1966442c977d2b65833d869f93b4aae6a.png)  
 ![components_template_debug](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d8c61caaa653c9b3cdbc9ece8d8c9455456cc819.png)

And here are the logs:  
[window\_smaller\_3second\_delay.txt](https://forum.inductiveautomation.com/uploads/short-url/9f3IG56R27OX0zL4r3g9OXhYGOv.txt) (97.6 KB)  
[window\_bigger\_NO\_delay.txt](https://forum.inductiveautomation.com/uploads/short-url/bthZnNn2G82yie0ulVe0KUHY2Nb.txt) (96.1 KB)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 2, 2025, 4:19am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/11 "2025-02-02T04:19:09Z")

</div>

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

```python
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 😕

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [February 2, 2025, 4:24am UTC](https://forum.inductiveautomation.com/t/vision-app-opening-closing-user-login-logout-slow/101706/12 "2025-02-02T04:24:19Z")

</div>

Yup, I saw that too...
