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
- UTF-8 character in index.html is corrupted when building a WebGL project
- Help box icon in "Tile Palette" window is blurry in both Unity themes
- Memory leak when importing a non-embedded-texture FBX exported from Character Creator 5 with “Mouth Open as Morph” and “Convert Skinned Expressions to Morphs” enabled
- Drop-down component is overlapped with the default Tile Palette layout line
- VisionOS Player and Simulator crashes on "nw_read_request_report [C1] Receive failed with error "No message available on STREAM"" when playing a video through VisionOSVideoComponent
Add comment