Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  "ObjectDisposedException" in cloth objects on scene startup in Unity 2020.3.16f1
#7
(27-09-2021, 08:46 AM)josemendez Wrote: Hi Tim,

Sorry for the late reply! I've tested on:

- Unity 2020.3.19f1 LTS
- Burst 1.5.4
- Mathematics 1.2.1
- Jobs 0.11.0-preview.6
- Collections 1.0.0-preview.5,

With safety checks enabled, however no errors pop up when running any of the included sample scenes. Also tried a simple scene with just character cloth and collisions (which seems closer to what you have) but still no errors. Building and running a standalone binary also works fine.

If you could send your test case to support(at)virtualmethodstudio.com I'd be glad to take a look at it and see if I can find a fix for it.

kind regards,

I have the same issue and have found out that it is pretty simple to reproduce.

No Error:
Rope Solver is inside camera view + Simulate When Invisible (true)
Rope Solver is inside camera view + Simulate When Invisible (false)
Rope Solver is outside camera view + Simulate When Invisible (true)

Error:
Rope Solver is outside camera view + Simulate When Invisible (false)


Unity 2020.3.19
Obi Rope 6.0.1
Burst 1.5.6
Jobs 0.11.0
Collections 1.0.0


Code:
ObjectDisposedException: Cannot access a disposed object.
Object name: 'The NativeArray has been disposed, it is not allowed to access it'.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckExistsAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& handle) (at <ca496b8c93454b2f9b9924292c19379f>:0)
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.ValidateNonDefaultHandle (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& handle) (at <ca496b8c93454b2f9b9924292c19379f>:0)
Unity.Collections.NativeArray`1[T].get_Length () (at <ca496b8c93454b2f9b9924292c19379f>:0)
Obi.BurstColliderCollisionConstraints.GetConstraintCount () (at Assets/Obi/Scripts/Common/Backends/Burst/Constraints/ColliderCollision/BurstColliderCollisionConstraints.cs:27)
Obi.BurstSolverImpl.GetConstraintCount (Oni+ConstraintType type) (at Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:406)
Obi.ObiSolver.EndStep (System.Single substepTime) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1561)
Obi.ObiUpdater.EndStep (System.Single substepDeltaTime) (at Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:92)
Obi.ObiFixedUpdater.FixedUpdate () (at Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:52)
Reply


Messages In This Thread
RE: "ObjectDisposedException" in cloth objects on scene startup in Unity 2020.3.16f1 - by mattiaswargren - 28-09-2021, 02:36 PM