Reply To: Task skips execution occasionally

Forums 💬 NodeCanvas ⚙️ Support Task skips execution occasionally Reply To: Task skips execution occasionally

#19026
tsingsan
Participant

    Thanks for your quick response.
    But I’m afraid postponing the NC update doesn’t help. (I had a try)
    After the callback is invoked, EndAction() is called, so the status of the task becomes success and the ‘latch’ flag is set to true, then NC calls update (no matter in the same frame or the next frame). Because NC checks transition before action execution, If the outgoing condition happens to return true at the moment, the current state is exited, EndAction(null) is called, It’s supposed to set ‘latch’ to false. However, since the status of action is not running anymore, the ‘latch’ remains true. The issue occurs when this state is transferred back the next time.

    I created a test case to 100% recur this issue. It’s also attached below.
    In the test case, the outgoing condition also subscribes to the same event. And you can see every other loop, the test action would fail to execute.