Search Issue Tracker

Fixed in 0.5.0-preview.17

Votes

0

Found in [Package]

0.2.0-preview.18, 0.4.0-preview.10

Issue ID

1203905

Regression

No

[ECS] Invalid IL code is generated and errors are thrown when using ECS IL generation

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached project ("case_1203905-Onmaku.zip")
2. Open Test Runner
3. Run the tests ("E7.Onmaku.SimfileEditor.Tests.dll > SimfileEditorTests > InitializeTest > BasicAction")
4. Inspect the console

Expected results: Tests succeeds, no errors in the console (generated IL code is valid)
Actual results: Test fails, "InvalidProgramException: Invalid IL code: ldflda" errors are thrown

Reproducible with: 2019.2.17f1, 2019.3.0f4, 2020.1.0a18
Couldn't test with 2017.4 (ECS package is not supported), 2018.4 (project breaking after downgrading)
Reproducible with package versions: 0.2.0-preview.18, 0.4.0-preview.10

Note: With older ECS versions (0.2.0-preview.18) the IL error is "stfld" instead of "ldflda"

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.