question

Mischa Spelt avatar image
1 Like"
Mischa Spelt asked Matthew Gillespie commented

Exceptions with reset position in .fsx

Hi,

There seems to be a bug when loading a model with task executers, but it only seems to happen when saving the model in .fsx format.

Steps to reproduce:

  • Open FlexSim 2022
  • Drag any Task Executer, for example an Operator, in from the library
  • Save the model as .fsx
  • Restart FlexSim and open the model. Press Reset.
exception: Exception Caught in FlexSimObject::moveToResetPosition() object: /Operator1
exception: Exception Caught in ObjectFunction457__project_events_OnResetModel_move_objects_to_reset_positions object: MAIN:/project/events/OnResetModel/move objects to reset positions i: MAIN:/project/events/OnResetModel/move objects to reset positions class: MAIN:/project/events/OnResetModel/move objects to reset positions

exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/events/OnResetModel/move objects to reset positions c: MAIN:/project/events/OnResetModel/move objects to reset positions i: MAIN:/project/events/OnResetModel/move objects to reset positions thisClass: MAIN:/project/events/OnResetModel/move objects to reset positions
exception: Exception caught in evaluation of MAIN:/project/events/OnResetModel/move objects to reset positions
exception: Exception Caught in FlexSimObject::moveToResetPosition() object: /Operator1
exception: Exception Caught in Navigator::onReset() object: /DefaultNavigator
exception: Exception Caught in ObjectFunction240__project_library_FlexSimEventHandler_behaviour_eventfunctions_OnReset object: /DefaultNavigator class: /DefaultNavigator

exception: Exception caught in TreeNode::receivemessage()
exception: Executive::__reset()
exception: int Executive::reset()
exception: reset

Demo model: ResetPosition.fsx

I think that this bug has actually been in a couple of versions of FlexSim so far.

FlexSim 22.0.0
task executerexceptionreset position
resetposition.fsx (683.7 KiB)
· 2
5 |100000

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

Jeremy R avatar image Jeremy R commented ·
Thanks for reporting this bug. I've encountered this exact same issue, and had assumed it was a configuration issue on my end.


In my experience, simply selecting each of the TaskExecuters before resetting prevents these exceptions from occurring, and the model runs as normal. I'm looking forward to a proper fix, but hope that this workaround can help people in the meantime.

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Jeremy R commented ·
@Jeremy R This issue was fixed in 22.0.5
1 Like 1 ·

1 Answer

·
Jordan Johnson avatar image
2 Likes"
Jordan Johnson answered

I was able to replicate this bug in 22.0.1, based on your steps. I'll add it to the dev list. Thanks for this excellent report.

5 |100000

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

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.