question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Patrick Zweekhorst commented

Does anyone have an idea what might be causing this exception?

Hi

I have an exception in my model which I cannot understand completely. This is the exception:

time: 156.392789 exception: Exception caught in start() of activity "Exit Zone tray1" in "ProcessFlow". Continuing throw...
time: 156.392789 exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MODEL:/Tools/ProcessFlow/ProcessFlow/Travel to Parking>variables/callbackNode c: /Tools/ProcessFlow/ProcessFlow/Travel to Parking>variables/callbackNode thisClass: /Tools/ProcessFlow/ProcessFlow/Travel to Parking>variables/callbackNode
time: 156.392789 exception: Exception Caught in TaskExecuter::beginTask(treenode task) object: /AGV_11
time: 156.392789 exception: Exception Caught in TaskExecuter::finishTask(treenode task) object: /AGV_11
time: 156.392789 exception: Exception Caught in TaskExecuter::onDestinationArrival(double finalspeed) object: /AGV_11
time: 156.392789 exception: Exception caught in Executive::processeventinlist(). Throwing.
time: 156.392789 exception: Exception caught in Executive::steptotime(). Throwing.
time: 156.392789 exception: Exception caught in Executive::tick(). Throwing.
time: 156.392789 exception: int runthemessageloop() #4
exception: Executive::instance.tick();
time: 156.392789 exception: int runthemessageloop() #6

It looks like something goes wrong in the Exit zone, but I cannot figure out what. There is a partition in the zone, and the tokens that is exiting the zone was in one of those partitions. I have also tried to add some 0 delays around the exit zone, but it did not help. I can understand that it will be difficult to find the problem without having the model, but it is difficult to share the model since it uses two other custom modules. So my question is more general, what could be going wrong if I get this exception.

Thank you,

Patrick Zweekhorst

FlexSim 18.0.3
exceptionzone partition
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered Patrick Zweekhorst commented

In general, you can check these things:

  • On the Exit Zone activity, check the Zone reference. If it is code, consider whether that code could ever fail.
  • On the Exit Zone activity, check the Exit For value. Usually this is just "token", but again, check the code there.
  • On the Zone, are there constraints? If so, when a token exits, the Zone checks to see if any of the tokens waiting to enter can now enter, and it could be that something is broken in that constraint. It could also be that something is broken about letting tokens in at the instant they are getting in, so double check the logic right after the Enter Zone activities as well.

If you continue to get the exception, try setting the Zone reference to a brand new zone with no settings changed from the defaults. If you get the exception at that point, let use know. If that doesn't give an exception, slowly add in options on the new Zone until it either breaks or is the same as the current Zone, but with no exceptions.

If you try all of that and still get an exception, let us know, and we'll figure out a way to help you further.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @jordan.johnson,

Thank you for your response.

The zone is quite a simple zone in this situation. There is an partition based on a token label (int in range 1-7). The partition constraint is just the number of tokens option, which can be at most 1. All the references are direct references, no code used there. I get no exception if I use a completely new zone, but if I enter the partition with constraint I do get the error.

But I now no longer have the error, ( I changed some logic at a completely different point in the flow). If you want to see if my original problem is a bug in FlexSim I can give the modules as zip in a private question.

Thank you again for your time,

Patrick

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.