SpriteShapeGenerator Error ?

,

I have no idea what I have possibly done to cause such error, but I get :

InvalidOperationException: The previously scheduled job SpriteShapeGenerator writes to the Unity.Collections.NativeArray1[Unity.Mathematics.float2] SpriteShapeGenerator.m_ColliderPoints. You must call JobHandle.Complete() on the job SpriteShapeGenerator, before you can deallocate the Unity.Collections.NativeArray1[Unity.Mathematics.float2] safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <9244fb8344e84288877b43b45b29c242>:0)
Unity.Collections.LowLevel.Unsafe.DisposeSentinel.Dispose (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& safety, Unity.Collections.LowLevel.Unsafe.DisposeSentinel& sentinel) (at <9244fb8344e84288877b43b45b29c242>:0)
Unity.Collections.NativeArray`1[T].Dispose () (at <9244fb8344e84288877b43b45b29c242>:0)
UnityEngine.U2D.SpriteShapeController.DisposeInternal () (at Library/PackageCache/com.unity.2d.spriteshape@6.0.0/Runtime/SpriteShapeController.cs:240)
UnityEngine.U2D.SpriteShapeController.OnDisable () (at Library/PackageCache/com.unity.2d.spriteshape@6.0.0/Runtime/SpriteShapeController.cs:262)
UnityEditor.SceneManagement.EditorSceneManager:OpenScene(String)
Pixellore_BuildData:BuildAllDefaultLevelData() (at Assets/Game/Script/Editor/Tool/Pixellore_BuildData.cs:328)
Pixellore_BuildData:BuildLevelData() (at Assets/Game/Script/Editor/Tool/Pixellore_BuildData.cs:120)
Pixellore_Tools:OnGUI() (at Assets/Game/Script/Editor/Tool/Pixellore_Tools.cs:83)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Unity 2021.1.4f1

These are what I am using in the packagemanager

Could you kindly submit a repro project ? Will take a look asap.

I think I “may” have found where it is possibly causing error. I am running BakeMesh possibly while in Editor mode… I am going to experiment a bit more to see if it is indeed a cause.