Search Issue Tracker
By Design
Votes
0
Found in
2018.2.0f2
Issue ID
1070707
Regression
No
Marshal.PtrToStructrure crashes the Editor if structure has an array field
To reproduce:
1. Open the attached project (marshaltest.zip)
2. Open the "Sample Scene" scene
3. Enter Play mode
Expected: the Editor doesn't crash
Reproduced in 2017.3.2f1, 2017.4.9f1, 2018.1.9f2, 2018.2.0f2, 2018.2.5f1, 2018.3.0a9
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- An “Assertion failed on expression” error is thrown when building an AssetBundle and two assets have the same name
- Real delta time is different than deltaTime and uscaledDeltaTimeFixed when using multiple monitors with different refresh frequencies set in Windows options
- Persisted event listeners are reset when collapsing and expanding a component in the Inspector
- Floating Material Preview window has a burger icon button that does nothing when pressed
- TreeView drag and drop operation is not cancelled when a modal opens over it
Resolution Note:
Mono cannot handle marshaling a struct field that is a generic instance.