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
- [Android] [Particle System] "ParticleSystem.GeometryJob" sometimes takes up to ~20 ms in the worker thread when initializing 5 Particle Systems
- Can't change OpenXR settings when switching Build Profiles
- L(a,b) expression in float fields has erratic behaviour when ordering due to using instanceID as an index
- InvalidOperationException is thrown when switching to a custom Debug Draw Mode in Scene View
- [Android][Vulkan] Skybox and Environment effects flicker in the Player when using the Vulkan Graphics API
Add comment