Search Issue Tracker
Fixed in 5.1.4
Votes
0
Found in
5.1.2p1
Issue ID
716138
Regression
No
[iOS] GCHandle.Alloc throws error on il2cpp build
To reproduce:
1) Download and build project
2) Build and run il2cppTest scene on iOS
3) Notice error in console:
ArgumentException: Object contains non-primitive or non-blittable data.
at System.Runtime.InteropServices.GCHandle.Alloc (System.Object value, GCHandleType type) [0x00000] in <filename unknown>:0
reproduced on 5.1.2p2, 5.2.0b5 and 4.6.7p3 using iPad mini 2 (7.1.2)
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
JonC
Sep 13, 2016 20:54
This issue still exists when using GCHandleType.Pinned