21-01-2025, 11:35 AM
Hello!
I am using obi rope with some colliders. I have about 8-10 ropes. They are disabled at start and are used as ropes pool. And I also have some objects with obi colliders on the scene.
A few seconds after game start I enable some ropes and move them by static particle attachments. Ropes are colliding with the objects as expected.
Everything seems working ok but when I exit play mode in Unity I get the following errors in console:
I am using obi rope with some colliders. I have about 8-10 ropes. They are disabled at start and are used as ropes pool. And I also have some objects with obi colliders on the scene.
A few seconds after game start I enable some ropes and move them by static particle attachments. Ropes are colliding with the objects as expected.
Everything seems working ok but when I exit play mode in Unity I get the following errors in console:
Code:
InvalidOperationException: The previously scheduled job BurstColliderCollisionConstraintsBatch:CollisionConstraintsBatchJob reads from the UNKNOWN_OBJECT_TYPE CollisionConstraintsBatchJob.shapes. You must call JobHandle.Complete() on the job BurstColliderCollisionConstraintsBatch:CollisionConstraintsBatchJob, before you can deallocate the UNKNOWN_OBJECT_TYPE safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) <0x1dab97b60 + 0x00052> in <956eaa8539d84df5ae2a3cddf87260d0>:0
Obi.ObiNativeList`1[T].Dispose (System.Boolean disposing) (at Assets/Obi/Scripts/Common/DataStructures/NativeList/ObiNativeList.cs:140)
Obi.ObiNativeList`1[T].Dispose () (at Assets/Obi/Scripts/Common/DataStructures/NativeList/ObiNativeList.cs:148)
Obi.ObiColliderWorld.Destroy () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:201)
Obi.ObiColliderWorld.DestroyIfUnused () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:225)
Obi.ObiColliderWorld.DestroyColliderData (Obi.ObiColliderHandle handle) (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:429)
Obi.ObiColliderWorld.DestroyCollider (Obi.ObiColliderHandle handle) (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:333)
Obi.ObiColliderBase.RemoveCollider () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderBase.cs:174)
Obi.ObiColliderBase.OnDisable () (at Assets/Obi/Scripts/Common/Collisions/ObiColliderBase.cs:223)
Code:
NullReferenceException: Object reference not set to an instance of an object
Obi.ObiColliderWorld.UpdateRigidbodyVelocities (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Collisions/ObiColliderWorld.cs:634)
Obi.ObiSolver.CompleteSimulation () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1741)
Obi.ObiSolver.Teardown () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1282)
Obi.ObiSolver.RemoveActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1918)
Obi.ObiActor.RemoveFromSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:381)
Obi.ObiActor.OnDisable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:343)