Search Issue Tracker
By Design
Votes
0
Found in
5.5.1f1
Issue ID
902272
Regression
No
Crash in scripting_array_length when using StructLayout attribute and initializing two variables at the same position in memory
To reproduce:
1. Open the project, attached by tester
2. Select Main Camera in the scene
3. In the Inspector, change values in the New Behaviour Script
Expected: changing values in the Inspector does not crash the Editor when using StructLayout attribute
Actual: when the StructLayout attribute is used and two fields are initialized at the same position in memory, changing values in the inspector crashes the Editor
Reproduce in 5.3.8f1, 5.6.5p1, 5.5.3p1, 5.6.0p2, 2017.1.0b1
By design: Arrays in C# are dynamically allocated, and by having the memory layout as such that an array pointer overlaps with another property will cause a
crash, even in regular C# code.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Add comment