A* Pathfinding Project

[Critical][Bug][4.2.5][Unity 2018.3.7f1] NullReference Pathfinding.TriangleMeshNode.GetVertices


#1

A*PP <4.2.5 crashes with ReflectionException after upgrading from 2018.3.2f1 to Unity 2018.3.7f1.

Updating to 4.2.5 (Website Download) fixes the Reflection Exception but a new NullReference occurs and constantly spams the player log (we just received a 1.4GB unity log filled with this exception message from one of our testers)

NullReferenceException: Object reference not set to an instance of an object
  at Pathfinding.TriangleMeshNode.GetVertices (Pathfinding.Int3& v0, Pathfinding.Int3& v1, Pathfinding.Int3& v2) [0x0000c] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.TriangleMeshNode.ClosestPointOnNode (UnityEngine.Vector3 p) [0x00000] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.SearchBoxClosest (System.Int32 boxi, UnityEngine.Vector3 p, System.Single& closestSqrDist, Pathfinding.NNConstraint constraint, Pathfinding.NNInfoInternal& nnInfo) [0x0002c] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.SearchBoxClosest (System.Int32 boxi, UnityEngine.Vector3 p, System.Single& closestSqrDist, Pathfinding.NNConstraint constraint, Pathfinding.NNInfoInternal& nnInfo) [0x000ab] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.SearchBoxClosest (System.Int32 boxi, UnityEngine.Vector3 p, System.Single& closestSqrDist, Pathfinding.NNConstraint constraint, Pathfinding.NNInfoInternal& nnInfo) [0x000ab] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.SearchBoxClosest (System.Int32 boxi, UnityEngine.Vector3 p, System.Single& closestSqrDist, Pathfinding.NNConstraint constraint, Pathfinding.NNInfoInternal& nnInfo) [0x000ab] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.SearchBoxClosest (System.Int32 boxi, UnityEngine.Vector3 p, System.Single& closestSqrDist, Pathfinding.NNConstraint constraint, Pathfinding.NNInfoInternal& nnInfo) [0x000ab] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.BBTree.QueryClosest (UnityEngine.Vector3 p, Pathfinding.NNConstraint constraint, System.Single& distance, Pathfinding.NNInfoInternal previous) [0x0002b] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.NavmeshBase.GetNearestForce (UnityEngine.Vector3 position, Pathfinding.NNConstraint constraint) [0x00146] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.NavmeshBase.GetNearest (UnityEngine.Vector3 position, Pathfinding.NNConstraint constraint, Pathfinding.GraphNode hint) [0x00000] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.NavGraph.GetNearest (UnityEngine.Vector3 position, Pathfinding.NNConstraint constraint) [0x00000] in <a553fe48fc6b4e54a69622455e348b94>:0 
  at Pathfinding.NavGraph.GetNearest (UnityEngine.Vector3 position) [0x00007] in <a553fe48fc6b4e54a69622455e348b94>:0 

#2

Hi

How are you creating this graph? Any particular code you are using for it?
Are you sure this is the first exception in the log?