Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0a4
2018.1.5f1
Issue ID
1056184
Regression
Yes
ReflectionTypeLoadException breaks Editor GUI when using Explicit StructLayout in .NET 4.x
How to reproduce:
1. Open the attached project
2. Open 'TestStruct.cs' script from the Project window
3. Make some insignificant changes to the script
4. Return to the Editor
Expected result: After recompile, there are no Console errors caused and Editor GUI does not break.
Actual result: After recompile, there are ReflectionTypeLoadException and ArgumentException errors in the Console and Editor GUI starts to break after some time (or after forcing the script to recompile again).
Reproducible with - 2018.1.0a4, 2018.1.7f1, 2018.2.0b11, 2018.3.0a4
Not reproducible with - 2017.1.4p2, 2017.2.3p1, 2017.4.6f1, 2018.1.0a3
Notes:
- The reproduction steps that break Editor GUI are not consistent, it usually involves moving around GUI elements in the Editor window. However, ReflectionTypeLoadException errors are always reproducible.
- The Console errors are also reproducible when building the project and running the build.
Fixed in 2018.3.0a8
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
- Crash after the “State comes from an incompatible keyword space“ log when opening the project
- [Android] GameObject are not rendered at all or rendered black when in the custom shader “multi_compile_instancing“ is enabled with two “float4” instance properties are present on older devices
Add comment