02-10-2017 08:13 AM
I have a strange bug that we've observed maybe only 4 times ever (out of thousands of hours). I have a table control on my main panel that has maybe a dozen columns. Once UUT are testing, this control is updated once every 4 seconds in a variety of ways.
When the bug happens, the table is "frozen" in one position, not appearing to update. Yet with inspection, user can see that all UUT are still actually testing, cycling, etc. Other panels are responsive. Other controls are responsive. Panel itself is responsive.
If I click on my Login menu item, which forces a massive restructuring of the above table control, it then magically returns to working order. In other words, I don't have to shut down the app to clear the bug.
Ideas?
02-13-2017 12:14 PM
ElectroLund,
Thanks for posting! This is a curious situation and intermittent problems are always more difficult to diagnose. A few things to get started would be:
Would you be possible to post screenshots or code?
Additionally, can you set breakpoints beforehand or skip tasks and if so does the same behavior repeat?
How long does each test run? For example is it 4 times out of thousands of test or does every test take countless hours?
02-13-2017 03:25 PM
Thanks for the reply!
I observed this bug again just recently and took more careful notice of a few things.
Unfortunately, it's not really easy for me to get this in debug mode, as this is a deployed application.
I don't have a problem with posting code to you privately, though it is quite large.
The test times are only seconds. The scheme works like this:
I'm wondering if there's some sort of graphic starvation happening here.
02-14-2017 04:32 PM
ElectroLund,
Thanks for the update! The few things that concern me is the:
- Use of the Customer UI
- Additionally, different updating rates of the device and how it's being updated
- Whether threads are being blocked
- Asynchronous Timer causing issues.
I think the best way to narrow down the issue is work with an Applications Engineer by creating a Service Request at ni.com/support who could narrow down the codeset and try to best resolve the issue.
If you'd like, you could make the Service Request on the website or I could create one for you and have an engineer follow up.
Feel free to private message me with whichever option you prefer!