The count of vectorPath in the seeker is very weird

Check the image below. I output the count of the vectorPath three times. Sometimes, the count is 0 the first time, but then it becomes larger than 0.


If you are calculating the path on a separate thread at the same time, this value may change at any time. Only check it after the path has been calculated.