Search Issue Tracker
Fixed
Votes
4
Found in [Package]
0.2.0-preview.18, 0.5.1-preview.11
Issue ID
1217026
Regression
No
Job Complete must be called before Scheduling another job with the same JobHandle
How to reproduce:
1. Open attached project "UnityRequests.zip" and scene "CollisionSystemTest"
2. Enter Play mode
3. Observe Console window
Expected result: "Entity Entity(1:1) collided with entity Entity(0:1)" are thrown
Actual result: errors are thrown(more detail in the notes)
Reproducible with: 2019.3.1f1 (0.2.0-prev.18, 0.5.1-prev.11), 2020.1.0a22(0.5.1-prev.11)
Could not test with: 2019.2.20f1(0.1.1-prev) and older (due to Entity errors in the console window)
Notes:
[2019.3 errors]
InvalidOperationException: The previously scheduled job CollisionSystem:CollisionSystemJob writes to the NativeArray CollisionSystemJob.UserJobData.NativeContainer. You must call JobHandle.Complete() on the job CollisionSystem:CollisionSystemJob, before you can read from the NativeArray safely.
[2020.1 errors]
InvalidOperationException: The previously scheduled job CollisionSystem:CollisionSystemJob writes to the UNKNOWN_OBJECT_TYPE CollisionSystemJob.UserJobData.NativeContainer. You must call JobHandle.Complete() on the job CollisionSystem:CollisionSystemJob, before you can read from the UNKNOWN_OBJECT_TYPE safely.
InvalidOperationException: The previously scheduled job CollisionSystem:CollisionSystemJob reads from the NativeArray<Velocity> CollisionSystemJob.InputVelocities. You are trying to schedule a new job Solver:ApplyGravityAndCopyInputVelocitiesJob, which writes to the same NativeArray<Velocity> (via ApplyGravityAndCopyInputVelocitiesJob.InputVelocities). To guarantee safety, you must include CollisionSystem:CollisionSystemJob as a dependency of the newly scheduled job.
And many more
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
supermeip
Jun 26, 2020 19:59
Im experiencing this issue on 2019.4