Search Issue Tracker

Fixed

Votes

0

Found in [Package]

0.11.2-preview.2

Issue ID

1288759

Regression

No

[ECS] ITriggerEventsJob job handle is not registered as a job dependency

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the user's attached project ("PhysicsCallbackRepro.zip")
2. In the Toolbar select Jobs and toggle "JobsDebugger" on
3. Enter Play mode

Expected results: The dependencies created are registered as part of the Physics system that executes them
Actual result: The dependency is not registered as a part of the Physics system, they do not get executed and an Error is thrown

Reproducible with: 2019.4.14f1, 2020.1.11f1, 2020.2.0b10, (ECS 0.11.1-preview.4 - 0.11.2-preview.1)
Could not test with: 2018.4.28f1 (ECS did not exist yet)
Could not test with packages: ECS 0.13.0-preview.24 - 0.16.0-preview.21 (Couldn't upgrade)

Error:
InvalidOperationException: The system Unity.Transforms.EndFrameParentSystem reads Unity.Transforms.LocalToWorld via TestSytem:TriggerEventsJob but that type was not returned as a job dependency. To ensure correct behavior of other systems, the job or a dependency of it must be returned from the OnUpdate method.
Unity.Entities.JobComponentSystem.AfterOnUpdate (Unity.Jobs.JobHandle outputJob, System.Boolean throwException) (at Library/PackageCache/com.unity.entities@0.11.1-preview.4/Unity.Entities/JobComponentSystem.cs:102)
Unity.Entities.JobComponentSystem.Update () (at Library/PackageCache/com.unity.entities@0.11.1-preview.4/Unity.Entities/JobComponentSystem.cs:148)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.11.1-preview.4/Unity.Entities/ComponentSystemGroup.cs:445)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.