question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Ben Wilson edited

Exception in OnPostResetModel/notify subscribers

Hi, any idea what the following error can mean?

exception: Exception Caught in ObjectFunction385__project_events_OnPostResetModel_notify_subscribers object: MAIN:/project/events/OnPostResetModel/notify subscribers i: MAIN:/project/events/OnPostResetModel/notify subscribers class: MAIN:/project/events/OnPostResetModel/notify subscribers


exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/events/OnPostResetModel/notify subscribers c: MAIN:/project/events/OnPostResetModel/notify subscribers i: MAIN:/project/events/OnPostResetModel/notify subscribers thisClass: MAIN:/project/events/OnPostResetModel/notify subscribers
exception: Exception caught in evaluation of MAIN:/project/events/OnPostResetModel/notify subscribers

If necessary I can try sharing the model in a private question but I'm mostly curious if, in general, anyone has encountered this and/or there is a typical known cause for this error.

FlexSim 18.0.2
exceptionsonreset
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Ben Wilson edited

I've seen this error twice.

Once was when 18.0 was still under development, we would see this when Stats Collectors were in the model. After debugging the issue, we traced it to the object calling its OnReset function during its bind method.

The other time Regan was seeing this error whenever he would start a new model. Closing FlexSim and reopening it made the error go away. I'm not sure what was causing it.

If you have a model that displays this issue or have replication steps let us know and we'll look into it.

The function SimulationStartEvent::executePostReset() is defined in MAIN:/project/exec/globals/includebody if you want to debug it.

5 |100000

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