11-10-2023 05:00 AM
In the example below, the sequence CrashMe takes a string as input parameter.
A call is made to it with EmptyArray as parameter (an actual empty array) to demonstrate the problem (see also attached video)
When moving the mouse over the parameter value EmptyArray[0] the Step Settings Pane crashes! (see second screenshot)
Step Settings Pane crashes as below:
Trying to change the value now becomes complicated, as the pane crashes when trying to change the value 😞
- Renaming the local variable to Locals.EmptyArray_ makes the value "invalid" and allow changing the parameter value again.
- Using #novalidation(Locals.EmptyArray[0]) prevents it from crashing.
11-10-2023 09:02 AM
Thank you Magnus for reporting the problem. It is being tracked with this id 2577499.
The problem happens when the Step Settings panel tries to evaluate the expression specified for the parameter. It is not gracefully handling accessing elements of an empty array. The workaround as you have found is to use the "#NoValidation()" function.
Regards,
Jose Hernandez
11-23-2023 04:25 AM
Thanks Jose,
we found an additional way to get around the value-preview-crash situation - however, it is a bit silly: Holding CTRL or SHIFT while navigating the mouse cursor over a Parameter Value in the Step Pane prevents the TestStand 2023 value preview feature from being triggered. While holding SHIFT/CTRL it is also possible to click and edit the value / expression.
A bugfix is planned for next release in Q2.
06-10-2024 07:53 AM
Hi Jose, any updates on 2577499?
I hope it will be included in the next release of TestStand, which seems to be scheduled to 2024Q4 ?
BR
Magnus
06-16-2024 04:51 PM
Hi,
Yes, this issue has been fixed in the next release of TS scheduled to release later this year.
Regards,
Anand Jain
NI