11-28-2007 12:09 PM
11-29-2007 05:54 PM
Hey Sima,
Thank you for contacting National Instruments. I was able to replicate this issue here are on our end. I did some further testing, and it appears this error does not occur when using LabVIEW 8.2.1. I was unable to find a Corrective Action Request, so we may have an undocumented bug here. I will do some more work on this end, and report back what I find out.
Regards,
Kevin H
11-29-2007 10:38 PM
I have to admit that I am a newbie with Labview, but I
would like to offer my little experience in a related issue.
I am currently helping my colleague to debug a memory leak
problem with a desktop ETS application in Labview 8.5. There are approx. 200
network published shared variable in the project and we know that we are stretching
the share variable engine. Our main VI contains several time loops that are updated
between 4 and 10ms. We get some shared
variable related warnings (-1950679034, -1950679035…) occasionally. I would say we get a warning approximately once
every 2 minutes.
If I don't clear those warnings, our target program takes up approximately 200kB of memory/sec based on the RT System Manager.
After some code blockings and isolations, I realized that the majority of the leak occurs when I pass a warning into the error in input of the shared variable read / write block. If I clear the warnings at the beginning of the Timed loop, the memory leaks drops to approx 2K/minute.I am still at a very preliminary stage on debugging my program, and I don't know if there is any other cause for the memory leaks. My observation so far suggests that the leak get worst if a warning / error is generated, or if a warning is passed into the shared variable read/write block.
Simba,
I will try your project as soon as I finish testing my code. Since there are two unsynchronized parallel loops in the vi, have you monitor if the shared variable calls generate any warning?
I am also looking forward for a resolution to that issue. We have spent a couple weeks to stabilize our code.
11-30-2007 10:29 AM
11-30-2007 04:18 PM
11-30-2007 05:07 PM
12-01-2007 12:48 PM
Sima wrote; " local NI rep said there might be a patch/fix for this soon."
Please keep up updated.
Thanks!
Ben
12-13-2007 12:23 PM
12-13-2007 01:35 PM
05-04-2009 11:59 AM - edited 05-04-2009 12:03 PM
Here's an update just to tie this up. The bad behavior was introduced with LabVIEW 8.5. A fix went into LabVIEW/LabVIEW RT 8.5.1 to correct the issue. The memory leak only happened when using network variables with the string datatype.
~cheers,
Darin G
LabVIEW R&D - Variables, Group Manager