Search Issue Tracker
Fixed in 0.12.X
Votes
0
Found in [Package]
preview.24 - 0.6.0
Issue ID
1231636
Regression
No
Unexpected error when using Entities.ForEach inside a method with a generic argument
How to reproduce:
1. Open the attached (TestProjectDefaultRP.zip) project
2. Open the Console Window
Expected result: No errors appear when using Entities.ForEach inside a method with a generic argument
Actual result: Error when using Entities.ForEach inside a method with a generic argument
Reproducible with: 2019.3.10f1, 2020.1.0b5, 2020.2.0a7
Reproducible with Entities Package version: preview.24 - 0.6.0,preview.19 - 0.7.0, preview.8 - 0.8.0, preview.6 - 0.9.0
Notes:
- Could not reproduce on 2018.4 or lower, because Dots were introduced in 2019.3
- Could not test on Entities Package version 0.5.1 and lower, because of reference errors
Full error:
Unexpected error while post-processing lambdas in ExampleSystem:GenericMethodWithCapture. Please report this error.
Sequence contains no matching element
at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00070] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Unity.Entities.CodeGen.LambdaJobsPostProcessor.Rewrite (Mono.Cecil.MethodDefinition methodContainingLambdaJob, Unity.Entities.CodeGen.LambdaJobDescriptionConstruction lambdaJobDescriptionConstruction) [0x00235] in E:\Files\case_1231636-TestProjectDefaultRP (1)\Library\PackageCache\com.unity.entities@0.9.0-preview.6\Unity.Entities.CodeGen\LambdaJobs\LambdaJobsPostProcessor.cs:344
at Unity.Entities.CodeGen.LambdaJobsPostProcessor.PostProcessImpl (Mono.Cecil.TypeDefinition[] componentSystemTypes) [0x00058] in E:\Files\case_1231636-TestProjectDefaultRP (1)\Library\PackageCache\com.unity.entities@0.9.0-preview.6\Unity.Entities.CodeGen\LambdaJobs\LambdaJobsPostP
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
Add comment