Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2019.1.X
Votes
0
Found in
2018.2.17f1
Issue ID
1106047
Regression
No
"Marshal.SizeOf" throws an exception in IL2CPP builds when the object contains an array of objects with arrays
Reproduction steps:
1. Open "IL2CPPMarshalRepro2.zip" project
2. Open "Scene" scene
3. "Build and Run" for WebGL
4. Open your browsers Console window ("Ctrl" + "Shift" + "J" for Chrome)
5. See error "Failure: Type 'TopLevelObject' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed."
Expected Result: No exception errors occur
Actual Result: Errors appear in the Browser Console
Fixed in: 2019.2.0a2, 2018.3.6f1
Reproduced with: 2019.1.0a12, 2018.3.0f1, 2018.2.19f1, 2018.1.9f2, 2017.4.17f1
Note:
The issue appeared after 1083239 fix
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment