Non-responsive UI thread detected. Stack saved at ... But I couldn't find where exactly

Hello,

I have developped a vision application that visualises production data using multiple named queries. The application works so fine, except that sometimes it freezes (not responding) for a couple of seconds.

In the diagnostic I found this entry many times : "Non-responsive UI thread detected. Stack saved at ..."

When I open the stack, I couldn't really identify where the issue exactly is .. if anyone can help.

Attached is an example of the saved stack.

NonResponsiveEdt-2026-06-19_100328.json (50.0 KB)

The very first thread in that dump is running a named query from a custom component method (updateDailyTrefilage). Which is running from a property change event. That event runs in the foreground thread, and any delays will freeze the UI.

Run your named queries from named query bindings.

If you absolutely have to use scripts, learn to use system.util.invokeAsynchronous safely.