Search Issue Tracker
Won't Fix
Votes
2
Found in [Package]
1.2.3 - Entities
1.3.X - Entities
7000.0.0a1
Issue ID
ECSB-1153
Regression
No
PlayMode Tests fail with “System.Exception : This method should have been replaced by source gen.” exception when running Tests with Jobs inside
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the Test Runner window (Window > General > Test Runner)
3. Open the “PlayMode” tab
4. Run the tests
5. Observe the test output
Expected result: The tests pass successfully
Actual result: The tests fail due to “System.Exception : This method should have been replaced by source gen.” exception
Reproducible with: 0.51.1-preview.21 (2021.3.39f1), 1.2.3 (2022.3.34f1, 6000.0.7f1)
Reproducible on: Windows 10
Not reproducible on: No other environment tested
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
IJobEntity jobs are only meant to be used from inside systems. Using .Run or .Schedule from outside a system is not supported. For a reference on how to test that kind of jobs, check Unity.Entities.Tests/ForEachCodegen/JobEntityISystemTests.cs in the entities package.