Search Issue Tracker
Fixed
Votes
0
Found in
5.4.3f1
Issue ID
852445
Regression
No
Marshal.SizeOf() throws ArgumentException with IL2CPP
Reproduction steps:
1) Download and open user's attached project
2) Make sure that Android is selected as Platform
3) Make sure that Scripting Backend is set to IL2CPP
4) Build and run this project on any Android device
5) Using ADB check output and notice:
ArgumentException: Type 'CTcpPacket' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.
Expected results:
Application built with IL2CPP scripting backend should be working same as Mono2x (should not throw ArgumentException)
Actual results:
ArgumentException is being thrown.
Reproduced with: 5.6.0a3, 5.5.0f2, 5.4.3f1, 5.3.7p2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on EnsureUniqueSiblingName when calling GameObjectUtility.EnsureUniqueNameForSibling() with a null argument
- Changes are not applied when selecting Platform settings for Plugins
- Particle System only collides with one Terrain Collider at a time when Collision Type is set to 'World'
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
Add comment