LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write frame memory leak

Solved!
Go to solution

Every time I save an avi file, it keeps getting into memory and the computer stops later.
I would appreciate it if you could tell me why this is happening and how to fix it.

0 Kudos
Message 1 of 10
(3,303 Views)
-If you are stopping the code by pressing abort button it is not good practice, have a stop button to control the loop.
-The only buffer you are creating is getting disposed properly so i don't see any leak.
-How did you verify the memory leak?
-What is your camera resolution? fps?
-Can you give more info on when the computer stops? After 30 min or 1 hr or 4hr?
Thanks
uday
0 Kudos
Message 2 of 10
(3,248 Views)

Thank you for answer.
The source is a vi made to check memory increase when saving avi.
I checked the memory leak by opening Task Manager and checking for LabVIEW memory growth.
Currently 10 fps.
The stopping time is approximately 25 days.

0 Kudos
Message 3 of 10
(3,229 Views)
-Is this same VI which caused memory leak or is it stripped version of some other vi?
-Does it give any error/warning before your PC stops?
Thanks
uday
0 Kudos
Message 4 of 10
(3,222 Views)

Vi is same 

This is where memory leaks occur in the project.

It just stops without warning.

In the Task Manager, LabVIEW memory increases slightly.
It continues to accumulate and eventually the computer seems to stop.

0 Kudos
Message 5 of 10
(3,208 Views)
Solution
Accepted by topic author RevolutionKwon

25 days is a particularly suspicious stopping time.

 

If you have some kind of event that occurs once per millisecond and increments an I32 variable, that I32 variable hits its max value in 24.85 days.

 

I don't have the vision toolkit installed to check what goes on under the hood, so I don't know what that could be.  But that's what I would look for... an I32 that increments by the millisecond.

Message 6 of 10
(3,202 Views)

It's a problem that it's been on for 25 days.
But my client wants to stay on.
Is there a way?

0 Kudos
Message 7 of 10
(3,193 Views)

-You haven't provided Camera resolution?

-Will it be running 24x7? (Acquiring and saving?)

-Please calculate the size of file for 5 sec and accumulate for 25 days.

-The files you are saving to C: drive in client machine? Check if disk is getting full.

 

Thanks
uday
0 Kudos
Message 8 of 10
(3,191 Views)

Sometimes I need to talk to the customer about restarting the computer.
Thank you for answer.

0 Kudos
Message 9 of 10
(3,168 Views)

Sometimes I need to talk to the customer about restarting the computer.
Thank you for answer.

0 Kudos
Message 10 of 10
(3,176 Views)