LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: cluster in growing array

Couldn't find this bug anywhere, so I just post it..
 
Tested in 8.2 and 8.5 (, both with FPGA module installed, but I don't think that makes a difference).
 
When you click in a control in a cluster inside an array (say a numeric), LabVIEW crashes when a new element is added to the array.
 
For instance, in a while loop add a numeric ("i") to a cluster. Add this cluster to an array in a shift register. Create an indicator of the array. Put a 500 ms wait in the loop. Run the VI, and when the first element appears, click in the indicator. As soon a new element is added LabVIEW crashes.
 
I reproduced this with a cluster with several elements, and single elements. I tried timestamps and simple numerics, buth crashed.
 
Regards,
 
Wiebe.
 
 
Error in 8.5 is: IndArr.cpp, line 3013 (not sure if it's IndArr or lndArr, capital i or small l).
 
Error in 8.2 is: transact.cpp, line 323.
Message 1 of 12
(4,275 Views)
I couldn't reproduce your bug, but that's probably because you left out a few details in terms of the VI contruction:
  • Is the shift register initialized?
  • Are you using the Bundle function to "add a numeric to a cluster"?
  • You said "click in the indicator". What do you mean by this? Are you saying click on the terminal on the block diagram, or on the front panel, and which part are you clicking?
  • Does the crash happen if you don't click on the indicator.
If you can provide a VI that shows this error it would help.
0 Kudos
Message 2 of 12
(4,263 Views)
Hi Wiebe,
 
YES!! I followed your steps and LabVIEW crashed!  It reported Fatal Error in line 1356 of transact.cpp.
Only surprising thing is I am using LV8.5 and the message is different from what you see! I tried it twice and it seems to be repeatable.
 
(I forgot to save the program the first time before I tried to click inside the indicator Smiley Surprised and guess what happened! Luckily LabVIEW successfully recovered it.. Smiley Wink)
Message 3 of 12
(4,262 Views)

Here is the code..

Vikas

0 Kudos
Message 4 of 12
(4,259 Views)
Can you repost this VI as 8.2?
0 Kudos
Message 5 of 12
(4,257 Views)

Hi smercurio_fc, here is the code in 8.2..

Vikas

0 Kudos
Message 6 of 12
(4,253 Views)
Note that if the array isn't growing, but is updating, you get very ugly
selection artifacts.

If you select text in one element, all the other elements are showing the
same selection of text! I remember that in LV 5 or 6, this was the behaviour
of all arrays (even without clusters). Guess they forgot about clusters!

As for a workaround:
Simply disable the cluster elements. Sometimes it does make sence to allow
users to copy/paste the data, so it's not a generic work around, but will
work in most cases.

Regards,

Wiebe.


0 Kudos
Message 7 of 12
(4,233 Views)
Thanks for posting the VI, saves me some time... I was going to post it
tomorrow, depending on the response.

The error might depend on the data type. I tried a numeric in 8.5 and a
timestamp control in 8.2.

Regards,

Wiebe.


0 Kudos
Message 8 of 12
(4,233 Views)

> I couldn't reproduce your bug, but that's probably because you left out a
few details in terms of the VI contruction: - Is the shift register
initialized?
Doesn't matter. The crash happens even if there are only one or two elements
in the array.

> - Are you using the Bundle function to "add a numeric to a cluster"?
Yes, although Named Bundle does the same.

> - You said "click in the indicator". What do you mean by this? Are you
saying click on the terminal on the block diagram, or on the front panel,
and which part are you clicking?
The indicator on the front panel. For instance, try to select some text that
is displayed (although you don't have to select, clicking in it is enough).

> - Does the crash happen if you don't click on the indicator.
No.

> If you can provide a VI that shows this error it would help.
Vikas was kind enough to do that.




0 Kudos
Message 9 of 12
(4,233 Views)
Just got the 8.2 version and can confirm the behavior.
0 Kudos
Message 10 of 12
(4,230 Views)