Search Issue Tracker

Fixed in 0.14.X

Votes

0

Found in [Package]

0.11.1-preview.4

Issue ID

1259225

Regression

No

"Unexpected error while post-processing lambdas" error is thrown when entity query with .WithDeallocateOnJobCompletion is used

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached project "1259225.zip"

Expected result: no errors are thrown to the Console
Actual result: "Unexpected error while post-processing lambdas" error is thrown to the Console

Reproducible with: 2019.4.2f1 (0.6.0-preview.24, 0.11.1-preview.4), 2020.1.0b13 (0.11.1-preview.4), 2020.2.0a15 (0.11.1-preview.4)
Could not test with: 2018.4.24f1, 0.5.1-preview.11 and earlier - console errors while downgrading

  1. Resolution Note (fix version 0.14):

    Fixed with better error message that actually describes the problem: "error DC0012: WithDeallocateOnJobCompletion requires its argument to be a local variable that is captured by the lambda expression."

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.