0

Failed to deserialize behaviour.

andsville 7 months ago updated by Daniel 6 months ago 1

Hello, I am receiving the below error after installing Peek into a Bolt project. It occurs when a game object with a specific state machine attached is instantiated. Removing the asset Peek and or removing the Toggled Start Flow State removes the error. I have the newest Unity/Peek & Bolt. Hope you can help. Cheers

Failed to deserialize behaviour.

System.Runtime.Serialization.SerializationException: Deserialization into 'Bolt.Variables' failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotSupportedException: Collection is read-only.

at System.ThrowHelper.ThrowNotSupportedException (System.ExceptionResource resource) [0x0000b] in <437ba245d8404784b9fbab9b439ac908>:0

at System.Collections.ObjectModel.ReadOnlyCollection`1[T].System.Collections.Generic.ICollection.Add (T value) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0

at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)

at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <437ba245d8404784b9fbab9b439ac908>:0

--- End of inner exception stack trace ---

at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <437ba245d8404784b9fbab9b439ac908>:0

at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0

at Ludiq.FullSerializer.fsIEnumerableConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) [0x0007f] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00098] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00098] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsIEnumerableConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) [0x0005b] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00098] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00098] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00022] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0015c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x0011c] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1[Ludiq.FullSerializer.fsObjectProcessor]& processors) [0x00049] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.Serialization.DeserializeJson (Ludiq.FullSerializer.fsSerializer serializer, System.String json, System.Object& instance, System.Boolean forceReflected) [0x0001e] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.Serialization.DeserializeInto (Ludiq.SerializationData data, System.Object& instance, System.Boolean forceReflected) [0x0003b] in <0c215dcd73b64ea081955bf35be307b8>:0

--- End of inner exception stack trace ---

at Ludiq.Serialization.DeserializeInto (Ludiq.SerializationData data, System.Object& instance, System.Boolean forceReflected) [0x000b0] in <0c215dcd73b64ea081955bf35be307b8>:0

at Ludiq.LudiqBehaviour.UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize () [0x00016] in <0c215dcd73b64ea081955bf35be307b8>:0

UnityEngine.Debug:LogError(Object, Object)

Ludiq.LudiqBehaviour:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize()

UnityEditor.AssetPreview:GetAssetPreview(Object)

Ludiq.Peek.PreviewUtility:TryGetPreview(Object, Texture2D&) (at Assets/Ludiq/Ludiq.Peek/Editor/Utility/PreviewUtility.cs:46)

Ludiq.Peek.TreeViewToolbars:Draw(Boolean, ToolbarControlProvider, Object, Object[], Boolean, String, Rect, Rect, Boolean) (at Assets/Ludiq/Ludiq.Peek/Editor/Toolbars/Integrations/TreeViewToolbars.cs:32)

Ludiq.Peek.TreeViewToolbars:OnItemGUI(ToolbarControlProvider, Object, Rect, Rect, Boolean) (at Assets/Ludiq/Ludiq.Peek/Editor/Toolbars/Integrations/TreeViewToolbars.cs:125)

Ludiq.Peek.HierarchyToolbars:OnHierarchyItemGUI(Int32, Rect) (at Assets/Ludiq/Ludiq.Peek/Editor/Toolbars/Integrations/HierarchyToolbars.cs:54)

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Unity Version:
2019.3.3f1 & 2019.3.6f1
Peek Version:
1.1.7

Hi,

Have you tried Tools/Bolt/Update Unit Options? 

Usually, these messages appear when there new stuff or change stuff and Bolt units haven't been updated yet.