Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Burst backend causes Runtime Crash
#1
Hi,

I am trying to used Burst backend but getting this exceptions. any ideas ?

ArgumentException: source and destination length must be the same
Unity.Collections.NativeArray`1[T].CheckCopyLengths (System.Int32 srcLength, System.Int32 dstLength) (at <cfc1ad890650411e946cff2e6f276711>:0)
Unity.Collections.NativeArray`1[T].Copy (T[] src, Unity.Collections.NativeArray`1[T] dst) (at <cfc1ad890650411e946cff2e6f276711>:0)
Unity.Collections.NativeArray`1[T].CopyFrom (T[] array) (at <cfc1ad890650411e946cff2e6f276711>:0)
Unity.Collections.NativeList`1[T].CopyFrom (T[] array) (at Library/PackageCache/com.unity.collections@0.1.1-preview/Unity.Collections/NativeList.cs:479)
Obi.BurstSolverImpl.SetSimplices (System.Int32[] simplices, Obi.SimplexCounts counts) (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs:301)
Obi.ObiSolver.PushSimplices () (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1379)
Obi.ObiSolver.PushActiveParticles () (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1303)
Obi.ObiSolver.BeginStep (System.Single stepTime) (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1512)
Obi.ObiUpdater.BeginStep (System.Single stepDeltaTime) (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Updaters/ObiUpdater.cs:49)
Obi.ObiFixedUpdater.FixedUpdate () (at Assets/ObiCloth/Assets/Obi/Scripts/Common/Updaters/ObiFixedUpdater.cs:44)
Reply


Messages In This Thread
Using Burst backend causes Runtime Crash - by smohser - 30-09-2021, 09:57 AM