Astarpath gizmo throwing errors on run

Hi,

I installed Unity 2019.3.2 and a fresh install of A*, and when looking at the Hex / Terrain examples (might be more, I haven’t checked), whenever I run the scene I get the same four error messages repeating:

Not allowed to access vertices on mesh ‘’ (isReadable is false; Read/Write must be enabled in import settings) UnityEngine.Mesh:SetVertices(List`1) Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:205)

Not allowed to access triangles/indices on mesh ‘’ (isReadable is false; Read/Write must be enabled in import settings) UnityEngine.Mesh:SetTriangles(List`1, Int32) pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:206)

Not allowed to access colors on mesh ‘’ (isReadable is false; Read/Write must be enabled in import settings) UnityEngine.Mesh:SetColors(List`1) Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:207)

Not allowed to access normals on mesh ‘’ (isReadable is false; Read/Write must be enabled in import settings) UnityEngine.Mesh:SetNormals(List`1) Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:208)

If I turn off that gizmo, the errors stop.

If I go back to Unity 2018.2.9, I don’t get these errors at all.

Is there something I need to change with A* if I’m going to use the newest Unity?

Thanks in advance!

Hi

I just released an update yesterday that fixed this issue. You can download 4.2.12 here: https://www.arongranberg.com/astar/download

1 Like

Thank you!

Had I only checked the update section earlier, I would have more hair than I have now :slight_smile:

1 Like

I still get the errors described. I’m using A* Version 4.3.10 on Unity version 2019.3.4f1.

Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:205)
Pathfinding.Util.Builder:Submit(RetainedGizmos, Hasher) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:132)
Pathfinding.Util.GraphGizmoHelper:Submit() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:154)
Pathfinding.Util.GraphGizmoHelper:System.IDisposable.Dispose() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:160)
Pathfinding.GridGraph:OnDrawGizmos(RetainedGizmos, Boolean) (at Assets/AstarPathfindingProject/Generators/GridGenerator.cs:1609)
AstarPath:OnDrawGizmos() (at Assets/AstarPathfindingProject/Core/AstarPath.cs:795)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:206)
Pathfinding.Util.Builder:Submit(RetainedGizmos, Hasher) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:132)
Pathfinding.Util.GraphGizmoHelper:Submit() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:154)
Pathfinding.Util.GraphGizmoHelper:System.IDisposable.Dispose() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:160)
Pathfinding.GridGraph:OnDrawGizmos(RetainedGizmos, Boolean) (at Assets/AstarPathfindingProject/Generators/GridGenerator.cs:1609)
AstarPath:OnDrawGizmos() (at Assets/AstarPathfindingProject/Core/AstarPath.cs:795)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:207)
Pathfinding.Util.Builder:Submit(RetainedGizmos, Hasher) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:132)
Pathfinding.Util.GraphGizmoHelper:Submit() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:154)
Pathfinding.Util.GraphGizmoHelper:System.IDisposable.Dispose() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:160)
Pathfinding.GridGraph:OnDrawGizmos(RetainedGizmos, Boolean) (at Assets/AstarPathfindingProject/Generators/GridGenerator.cs:1609)
AstarPath:OnDrawGizmos() (at Assets/AstarPathfindingProject/Core/AstarPath.cs:795)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:208)
Pathfinding.Util.Builder:Submit(RetainedGizmos, Hasher) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:132)
Pathfinding.Util.GraphGizmoHelper:Submit() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:154)
Pathfinding.Util.GraphGizmoHelper:System.IDisposable.Dispose() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:160)
Pathfinding.GridGraph:OnDrawGizmos(RetainedGizmos, Boolean) (at Assets/AstarPathfindingProject/Generators/GridGenerator.cs:1609)
AstarPath:OnDrawGizmos() (at Assets/AstarPathfindingProject/Core/AstarPath.cs:795)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Pathfinding.Util.Builder:SubmitLines(RetainedGizmos, UInt64) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:209)
Pathfinding.Util.Builder:Submit(RetainedGizmos, Hasher) (at Assets/AstarPathfindingProject/Utilities/RetainedGizmos.cs:132)
Pathfinding.Util.GraphGizmoHelper:Submit() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:154)
Pathfinding.Util.GraphGizmoHelper:System.IDisposable.Dispose() (at Assets/AstarPathfindingProject/Utilities/GraphGizmoHelper.cs:160)
Pathfinding.GridGraph:OnDrawGizmos(RetainedGizmos, Boolean) (at Assets/AstarPathfindingProject/Generators/GridGenerator.cs:1609)
AstarPath:OnDrawGizmos() (at Assets/AstarPathfindingProject/Core/AstarPath.cs:795)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Any help is appreciated!

On the 4.3.x branch the fix was introduced in 4.3.14. You can download it here: https://www.arongranberg.com/astar/download

I think this works! But I am getting a different error now. I will write it in a new topic. Thanks!

1 Like