Search Issue Tracker
In Progress
In Progress in 1.3.X, 7000.0.X
Votes
0
Found in [Package]
1.3.2 - Entities
7000.0.0a1
Issue ID
ECSB-1376
Regression
No
IndexOutOfRangeException when destroying Kinematic Body with Incremental Dynamic Broadphase enabled
*Steps to reproduce:*
1. Enable "Incremental Dynamic Broadphase" on the Physics Step component
2. Attach a PhysicsBodyAuthoring component to a gameObject and set its MotionTypes to "Kinematic body"
3. Destroy the physics body at runtime
4. Observe an IndexOutOfRangeException in the console
Exception:
{code:java}
IndexOutOfRangeException: Index 1 is out of range of '1' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <f7237cf7abef49bfbb552d7eb076e422>:0)
Unity.Physics.DispatchPairSequencer+CreateDispatchPairPhasesJob.FindFreePhaseDynamicStaticPair (Unity.Collections.NativeArray`1[T] rigidBodyMask, System.Int32 bodyIndexA, System.Int32 lastPhaseIndex, Unity.Collections.NativeArray`1[T] phaseLookupTableDynamicStaticPairs, System.Boolean useTable) (at ./Library/PackageCache/com.unity.physics@1.3.2/Unity.Physics/Dynamics/Simulation/Scheduler.cs:1170)
Unity.Physics.DispatchPairSequencer+CreateDispatchPairPhasesJob.CreateDispatchPairPhasesJobFunction (Unity.Collections.NativeArray`1[T] phaseLookupTableDynamicDynamicPairs, Unity.Collections.NativeArray`1[T] phaseLookupTableDynamicStaticPairs, Unity.Collections.NativeArray`1[T] dispatchPairs, System.Int32 numDynamicBodies, System.Int32 numPhases, Unity.Collections.NativeArray`1[T] phasedDispatchPairs, System.Int32& numActivePhases, System.Int32& numWorkItems, Unity.Collections.NativeArray`1[Unity.Physics.DispatchPairSequencer+SolverSchedulerInfo+SolvePhaseInfo]& phaseInfo, System.Boolean useTables) (at ./Library/PackageCache/com.unity.physics@1.3.2/Unity.Physics/Dynamics/Simulation/Scheduler.cs:914)
Unity.Physics.DispatchPairSequencer+CreateDispatchPairPhasesJob.Execute () (at ./Library/PackageCache/com.unity.physics@1.3.2/Unity.Physics/Dynamics/Simulation/Scheduler.cs:808)
Unity.Jobs.IJobExtensions+JobStruct`1[T].Execute (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at <f7237cf7abef49bfbb552d7eb076e422>:0)
Unity.Jobs.JobHandle:ScheduleBatchedJobsAndComplete(JobHandle&)
Unity.Jobs.JobHandle:Complete()
...{code}
*Actual results:* IndexOutOfRangeException
*Expected results:* No exceptions
*Reproducible with versions:* 1.3.2 (2022.3.18f1)
*Not reproducible with versions:*
*Can’t test with versions:*
*Tested on (OS):* Windows 11
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [APV] Impossible to switch between multiple Baking Set when multiple scenes are loaded additively
- [Linux] Low project loading speed when using Ubuntu 24.10
- [VFX Graph] URP ShaderGraph integration issue with VFX and Fog.
- The Editor is slowed down when a Volume Profile with many Overrides is open in the Inspector window
- Lightmap "View" button is not symmetric and has an empty space
Add comment