Search Issue Tracker
Fixed in 2017.2.X
Votes
0
Found in
5.6.1p4
Issue ID
923517
Regression
No
[IL2CPP] Casting Int32 to enum fails on runtime when app is built with il2cpp backend
Steps to reproduce:
1. Open attached project
2. Build app for UWP with il2cpp scripting backend
3. Open VS solution
4. Deploy on local machine
5. Observe errors when the app launches
Reproducible with: 2017.1.0f1, 2017.2.0b1
Full error:
System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'HutongGames.PlayMaker.Actions.EaseFsmAction+EaseType'.
Parameter name: value
at System.Reflection.MonoField.SetValueInternal (System.Reflection.FieldInfo fi, System.Object obj, System.Object value) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActionField (System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.FsmState state, System.Int32 actionIndex) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state) [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.FsmState.LoadActions () [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.Fsm.InitData () [0x00000] in <00000000000000000000000000000000>:0
at HutongGames.PlayMaker.Fsm.Init (UnityEngine.MonoBehaviour component) [0x00000] in <00000000000000000000000000000000>:0
at PlayMakerFSM.Init () [0x00000] in <00000000000000000000000000000000>:0
at PlayMakerFSM.Awake () [0x00000] in <00000000000000000000000000000000>:0
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- An "RefreshInternalV2 is called before InitialRefresh" error is thrown when opening a project where a build profile with Player settings added is selected
- MeshCollider preview gizmo disappears from the Scene view when overriding the mesh asset using any 3D editing tool
- Tutorial project is not created when started from the Get set up tab
- Audio Listener Component expands when selected
- [iOS] Frame Debugger rendering output doesn't work with iOS builds
Add comment