LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Bug reporting guidelines:

See here for the proper LabVIEW bug reporting procedure.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Generic LVClass probes have problems when using classes as data members
Aristos Queue
post Jul 10 2007, 07:12 PM
Post #1


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


Affects both 8.2 and 8.2.1.
There is an issue with generic probes of LVClasses. The problem arises only when a parent class uses another class as a data member and you probe a wire of a child class.

Assume 3 classes: Parent, Child and Other. Child inherits from Parent.
Parent's private data cluster contains an instance of Other.
Other's private data cluster contains a numeric.
Child's private data contains a numeric.

Set the value of Child's numeric to be 10, then probe a Child wire. The 10 will show up in Other's cluster. In this case you simply get misleading information in the probe, which is bad enough. But if Other uses a string instead of a numeric in its private data control, the 10 will be written where the address of the string is supposed to be in memory, leading to a crash (since 10 is not a valid memory address).

This issue is known and will be fixed in the next version of LabVIEW.

Addendum: I do really want to know how so many of us managed to use classes for 11 months after release before this got found. It hasn't even been reported from customers... my teammate found it randomly while working on something else. It amazes me sometimes just how long a seemingly common bug can go undetected.

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jul 10 2007, 07:12 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Yair
post Jul 10 2007, 07:37 PM
Post #2


Extwemely Active
*****

Premium Member
Posts: 1621
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:8.6 ,7.0 ,.
Israel Nothing Selected Nothing Selected


Well, I think this is a first. A LabVIEW R&D member preempting the users and reporting a bug. Congratulations, Stephen! biggrin.gif

--------------------
More than meets the eye...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post Jul 10 2007, 07:56 PM
Post #3


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3740
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


Don't forget to post the CAR# smile.gif

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Tomi Maila
post Jul 10 2007, 08:22 PM
Post #4


Drawing Tool - LVOOP example application
*****

Premium Member
Posts: 1168
Joined: 29-January 06
From: Helsinki
Member No.: 4014
Using LabVIEW Since:2004
LV:8.5.1 ,8.2.1 ,7.1.1
Finland Nothing Selected Nothing Selected My Blog


Thanks a lot for reporting this! It's very nice to see this kind of publicity politics from NI. I'd really appreciate if NI would publish the list of at least all the most severe LabVIEW bugs they are aware of... smile.gif

QUOTE (Aristos Queue @ Jul 10 2007, 10:12 PM) *
Addendum: I do really want to know how so many of us managed to use classes for 11 months after release before this got found. It hasn't even been reported from customers... my teammate found it randomly while working on something else. It amazes me sometimes just how long a seemingly common bug can go undetected.

One reason might be that when LabVIEW crashes often without obvious reason without any obvious reason and you have reported dozens of bugs within the last year, you just get tired of troubleshooting every crash and go on...

--------------------
Tomi Maila



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Gavin Burnell
post Jul 10 2007, 08:25 PM
Post #5


Very Active
***

Premium Member
Posts: 119
Joined: 21-January 06
From: Leeds, UK
Member No.: 3951
Using LabVIEW Since:1994
LV:8.5.1 ,8.6 ,8.2.1
United Kingdom uk_yorkshire Nothing Selected


QUOTE (Aristos Queue @ Jul 10 2007, 08:12 PM) *
Addendum: I do really want to know how so many of us managed to use classes for 11 months after release before this got found. It hasn't even been reported from customers... my teammate found it randomly while working on something else. It amazes me sometimes just how long a seemingly common bug can go undetected.


Ahhh, so it wasn't just me then. Actually it hadn't been a big enough problem for me to spend the time trying to work out why one of my classes always crashed when probed - I'd sort of assumed it was something to do with the class data structure, but I hadn't got as faw as working out some test cases. Good to know it'll be fixed...

--------------------
Gavin Burnell
Lecturer and EPSRC Advanced Research Fellow
School Physics and Astronomy
University of Leeds, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Jul 10 2007, 10:18 PM
Post #6


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (Gavin Burnell @ Jul 10 2007, 03:25 PM) *
Ahhh, so it wasn't just me then. Actually it hadn't been a big enough problem for me to spend the time trying to work out why one of my classes always crashed when probed - I'd sort of assumed it was something to do with the class data structure, but I hadn't got as faw as working out some test cases. Good to know it'll be fixed...


In my best Mrs. Cake voice (from Terry Pratchett novels):
Ah, lad, ye gots to report ye crash or how canaye fix yon bug?! rolleyes.gif

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
jaegen
post Jul 11 2007, 04:23 PM
Post #7


Very Active
***

Member
Posts: 129
Joined: 29-October 04
From: Vancouver, B.C.
Member No.: 932
Using LabVIEW Since:1998
LV:8.5.1 ,7.1.1 ,.
Canada ca_british_columbia Nothing Selected


QUOTE (Aristos Queue @ Jul 10 2007, 03:18 PM) *
In my best Mrs. Cake voice (from Terry Pratchett novels):
Ah, lad, ye gots to report ye crash or how canaye fix yon bug?! rolleyes.gif


Perhaps NI needs to provide a bug reproducibility toolkit wink.gif

Honestly, that's the only thing that ever stops me from reporting a bug. When you're working on a project with 2000 VIs, and the bug appears to involve dynamically registered events, timed while loops, call-by-reference, sub-panels, UI thread issues, strange MS Windows interactions, and the phase of the moon, trying to create a pared-down VI that reproduces the bug is usually much more work than finding a workaround - especially if it only appears in a built executable.

Thanks for the voluntary bug report though - I'm much, much more pleased with the disclosure than I am disappointed about the existence of a bug.

Jaegen

--------------------
"Duck was a neutral party, so he brought the ultimatum to the cows." -- Click, Clack, Moo: Cows That Type


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
TG
post Jul 11 2007, 05:42 PM
Post #8


Very Active
***

Premium Member
Posts: 171
Joined: 13-June 05
From: Hillsborough, NJ
Member No.: 2402
Using LabVIEW Since:1992
LV:8.2.1 ,7.1.1 ,.
United States Nothing Selected Nothing Selected


QUOTE (Aristos Queue @ Jul 10 2007, 07:12 PM) *
Addendum: I do really want to know how so many of us managed to use classes for 11 months after release before this got found. It hasn't even been reported from customers... my teammate found it randomly while working on something else. It amazes me sometimes just how long a seemingly common bug can go undetected.




Id be interested in who is using LabVIEW classes and for what purpose.
My exp with LVOOP so far has been guarded.

--------------------
NJG88_TG (Il2 1946)


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Aristos Queue
post Jul 11 2007, 06:42 PM
Post #9


LV R&D Envoy
*****

NI
Posts: 1226
Joined: 15-August 06
From: Austin, TX
Member No.: 5877
Using LabVIEW Since:2000
LV:8.5.1 ,. ,.
United States Nothing Selected Nothing Selected My Gallery


QUOTE (John Rouse @ Jul 11 2007, 12:42 PM) *
Id be interested in who is using LabVIEW classes and for what purpose.
My exp with LVOOP so far has been guarded.


I'll be free to talk about NI's use of it at NI Week, but not until then. All I can say is it is pretty extensive for such a new feature. Of the new features I've seen added to LabVIEW over the years, the event structure is the only one I can think of with a bigger impact on programming style of our G programmers. NI's overall adoption has been somewhat limited by the lack of support for classes under RT and the embedded targets, something I hope to remedy in the coming years.

--------------------
"A VI outside a class is a gun without a safety. Data outside a class is a target."
--- A message from LabVOOP R&D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Yair
post Jul 11 2007, 06:51 PM
Post #10


Extwemely Active
*****

Premium Member
Posts: 1621
Joined: 23-January 05
From: Here
Member No.: 1431
Using LabVIEW Since:2003
LV:8.6 ,7.0 ,.
Israel Nothing Selected Nothing Selected


QUOTE (Aristos Queue @ Jul 11 2007, 01:18 AM) *
In my best Mrs. Cake voice (from Terry Pratchett novels):
Ah, lad, ye gots to report ye crash or how canaye fix yon bug?! rolleyes.gif

We could answer with "We aten't feeling like it" or "WE DON'T WANT TO". wink.gif

--------------------
More than meets the eye...


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 22nd November 2008 - 02:31 AM