playMaker

Author Topic: What kind of meaning is this error?  (Read 5924 times)

dasbin

  • Junior Playmaker
  • **
  • Posts: 92
    • View Profile
Re: What kind of meaning is this error?
« Reply #15 on: February 06, 2012, 03:37:03 PM »
Huh, it just happened again, but in different circumstances. A State I had added a few minutes ago just "corrupted" itself and is no longer selectable because of this error. The corruption actually happened during Playing (testing) within the editor, and was still corrupt upon stopping.
Again it was inside a Prefab Instance.

I have an idea, though. I have noticed a very regular recurring bug where sometimes variables themselves get corrupted. Every few hours, while working, a PlayMaker variable will suddenly have a blank name, not due to anything I did. It will spontaneously disappear from all the states it exists in, but the variable still exists. If you try to select it as a variable within an Action, it immediately de-selects itself.
 Perhaps this is sometimes causing a Prefab Instance state to become corrupted as a whole?

Here is the exact error.
Code: [Select]
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[UnityEngine.Object].get_Item (Int32 index)
HutongGames.PlayMaker.ActionData.LoadActionField (System.Object obj, System.Reflection.FieldInfo field, Int32 paramIndex)
HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.FsmState state, Int32 actionIndex)
HutongGames.PlayMaker.ActionData.LoadActions (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.FsmState.get_Actions ()
HutongGames.PlayMakerEditor.FsmEditor.CheckReloadActions (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMakerEditor.FsmEditor.Update ()
FsmEditorWindow.Update () (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:233)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj)
UnityEditor.HostView.Invoke (System.String methodName)
UnityEditor.HostView.SendUpdate ()
UnityEditor.EditorApplication.Internal_CallUpdateFunctions ()

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3631
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: What kind of meaning is this error?
« Reply #16 on: February 06, 2012, 08:54:43 PM »
I've tracked down a tricky bug with prefab instances that is probably causing these problems. Fix will be in the next beta build...