SuperActionState OnExit fired more then once in nestedFSM

Forums 💬 NodeCanvas ⚙️ Support SuperActionState OnExit fired more then once in nestedFSM

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16804
    meatloaf
    Participant

      I have a nestedFSM containing a SuperActionState. It seams that the OnExit actions of the SuperActionState are fired multiple times in the nestedFSM. Attached are some images that I have captured when trying to figure out the issue.

      I think what’s going on is that, the OnExit for the SuperActionState node is fired and then when the graph exits it executes a OnGraphExit which also calls OnExit on the SuperActionState again.

      I would love to get this problem sorted out asap.

      Thanks for any help in advance!

      #16809
      Gavalakis
      Keymaster

        Hey!

        Sorry for the late reply due to Eastern and thanks for finding this bug out along with providing the info. I can confirm that this is certainly a bug 🙂
        To fix this quickly (even though I need to run a few more tets), please open up FSM.cs and change the OnGraphStoped method to simply be like this:

         

        This will fix the double call.

        Thanks again!

        #16808
        meatloaf
        Participant

          Awesome that looked like it fixed the issue.

          Will this bug be fixed more officially in the next release?

          Thank in advance!

          #16807
          Gavalakis
          Keymaster

            Hey,

            Yes, a fix will definetely exist in the next version. 🙂
            Thanks!

            #16806
            meatloaf
            Participant

              Awesome thanks so much!

              #16805
              Gavalakis
              Keymaster

                Thanks as well for the findings! 🙂

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.