From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 2 when running built AF application

Hello,

in my latest AF project I get the error 2 memory full error when trying to launch the built application (property node in Actor Framework.lvlib:Actor.lvclass:Actor.vi:6640009->Actor Framework.lvlib:Actor.lvclass:Actor.vi.ACBRProxyCaller.1D10001B).

Has anyone else already found a workaround for this issue? I tried to implement wait functions between launching all nested actors, but this didn't solved the problem. The error appeared after adding many Message Classes to the project.

0 Kudos
Message 1 of 4
(3,573 Views)

I've not encountered this error in my executable. Does it work when you run it in development mode? Can you post the code?

0 Kudos
Message 2 of 4
(3,290 Views)

Well, in my original post I failed to give a proper error description. I guess it was a combination of working too much that day and the frustration of having introduced a new runtime bug right before the weekend.

Here is the problem description and how I solved it:

It wasn't a property node error, but rather an invoke node error (bad english<->german translation on my part). The memory full error occured in the "VI reset all to default" node. I have a GUI actor parent class, from which all GUI actors inherit. This parent class calls the reset invoke node after actor launch to reset the actor core FP. If I start too much GUI actors during program start simultaneously, the memory full error occurs.

My current workaround: I have put the reset invoke node into a case selector (dev system == true).

0 Kudos
Message 3 of 4
(3,290 Views)

It takes a lot to run out of memory on a modern computer! How many are you starting?!

If the number you are starting is giant (say, 1000 open front panels or more), I suppose it is possible that you're getting this error legitimately. I've certainly never seen that just from launching a large number of basic actors, but your code may allocate more resources. Do you have some giant constant or something that is being replicated in every reentrant clone?

If the number you are starting seems reasonable, check your memory usage on your computer (task monitor or similar tool). If the memory isn't really running out, maybe there's a LV bug. In that case, if you can share the code, please contact an NI applcation engineer and open a service request. They can replicate your system. That would let us dig in and maybe fix this for the future.

0 Kudos
Message 4 of 4
(3,290 Views)