Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  IndexOutOfRangeException: Index 11 is out of range of '11' Length.
#1
Hi there,

I got some errors on the obi rope. How do I fix this? 
Thank you.

IndexOutOfRangeException: Index 11 is out of range of '11' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Unity.Collections.NativeArray`1[T].CheckElementReadAccess (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Unity.Collections.NativeArray`1[T].get_Item (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Obi.BurstColliderWorld+GenerateContactsJob.Execute (System.Int32 i) (at Assets/Third Party/Obi/Scripts/Common/Backends/Burst/Collisions/BurstColliderWorld.cs:335)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <42a5878ce129403083acccf18e43363f>:0)
Reply
#2
(23-03-2021, 10:25 AM)Haleluya Wrote: Hi there,

I got some errors on the obi rope. How do I fix this? 
Thank you.

IndexOutOfRangeException: Index 11 is out of range of '11' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Unity.Collections.NativeArray`1[T].CheckElementReadAccess (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Unity.Collections.NativeArray`1[T].get_Item (System.Int32 index) (at <42a5878ce129403083acccf18e43363f>:0)
Obi.BurstColliderWorld+GenerateContactsJob.Execute (System.Int32 i) (at Assets/Third Party/Obi/Scripts/Common/Backends/Burst/Collisions/BurstColliderWorld.cs:335)
Unity.Jobs.IJobParallelForExtensions+ParallelForJobStruct`1[T].Execute (T& jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <42a5878ce129403083acccf18e43363f>:0)

Hi there,

Without more context it's difficult to tell what could cause this.
- What Unity/Burst/Obi versions are you using?
- What does your scene look like? how many ropes/solvers/colliders, what way are they set up?
- When does this happen? does it happen at startup, every frame, or only in specific situations?
Reply
#3
(23-03-2021, 10:50 AM)josemendez Wrote: Hi there,

Without more context it's difficult to tell what could cause this.
- What Unity/Burst/Obi versions are you using?
- What does your scene look like? how many ropes/solvers/colliders, what way are they set up?
- When does this happen? does it happen at startup, every frame, or only in specific situations?
Sorry man. I found out to disable the safety check to be off. The errors is gone. Thank you.
Reply
#4
(23-03-2021, 10:52 AM)Haleluya Wrote: Sorry man. I found out to disable the safety check to be off. The errors is gone. Thank you.

Disabling safety checks will just ignore the error, but the error will still be there! Safety checks should be disabled for max performance in editor, but if there's an error it shouldn't be ignored. Once you build you'll get the same error again.
Reply