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
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
- Sprite Renderer image is changed when Mask Interaction is turned by C# script
- URP Player remains in Windows Background processes when the application is closed
Add comment