Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.3f1
2019.1.0a1
2019.2.0a1
Issue ID
1124667
Regression
No
Unity crashes when using marshaling
Steps to reproduce:
1. Create a new Project
2. Add QA-supplied script on an object in the scene
3. Run the scene
Reproduced in: 2017.4.21f1, 2018.3.7f1, 2019.1.0b4, 2019.2.0a6
Note: the crash still occurs when "throw" is uncommented
There seems to be an issue inside the code, but Unity should Debug the exception without crashing
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
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
- Crash on UnityEngine.UI.RawImage:OnPopulateMesh when playing Raw Image Texture animation with Sprite keyframes
- 32bit floating point RenderTexture blending feature is not available for WebGPU
Resolution Note:
The example code had invalid MarshalAs specification for the array field type. While Unity shouldn't crash, properly handling the invalid marshal specification is unlikely to happen.