08-21-2008 03:49 PM
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
08-22-2008 12:08 PM
08-22-2008 05:59 PM
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
08-25-2008 05:36 PM
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!
08-26-2008 03:59 PM
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
08-26-2008 05:12 PM
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....
08-26-2008 07:47 PM
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.
08-26-2008 09:29 PM
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
08-26-2008 10:29 PM