Burst failed to compile the function pointer Void ResetAllBuffers

When building a Unity Project with the A* Pathfinding Project and Burst 1.5.3, the following error message occurs:

InvalidOperationException: Burst failed to compile the function pointer `Void ResetAllBuffers(Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer*, Int32)`
  at Unity.Burst.BurstCompiler.Compile (System.Object delegateObj, System.Reflection.MethodInfo methodInfo, System.Boolean isFunctionPointer, System.Object managedFallbackDelegateObj) [0x0010e] in /path/to/project/Library/PackageCache/com.unity.burst@1.5.3/Runtime/BurstCompiler.cs:388 
  at Unity.Burst.BurstCompiler.CompileUnsafeStaticMethod (System.RuntimeMethodHandle handle) [0x00139] in /path/to/project/Library/PackageCache/com.unity.burst@1.5.3/Runtime/BurstCompiler.cs:229 
  at Pathfinding.Drawing.DrawingData+BuilderData+ResetAllBuffers_00000139$BurstDirectCall.GetFunctionPointerDiscard (System.IntPtr& ) [0x0000a] in <6b51d27fd09e43c88d791add6aa3906c>:0 
  at Pathfinding.Drawing.DrawingData+BuilderData+ResetAllBuffers_00000139$BurstDirectCall.GetFunctionPointer () [0x00003] in <6b51d27fd09e43c88d791add6aa3906c>:0 
  at Pathfinding.Drawing.DrawingData+BuilderData+ResetAllBuffers_00000139$BurstDirectCall.Invoke (Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer* buffers, System.Int32 numBuffers) [0x0000a] in <6b51d27fd09e43c88d791add6aa3906c>:0 
  at Pathfinding.Drawing.DrawingData+BuilderData.ResetAllBuffers (Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer* buffers, System.Int32 numBuffers) [0x00002] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/DrawingData.cs:515 
  at Pathfinding.Drawing.DrawingData+BuilderData.ClearData () [0x00040] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/DrawingData.cs:629 
  at Pathfinding.Drawing.DrawingData+BuilderData.Release () [0x00015] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/DrawingData.cs:615 
  at Pathfinding.Drawing.DrawingData+BuilderDataContainer.Release (Pathfinding.Drawing.DrawingData+BuilderData+BitPackedMeta meta) [0x00000] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/DrawingData.cs:676 
  at Pathfinding.Drawing.CommandBuilder.DiscardAndDisposeInternal () [0x00048] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/CommandBuilder.cs:194 
  at Pathfinding.Drawing.DrawingManager.OnDisable () [0x0007a] in /path/to/project/Packages/com.arongranberg.astar@4.3.43/Drawing/DrawingManager.cs:305 

(Filename: Library/PackageCache/com.unity.burst@1.5.3/Runtime/BurstCompiler.cs Line: 388)

Using Unity 2020.3.7f1

Hmm, that looks like it might be a Unity bug. I’d try upgrading your burst package and/or your unity version.

I can’t reproduce anymore.

We’re now at Unity 2021.3.1f1, A* Pathfinding Project 4.3.48, Burst 1.6.5.

1 Like