Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
0.8.0-preview.8
Issue ID
1230474
Regression
No
[ECS] DOTS compiler bug error is thrown when subtracting from float3.zero
How to reproduce:
1. Open the "ECSSampleRepro.zip" project
2. Check the Console
Expected result: No errors appear in the Console
Actual result: The following error appears in the Console: "DCICE007: Could not find field for local captured variable for argument of WithReadOnly..."
Reproducible with: 2019.3.7f1, 2020.1.0b3, 2020.2.0a5
Could not test with: 2017.4, 2018.4 - ECS not supported
Reproducible with package versions: 0.6.0-preview.24, 0.8.0-preview.8
Workaround: Setting the variable to float3.zero in another statement prevents the error.
-
Resolution Note:
This error is to be expected and not related to float3. By replacing the initialization of nearestTargetPosition with float3.zero, the copyTargetPositions variable becomes unused and the WithReadOnly(copyTargetPositions) fails. We are already tracking that particular failure elsewhere.
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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
This is a duplicate of issue #1217354