SEHException on UWP

Forums 💬 NodeCanvas ⚙️ Support SEHException on UWP

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18251
    dward
    Participant

      Hi,

      I’m getting the following error from within FSM:

      SEHException: External component has thrown an exception.
      at UnityEngineProxy.InternalCalls.PInvokeCalls.GameObject_CUSTOM_GetComponentsInternal(IntPtr param_0, Int32 param_1, Boolean param_2, Boolean param_3, Boolean param_4, Boolean param_5, Int64 param_6)
      at UnityEngineProxy.InternalCalls.GameObject_CUSTOM_GetComponentsInternal(Object self, Type type, Boolean useSearchTypeAsArrayReturnType, Boolean recursive, Boolean includeInactive, Boolean reverse, Object resultList)
      at UnityEngine.GameObject.GetComponents[T]()
      at NodeCanvas.StateMachines.FSM.GatherDelegates()
      at NodeCanvas.StateMachines.FSM.OnGraphStarted()
      at NodeCanvas.Framework.Graph.StartGraph(Component agent, IBlackboard blackboard, Action1 callback)
      at NodeCanvas.Framework.GraphOwner
      1.StartBehaviour()
      at NodeCanvas.Framework.GraphOwner.<DelayedStart>d__38.MoveNext()
      at UnityEngine.SetupCoroutine.InvokeMoveNext(IEnumerator enumerator, IntPtr returnValueAddress)
      at UnityEngine.SetupCoroutine.$Invoke1InvokeMoveNext(Int64 instance, Int64* args)
      at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
      (Filename: <Unknown> Line: 0)

      The platform I’m running on is UWP(Windows store apps).

      The component that is having “GetComponents” called on it is non-null. I can successfully log out its name but when I log out the object I get “BaseObject: NotAvailableDuringDebugging”.

      Any ideas?

      #18255
      Gavalakis
      Keymaster

        Hey,

        Hmm..
        What version of Unity and NodeCanvas is this on?
        Also, could it be that you have any “Missing Script” component attached on the gameobject?

        #18254
        dward
        Participant

          Hey,

          Thanks for getting back to me.

          No missing scripts in the logs but I have just noticed this line precedes every SEHException.

          Exception thrown: ‘System.InvalidCastException’ in mscorlib.ni.dll

          Unity version: 5.4.1p1
          NodeCanvas version: 2.5.6

          I should mention that everything is absolutely fine in the editor, the exceptions only appear when running the UWP project.

          The version of NodeCanvas I’m using has been customised in some areas by my client so I can’t do a straight update. I can modify any problem areas you recommend though.

          Thanks again.

          #18253
          Gavalakis
          Keymaster

            Hello again,

            I hope they did not modified something in the ReflectionTools.cs file 🙂
            Does simply removing or commenting out the GatherDelegates() call in FSM.OnGraphStarted method still impose any issues?
            We would have to rule out that the problem is only happening in that GatherDelegate methods.

            Let me know.
            Thanks.

            #18252
            dward
            Participant

              The issue also occurs in GraphOwner.graphIsLocal.get but no longer throws an exception when

              var sc = GetComponents(typeof(IScriptableComponent)).Cast<IScriptableComponent>().ToList();

              is changed to

              var sc = GetComponents<IScriptableComponent>().ToList();

              When GatherDelegates() is commented out that out removes all occurrences at the moment.

              ReflectionTools doesn’t look to have been modified and is at version 2.5.6.

              Thanks.

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.