Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physics samples do not work in Unity 2020.3.31 (LTS) #203

Open
CTVjweiss opened this issue Mar 21, 2022 · 0 comments
Open

Physics samples do not work in Unity 2020.3.31 (LTS) #203

CTVjweiss opened this issue Mar 21, 2022 · 0 comments

Comments

@CTVjweiss
Copy link

Opening the Physics Examples and running them in Unity 2020.3.31 (current LTS as of 3/21/22), results in the following runtime exception, and the objects falling through the floor.

System.IndexOutOfRangeException: Index {0} is out of range of '{1}' Length.
Thrown from job: Unity.Physics.Broadphase.DynamicVsDynamicBuildBranchNodePairsJob

If you disable compilation from burst, the full stack is:

IndexOutOfRangeException: Index 0 is out of range of '0' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <3be1a7ff939c43f181c0a10b5a0189ac>:0)
Unity.Physics.Broadphase+StaticVsDynamicBuildBranchNodePairsJob.Execute () (at Library/PackageCache/com.unity.physics@0.6.0-preview.3/Unity.Physics/Collision/World/Broadphase.cs:908)
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 <3be1a7ff939c43f181c0a10b5a0189ac>:0)

Running the samples in Unity 2020.1.9 works fine. Are there instructions for upgrading to 2020.3? I think it would be best for these samples to be on an LTS version for people trying to work with DOTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant