I get an exception when calling ScanLoop, but only on the webPlayer built using 4.6.3f1 and a* version 3.6.4
It’s a recast graph ca. 4k,1,4k cell:20 tile:20, 4 threads, no penalties, no zip, no gui
OnScanStatus info = delegate(Progress p) {
OnCheckForReadyProgress(Mathf.Lerp(0.2f, 0.7f, p.progress), GUIString.LoadingNavigation);
Console.WriteLine("Scanning:" + p.description + " " + p.progress);
//Debug.Log("Scanning:" + p.description + " " + p.progress);
};
AstarPath.active.ScanLoop(info);
Exception:
MethodAccessException: Attempt to access a private/protected method failed.
at System.Security.SecurityManager.ThrowException (System.Exception ex) [0x00000] in <filename unknown>:0
at Pathfinding.ThreadControlQueue.get_AllReceiversBlocked () [0x00000] in <filename unknown>:0
at AstarPath.BlockUntilPathQueueBlocked () [0x00000] in <filename unknown>:0
at Pathfinding.AstarData.DeserializeGraphs (System.Byte[] bytes) [0x00000] in <filename unknown>:0
at Pathfinding.AstarData.DeserializeGraphs () [0x00000] in <filename unknown>:0
at Pathfinding.AstarData.Awake () [0x00000] in <filename unknown>:0
at AstarPath.Initialize () [0x00000] in <filename unknown>:0
at AstarPath.Awake () [0x00000] in <filename unknown>:0
Leads to this code:
/** True if blocking and all receivers are waiting for unblocking */
public bool AllReceiversBlocked {
get {
lock (lockObj) {
return blocked && Thread.VolatileRead (ref blockedReceivers) == numReceivers;
}
}
}