NodeCanvas Forums › Support › Exception: Cannot create an instance of an interface or abstract type…BBParam
Hey there, I’m using 3.0.3f1 from the asset store. When I try to add a Reflected/Faster Versions/Check Function and Check property I’m getting the below error in the editor. Nothing is created. They seem to work when creating action tasks (Execute Function, Get Property, etc.), but the conditional tasks can’t be created. This is happening in both BTs and FSMs.
Exception: Cannot create an instance of an interface or abstract type for NodeCanvas.Framework.BBParameter
ParadoxNotion.Serialization.FullSerializer.fsMetaType+<>c__DisplayClass21_0.<GetGenerator>b__0 () (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/Full Serializer/fsMetaType.cs:124)
ParadoxNotion.Serialization.FullSerializer.fsMetaType.CreateInstance () (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/Full Serializer/fsMetaType.cs:179)
ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TrySerialize (System.Object instance, ParadoxNotion.Serialization.FullSerializer.fsData& serialized, System.Type storageType) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/Full Serializer/Converters/fsReflectedConverter.cs:45)
ParadoxNotion.Serialization.FullSerializer.fsSerializer.Internal_Serialize (System.Type storageType, System.Object instance, ParadoxNotion.Serialization.FullSerializer.fsData& data, System.Type overrideConverterType) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/Full Serializer/fsSerializer.cs:438)
ParadoxNotion.Serialization.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Object instance, ParadoxNotion.Serialization.FullSerializer.fsData& data, System.Type overrideConverterType) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/Full Serializer/fsSerializer.cs:392)
ParadoxNotion.Serialization.JSONSerializer.Serialize (System.Type type, System.Object instance, System.Collections.Generic.List1[T] references, System.Boolean pretyJson) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/JSONSerializer.cs:51)
2[T1,T2] call) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Runtime/Serialization/JSONSerializer.cs:125)
ParadoxNotion.Serialization.JSONSerializer.SerializeAndExecuteNoCycles (System.Type type, System.Object instance, System.Action
NodeCanvas.Framework.BBParameter.SetBBFields (System.Object target, NodeCanvas.Framework.IBlackboard bb) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Framework/Runtime/Variables/BBParameter.cs:52)
NodeCanvas.Framework.Task.Create (System.Type type, NodeCanvas.Framework.ITaskSystem newOwnerSystem) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Framework/Runtime/Tasks/Task.cs:68)
NodeCanvas.Editor.TaskEditor+<>c__DisplayClass11_0.<ShowCreateTaskSelectionButton>b__0 (System.Type t) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Framework/Design/PartialEditor/Editors/TaskEditor.cs:121)
ParadoxNotion.Design.EditorUtils+<>c__DisplayClass11_0.<GetTypeSelectionMenu>b__0 (System.Object selectedType) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/EditorUtils/EditorUtils.ContextMenus.cs:43)
ParadoxNotion.Design.GenericMenuBrowser.ExecuteItemFunc (ParadoxNotion.Design.EditorUtils+MenuItemInfo item) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/GenericMenuBrowser.cs:573)
ParadoxNotion.Design.GenericMenuBrowser.DoTree (UnityEngine.Rect treeRect, UnityEngine.Event e) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/GenericMenuBrowser.cs:500)
ParadoxNotion.Design.GenericMenuBrowser.OnGUI (UnityEngine.Rect rect) (at Assets/3rdPartyPackages/ParadoxNotion/CanvasCore/Common/Design/PartialEditor/GenericMenuBrowser.cs:335)
UnityEditor.PopupWindow.OnGUI () (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
UnityEditor.HostView.OldOnGUI () (at <6f28216fea9f453abf2e05b770ed3ee4>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Boolean canAffectFocus) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean canAffectFocus) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a6a3aac9b47844afbb8dcc407683ae01>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <59837000ebf54955a9cb1d31caa86097>:0)
Hey,
Indeed there is a bug. Then I also realized another bug. Both are fixed and I have attached them for you here 🙂
Let me know if that works for you.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
I’ve not been able to test it extensively but I did a quick smoke test and I can add the desktop only version of Check Property and Check Function now. Thanks for your quick support. I’ll have more time to play around with it tonight; I’ll let you know if I encounter anymore problems.
Thanks again, stellar support, as always.
Thanks and you are very welcome! 🙂
Join us on Discord: https://discord.gg/97q2Rjh