04-16-2025 03:03 AM
Hello all, can someone help me with the following:
I have old VI running in old LV basic version and I'm receiving memory is full error. I have attached pic for that error below.
Thank you
Solved! Go to Solution.
04-16-2025 07:14 AM
See Memory Is Full Error in LabVIEW
04-16-2025 08:27 AM
@ZYOng wrote:
See Memory Is Full Error in LabVIEW
Addition 1: Creating typed refnums of certain types (Queue, Notifier) are limited to approximately 1 million elements. This has to do with how the references are handled internally.
The error message "Memory is full" is one I have seen by continually opening Queue references in a loop and forgetting to destroy the references. This leads to, after 1 million iterations, an "out of memory" error. It can be confusing is your application memory usage is actually low.
Addition 2: If LabVIEW wants to allocate memory, it must do so for most data structures as a contiguous block of memory. While your memory usage may be relatively low, memory fragmentation can lead LabVIEW to be unable to locate and single block of memory large enough for your allocation, again resulting int he "out of memory" error while there should technically be plenty of memory available for the work at hand.
04-16-2025 08:31 AM
You can help the community help you by following the guidance in the Posting Section of Using the NI Community.
04-16-2025 09:16 AM - edited 04-16-2025 09:17 AM
@Omar-Abdelhameed wrote:
Hello all, can someone help me with the following:
I have old VI running in old LV basic version and I'm receiving memory is full error. I have attached pic for that error below.
Thank you
There's a mistake in the code. Only if you post it we can help (more).
04-16-2025 11:06 AM - edited 04-17-2025 10:16 AM
@Omar-Abdelhameed wrote:
Hello all, can someone help me with the following:
I have old VI running in old LV basic version and I'm receiving memory is full error. I have attached pic for that error below.
Thank you
Based in the sparse information posted so far, we cannot help.
04-17-2025 03:36 AM
- I mean LV base.
- The version is LV2013 32 bit.
- The program was working, no OS upgrade, no computer upgrade, no lv upgrade.
- Program was acquiring different sensors on one integrated application and write them on file.
- What do you mean by some intern hack?
- Everything connected well.
04-17-2025 04:11 AM
What does task manager say about the memory usage?
Is it increasing over time?
There could be things in the application that conditionally grow memory.
These could be 'legitimate' things, like opening a log that keeps adding message. This will grow memory over time, until eventually you get an out of memory.
It could also be any of the things mentioned in the links provided.
If the application didn't change, it could be caused by how the application is operated. It will be hard for us to find out. Sometimes one user crashes an application all the time, while 10 other users nor the programmer can crash it even if they try really hard...
The "out of memory" could be a red haring. If you use dll calls or code that use dll calls, "out of memory" is an error that comes up often.
Steps to solving this are, in general:
+ Try to figure out what changed (and when)
+ Try to reproduce (try to make it worse, try what makes it go away)
+ Try to isolate the bug (make a SSCCE)
+ Code evaluation (code is required)
It's a puzzle. We're only seeing 1 or 2 pieces, from the side...
04-17-2025 10:13 AM - edited 04-17-2025 10:17 AM
@Omar-Abdelhameed wrote:
- I mean LV base.
- The version is LV2013 32 bit.
- The program was working, no OS upgrade, no computer upgrade, no lv upgrade.
- Program was acquiring different sensors on one integrated application and write them on file.
- What do you mean by some intern hack?
- Everything connected well.
You did not say if all controls have reasonable values. Did you check?
Does the error occur almost immediately or only after some time?
I was curious about the quality of the code. If it was written by someone with little experience, there could be systemic problems. Can you show us the code?