Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2018.3.X, 2019.1.X
Votes
0
Found in
2017.3.0a1
2018.2.0a1
2018.2.17f1
2019.1.0a1
Issue ID
1115412
Regression
No
[IL2CPP] Build generates incorrect code when using MarshalAsAttribute on a IntPtr parameter
Steps to reproduce:
1. Download 1115412_repro.zip project
2. Switch platform to UWP and build project
3. Open Visual Studios solution
4. Search for "static_cast<int32_t>(___result_count2))" in Assembly-CSharp_0.cpp
Results: In generated code "___result_count2" varible should be a pointer.
_____result1_marshaled_unmarshaled_dereferenced =
reinterpret_cast<IntPtrU5BU5D_t4013366056*>(SZArrayNew(IntPtrU5BU5D_t4013366056_il2cpp_TypeInfo_var, static_cast<int32_t>(___result_count2)));
Reproduced with: 2019.1.0a13, 2018.3.2f1, 2017.4.18f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment