06-22-2016 02:02 PM - edited 06-22-2016 02:02 PM
TL;DR -- don't use classes with mathscript nodes while using autopopulating foldres. LabVIEW hangs.
Attached is a zip file that reproduces this bug. If you have autopopulating folders and a method in a class with a mathscript node on the block diagram, LabVIEW hangs. Steps to reproduce:
1) Save all work and close LabVIEW because the later steps will cause you to have to kill LabVIEW.
2) Unzip the attached files and open the project.
3) Change the folder type to autopopulating.
4) Close the project and try to reopen -- hangs
5) Open MathscriptBug.vi from disk
6) Delete the mathscript node and save
7) Reopen the project and turn autopopulating off
😎 Add the mathscript node back to the MathscriptBug.vi Block diagram
9) Save and close
10) Reopen the project and notice now that autopopulating folders are off it works again.
06-22-2016 09:05 PM
Thanks for the easy steps to reproduce. I was able to find CAR 466667 which describes this behavior. I wasn't able to try this bbut it also lists another possible workaround as embedding the code in the node directly if that's an option and works.
As a side note, you made this really easy to search for. Searching CARs for "mathscript autopopulate class" only returns this CAR.
06-23-2016 08:28 AM
@Jacobson-ni wrote:Thanks for the easy steps to reproduce. I was able to find CAR 466667 which describes this behavior. I wasn't able to try this bbut it also lists another possible workaround as embedding the code in the node directly if that's an option and works.
As a side note, you made this really easy to search for. Searching CARs for "mathscript autopopulate class" only returns this CAR.
Imagine the amount of cumulative LV developer time that has been spent over the years figuring out if something is a bug and documenting the process to reproduce could have been saved if WE had the ability to search the CAR DB.
Ben
06-23-2016 10:12 AM
@Ben wrote:
@Jacobson-ni wrote:Thanks for the easy steps to reproduce. I was able to find CAR 466667 which describes this behavior. I wasn't able to try this bbut it also lists another possible workaround as embedding the code in the node directly if that's an option and works.
As a side note, you made this really easy to search for. Searching CARs for "mathscript autopopulate class" only returns this CAR.
Imagine the amount of cumulative LV developer time that has been spent over the years figuring out if something is a bug and documenting the process to reproduce could have been saved if WE had the ability to search the CAR DB.
Ben
I don't have to imagine. It would have saved me 5 hours.