FlowCanvas Forums › Support › Xbox One exception
Hi! Could not find any information about it but does FlowCanvas support Xbox One platform?
I’m getting this exception when running on it.
(Deserialization Error)</b>: Constructor of FlowCanvas.Nodes.GetVariable
1[System.Int32] threw an exception when creating an instance
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsMetaType.CreateInstance () [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.CreateInstance (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsIEnumerableConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[T] objectReferences, System.Object deserialized) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.JSONSerializer.Deserialize (System.Type type, System.String serializedState, System.Collections.Generic.List
at ParadoxNotion.Serialization.JSONSerializer.Deserialize[T] (System.String serializedState, System.Collections.Generic.List1[T] objectReferences, T deserialized) [0x00000] in <00000000000000000000000000000000>:0
1[T] objectReferences) [0x00000] in <00000000000000000000000000000000>:0
at NodeCanvas.Framework.Graph.Deserialize (System.String serializedGraph, System.Boolean validate, System.Collections.Generic.List
at NodeCanvas.Framework.Graph.Deserialize () [0x00000] in <00000000000000000000000000000000>:0
at NodeCanvas.Framework.Graph.UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize () [0x00000] in <00000000000000000000000000000000>:0
at System.Xml.Serialization.XmlnsAccessor..ctor () [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)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.Internal.fsIEnumerableConverter:TryDeserialize(fsData, Object&, Type)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_5_Converter(Type, fsData, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_4_Cycles(Type, fsData, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_3_Inheritance(Type, fsData, Type, Object&, List1&)
1&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_1_CycleReference(Type, fsData, Type, Object&, List
ParadoxNotion.Serialization.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter:TryDeserialize(fsData, Object&, Type)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_5_Converter(Type, fsData, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_4_Cycles(Type, fsData, Type, Object&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_3_Inheritance(Type, fsData, Type, Object&, List1&)
1&)
ParadoxNotion.Serialization.FullSerializer.fsSerializer:InternalDeserialize_1_CycleReference(Type, fsData, Type, Object&, List
ParadoxNotion.Serialization.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Type, Object&)
ParadoxNotion.Serialization.JSONSerializer:Deserialize(Type, String, List1, Object)
1, T)
ParadoxNotion.Serialization.JSONSerializer:Deserialize(String, List
NodeCanvas.Framework.Graph:Deserialize(String, Boolean, List`1)
NodeCanvas.Framework.Graph:Deserialize()
NodeCanvas.Framework.Graph:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()
System.Xml.Serialization.XmlnsAccessor:.ctor()(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Generating AOTclasses seems to partially fix the problem, but I’m still getting exceptions.
<i>XboxOnePlayer(10.46.1.31):4601</i> <b>(Deserialization Error)</b>: Object reference not set to an instance of an object.
at ParadoxNotion.Serialization.SerializedMethodInfo.OnAfterDeserialize () [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.Invoke_OnAfterDeserialize (System.Collections.Generic.List1[T] processors, System.Type storageType, System.Object instance) [0x00000] in <00000000000000000000000000000000>:0
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsIEnumerableConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.Internal.fsReflectedConverter.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List1[ParadoxNotion.Serialization.FullSerializer.fsObjectProcessor]& processors) [0x00000] in <00000000000000000000000000000000>:0
1[T] objectReferences, System.Object deserialized) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.FullSerializer.fsSerializer.TryDeserialize (ParadoxNotion.Serialization.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x00000] in <00000000000000000000000000000000>:0
at ParadoxNotion.Serialization.JSONSerializer.Deserialize (System.Type type, System.String serializedState, System.Collections.Generic.List
at ParadoxNotion.Serialization.JSONSerializer.Deserialize[T] (System.String serializedState, System.Collections.Generic.List1[T] objectReferences, T deserialized) [0x00000] in <00000000000000000000000000000000>:0
1[T] objectReferences) [0x00000] in <00000000000000000000000000000000>:0
at NodeCanvas.Framework.Graph.Deserialize (System.String serializedGraph, System.Boolean validate, System.Collections.Generic.List
at NodeCanvas.Framework.Graph.Deserialize () [0x00000] in <00000000000000000000000000000000>:0
at NodeCanvas.Framework.Graph.UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize () [0x00000] in <00000000000000000000000000000000>:0
at System.Collections.Generic.Dictionary`2+ValueCollection[TKey,TValue].get_Count () [0x00000] in <00000000000000000000000000000000>:0
Hello,
When working with AOT platforms, like Xbox One is for example, you need to generate an AOTClasses file from within the Preferred Types Editor window. Simply open up the Preferred Types Editor window and hit the “Generate AOTClasses.cs and link.xml Files” button.
Please check out this documentation link for more information: [LINK]
Let me know if that works for you.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
It solved the error. Thanks!