LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory leak associatied with dynamically changing Plot colors

hello

 

i have an ultrasound application where 64 channels of time series are displayed in the same Graph.

using small bit of code, the channels will turn red if they are clipping; otherwise they are white.

 

i have pruned my app down to the simplest functionality and identified the exact Case structure that has the

memory leak.  in the attached VI, random data for 64 channels is displayed in a Graph, initially using the rainbow

color scheme.  Using Windows Task manager, it looks like this VI will stabilize in memory usage.

 

 If the Color Code? button is enabled, then the clipping indicator is turned on, and the memory usage reported by

Taskmanager starts to increase. A day or so later, the app will crash when all system memory is used up.

 

Any care to take a peak at this Case structure, which I have labelled on the block diagram?

Is this a LabView 8.5 bug, or have I done something stupid?

 

Thanks

mlewis

dallas tx

0 Kudos
Message 1 of 9
(3,090 Views)

Hi MLewis,

 

I ran your program and wasn't able to notice any memory leaks. Try using the VI Profile Window. This knowledgebase has instructions on how to use it. There is also a Devzone on troubleshooting memory leaks.

 

Good Luck!

Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 2 of 9
(3,071 Views)

Thanks for your reply.....

Labview Profiler does not appear to indicate a memory leak.

 

But the Windows Performance Monitor, if pointed to LabVIEW.exe, does show a memory leak as soon

as Color Code? is enabled.....

I ran the VI for a couple of minutes to make sure it was stablized, then when the red bar in Performance was half way through a cycle I enabled Color Code?  You can clearly see the small memory leak starting to creep up.

 

What version of LV did you run this under?

 

mlewis

 

Download All
0 Kudos
Message 3 of 9
(3,057 Views)

Hi Mlewis,

 

I ran this on LabVIEW 8.6. I ran your VI multiple times and checked the task manager for a memory leak. There was never a noticeable one. Are you on the same version?

 

Thanks!

Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 4 of 9
(3,011 Views)

 

 

this VI definitely has a memory leak related to programmatically changing Plot Colors.

i confirmed it on another system (completely different configuration, but also running 8.5)

using the Performance controllet.

 

I am going to upgrade that system to 8.5.1 and see if problem goes away. if that doesn't work, I will

move on to 8.6.

 

mlewis

 

0 Kudos
Message 5 of 9
(2,986 Views)

 

whatever this memory leak was, it was fixed going from 8.5 to 8.5.1

 

thanks for pointing out the Performance tool for memory leak troubleshooting....

 

 

0 Kudos
Message 6 of 9
(2,981 Views)

It could be (fixed) due to the following bugfixe in the 8.5.1 release notes:

 

4F7DAD41    Use of Graph Property: Active Plot leaks memory

 

Perhaps what you did triggers the memory leak to begin.

0 Kudos
Message 7 of 9
(2,968 Views)

kcoggins wrote:

It could be (fixed) due to the following bugfixe in the 8.5.1 release notes:

 

4F7DAD41    Use of Graph Property: Active Plot leaks memory

 

Perhaps what you did triggers the memory leak to begin.


yep, that would be the problem.

you have to set each plot Active to change its color....

 

glad it was solved

 

 

0 Kudos
Message 8 of 9
(2,960 Views)
Kudos to the NI development team for well documented release notes!
0 Kudos
Message 9 of 9
(2,955 Views)