Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Actors appear to shut down, but still lock their libraries. Code included.

Solved!
Go to solution

I don't think your issue is AF specific.  I have applications with no AF where the exact same thing happens.  If I ask the project why a library is locked then it says a VI has reserved the code for execution.  But there are no VIs running.  If I close the project I do not get the warning that some VI are still running like you do if there is code that was not properly stopped.

I am fairly sure that LV is not doing a good job keeping track of running code and is accidentally reserving your classes when it should not.

Unfortunately there is no way to prove this.

-John
------------------------
Certified LabVIEW Architect
Message 51 of 60
(2,146 Views)

I have expierenced this same issue when using Dynamic Events with an event Structure and not properaly disposing of all the references.

Brian G. Shea
Former Certified LabVIEW Architect
Message 52 of 60
(2,146 Views)

This is possibly the case....darn LabVIEW housekeeping

0 Kudos
Message 53 of 60
(2,146 Views)

Steven: Can you check LV 2015 SP1? Or... if I get an AE onto this thread, are you able to share your code with them?

0 Kudos
Message 54 of 60
(2,146 Views)

AQ, thanks for the reply. Unfortunately we are locked in to 2014SP1 right now.

I would need to talk to my team lead and find out if I could share my code. It might have to be through a secure channel of some sort...

0 Kudos
Message 55 of 60
(2,146 Views)

In that case, just go through your regular support channels to get to an AE. They can set up those kinds of communications.

0 Kudos
Message 56 of 60
(2,146 Views)

Just bumped into this issue again Smiley Sad

 

Large Actor application (~75 independent Actors,  2015SP1), they all seem to shut down properly according to Monitored Actor and own logging routines. Still libraries remain locked, VIs are reported to be running when shutting down the project.

I have tried to leave the VI invoking the Root Actor running, no change there. All SubActors are launched using Launch Nested Actor (AutoStop enabled). And since this application has been migrated from 2013, there is even an own version of registering and shutting down SubActors in place, effectively killing each SubActor twice.

 

Any recommendations before trying with a SRQ?

0 Kudos
Message 57 of 60
(1,994 Views)

This reminds me of this blog post Quick Tip: Asynchronously launching VIs the right way

This might be the issue, as some versions of the AF don't have this modification.

 

0 Kudos
Message 58 of 60
(1,988 Views)

Thanks for the hint.

 

(un)fortunately, in LV2015, the AF uses "the proper way".

0 Kudos
Message 59 of 60
(1,973 Views)

Update on this issue:

 

sometimes it really helps to look at issues from some distance...

 

It turned out there was a cheeky helper actor still in the background. Killed this one properly and the world looks beautiful again Smiley Happy

 

Mea culpa, mea maxima culpa

 

0 Kudos
Message 60 of 60
(1,856 Views)