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.GraphOwner1.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”.
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.
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.