Obi Official Forum
Bug / Crash Obi rope collider produce errors when exit Play mode - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Bug / Crash Obi rope collider produce errors when exit Play mode (/thread-4440.html)



Obi rope collider produce errors when exit Play mode - Apoll0 - 21-01-2025

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:


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)



RE: Obi rope collider produce errors when exit Play mode - josemendez - 21-01-2025

Hi!

I'm unable to reproduce this. Which Obi/Burst versions are you using? would it be possible for you to send a repro project/scene to support(at)virtualmethodstudio.com so that I can take a closer look?

kind regards,


RE: Obi rope collider produce errors when exit Play mode - Apoll0 - 22-01-2025

Obi [7.0.3]
Burst 1.8.18
Unity 2022.3.55-56

I have sent a link to my google drive with a project and video with the error reproducing


RE: Obi rope collider produce errors when exit Play mode - josemendez - 23-01-2025

(22-01-2025, 09:40 AM)Apoll0 Wrote: Obi [7.0.3]
Burst 1.8.18
Unity 2022.3.55-56

I have sent a link to my google drive with a project and video with the error reproducing

Hi Apoll0,

Just tested your project but I'm unable to reproduce the issue in it either, followed the same reproduction steps seen in your video in two different computers. Replied to your email with a video of me testing the project and additional questions about the problem.

kind regards,