Search Issue Tracker
Active
Under Consideration for 1.2.X, 1.3.X, 7000.0.X
Votes
1
Found in [Package]
1.2.1 - Entities
1.3.X - Entities
7000.0.0a1
Issue ID
ECSB-1096
Regression
No
Burst compilation error "BadImageFormatException: Expected reference type but got type kind 17" is thrown when using generics with ISystem
How to reproduce:
1. Open the “Reproduce-BadImageFormat“ project
2. Enter the Play Mode
3. Observe the Console window
Expected result: No errors are thrown in the Console window
Actual result: “BadImageFormatException: Expected reference type but got type kind 17“ error thrown in the Console window
Reproducible with: 1.0.16 (2022.3.28f1), 1.2.1 (2022.3.28f1, 6000.0.1f1)
Could not test with: 0.51.1-preview.21 (2021.3.38f1) (ISystem was not implemented yet)
Reproducible on: macOS 13.5.2 (Intel), Windows 11 (User’s)
Not reproducible on: No other environments tested
Note: The issue stems from the “[assembly: RegisterGenericSystemType(typeof(GenericSystem<TestType>))]“ code snippet.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Add comment