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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment