LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: LabVIEW hard crash when using auto-indexing For Loops with CLFN configured to Adapt to Type

There appears to be a serious issue with how Call Library Function Nodes interact with auto-indexing tunnels in For Loops when at least one parameter in the CLFN is set to AdaptToType. When you save a VI configured in this way, LabVIEW does a hard crash with a memory exception. If there's not already a CAR associated with this behavior, I'd like for one to be filed and the CAR number posted here. I didn't see this reported anywhere else after a cursory search, but maybe I'm wrong.

 

In the attached example I just pulled a random function from the user32.dll and created an arbitrary parameter in order to demonstrate the behavior. I am very much aware the parameter is invalid, but the same behavior occurs when using a properly configured parameter which matches the .dll being called (for example, we encountered this while using the LV RTI DDS toolkit). I'm presenting it this way in the example so no additional toolkits need to be installed to reproduce.

 

LabVIEW crash error: DAbort 0x24D61F21 in LVClusterInterface.cpp

 

Windows 7 64-bit
LabVIEW 2015

 

Capture2.PNG

 

 

Capture.PNG

 

 

0 Kudos
Message 1 of 6
(4,158 Views)

What does the DLL function do with the cluster it receives?

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(4,131 Views)

In the example, nothing.  In the DDS toolkit, it creates a topic with the provided data type.  However, this is all tangential to the issue at hand, which I guess I probably should have drawn more attention to:  the crash happens when you Save the VI.  Running it is not required.

Message 3 of 6
(4,123 Views)

Really strange, I couldn't find any related CARs so I'll make one when I get in tomorrow. The exception seemed to be specifically calling out clusters so I tried some stuff on my own and found that it will only crash if you are auto-indexing an array of clusters. If you are just indexing an array of strings or numerics LabVIEW will save but once you add a cluster LabVIEW will crash.

 

Good catch! Thank you for posting the workaound that you were able to find in the original post as well

Matt J | National Instruments | CLA
Message 4 of 6
(4,084 Views)

Thanks, Matt.  Glad to know it's at least limited to clusters, too.

0 Kudos
Message 5 of 6
(4,032 Views)

CAR 578947: Saving VI With Auto-Indexed Cluster Connected to CLFN Configured as Adapt to Type Crashes With DAbort 0x24D61F21

 

Coming up with a name is the hardest part of this process.

Matt J | National Instruments | CLA
0 Kudos
Message 6 of 6
(3,993 Views)