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
- Sprites are cut off when using a custom alpha mask with a custom shader
- Screen.SetResolution() ignores width and height parameters when switching from Fullscreen to Windowed mode
- Crash on il2cpp::vm::Class::Init in the Player when handling FileNotFoundException in cascading catch blocks in async method
- Mesh with vertex animation shader renders incorrectly when using DirectX11 and AMD GPU
- Select Dependencies context menu doesn't work properly in Project Browser
supermeip
Jun 26, 2020 19:59
Im experiencing this issue on 2019.4