Obi Official Forum
Bug / Crash IndexOutOfRangeException: Index 11 is out of range of '11' Length. - 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 IndexOutOfRangeException: Index 11 is out of range of '11' Length. (/thread-2824.html)



IndexOutOfRangeException: Index 11 is out of range of '11' Length. - Haleluya - 23-03-2021

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)


RE: IndexOutOfRangeException: Index 11 is out of range of '11' Length. - josemendez - 23-03-2021

(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?


RE: IndexOutOfRangeException: Index 11 is out of range of '11' Length. - Haleluya - 23-03-2021

(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.


RE: IndexOutOfRangeException: Index 11 is out of range of '11' Length. - josemendez - 23-03-2021

(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.