AStar 4.1.2 Beta Lockups

While I was waiting to hear about the tutorial question, I decided to try out all the demos included. And I found that several of them lock up unity solid when run. The Demos that lock up are:

Example 4
Example 7 (Door1 and Door2)
Example 11 “RVO” (RVOLightweight works)
Example 13

I also noticed all these share one thing, they all use the Recast graph. So it seems maybe beta 4.1.2 has some incompatibility with the latest Unity (Unity 2017.1.0p4 release as of today). FYI

Hi

Thanks for reporting this.
Another user also reported this a few days ago and I finally managed to track down the bug.
It turns out that this is due to a difference in the implementation of the WaitHandle.WaitAll method. According to the documentation it should throw an exception when passed a zero length array, but Mono will return true and Microsoft’s .Net will return false. This made it impossible for me to replicate it on Mac (which I normally use).
I have fixed this now in beta 4.1.3 which was just uploaded.

1 Like