0
Fixed

Errors updating from Bolt 1.3.0b2 to Bolt 1.3.0

Kesha 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 2

Please need help!

I updated from version 1.3.0 beta2 to 1.3.0.
Could have been in this way with 1.3.0 beta2 to 1.3.0 beta3 to 1.3.0 beta4 etc.

Unity 17.3



Failed to deserialize scriptable object.
System.Runtime.Serialization.SerializationException: Deserialization into 'Ludiq.DictionaryAsset' failed. ---> System.TypeInitializationException: An exception was thrown by the type initializer for Ludiq.RuntimeCodebase ---> System.Exception: Failed to load types in assembly 'Lasm.BoltAddons.UnitTools.FlowControl.Editor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. ---> System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371
  at Ludiq.RuntimeCodebase..cctor () [0x00062] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:40
  --- End of inner exception stack trace ---
  at Ludiq.RuntimeCodebase..cctor () [0x0006e] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:44
  --- End of inner exception stack trace ---
  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& processors) [0x00063] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:758
  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& processors) [0x0011c] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:730
  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& processors) [0x00049] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:675
  at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:628
  at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result) [0x00000] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:599
  at Ludiq.FullSerializer.fsDictionaryConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) [0x00197] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\Converters\fsDictionaryConverter.cs:83
  at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x0001a] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:861
  at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:851
  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& processors) [0x00159] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:826
  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& processors) [0x0011c] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:730
  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& processors) [0x00049] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:675
  at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:628
  at Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) [0x00082] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\Converters\fsReflectedConverter.cs:97
  at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x0001a] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:861
  at Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) [0x00032] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:851
  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& processors) [0x00159] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:826
  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& processors) [0x0011c] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:730
  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& processors) [0x00049] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:675
  at Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) [0x0003d] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Dependencies\FullSerializer\fsSerializer.cs:628
  at Ludiq.Serialization.DeserializeJson (Ludiq.FullSerializer.fsSerializer serializer, System.String json, System.Object& instance, Boolean forceReflected) [0x0000a] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Serialization\Serialization.cs:166
  at Ludiq.Serialization.DeserializeInto (SerializationData data, System.Object& instance, Boolean forceReflected) [0x0002e] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Serialization\Serialization.cs:113
  --- End of inner exception stack trace ---
  at Ludiq.Serialization.DeserializeInto (SerializationData data, System.Object& instance, Boolean forceReflected) [0x0007f] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Serialization\Serialization.cs:127
  at Ludiq.LudiqScriptableObject.UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize () [0x00010] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Unity\LudiqScriptableObject.cs:48
UnityEngine.Debug:LogError(Object, Object)
Ludiq.LudiqScriptableObject:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Unity/LudiqScriptableObject.cs:55)

--------------------------

System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetExportedTypes () [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:376
  at plyLibEditor.plyCustomEd.CreateCustomEditorsList[BloxBlockScriptGenerator] (System.Type attributeType) [0x0002b] in D:\DevUnity\_SOURCE\plyLib\plyLibEditor\CustomEditor\plyCustomEd.cs:27
  at plyLibEditor.plyCustomEd.CreateCustomEditorsDict[BloxBlockScriptGenerator] (System.Type attributeType) [0x00006] in D:\DevUnity\_SOURCE\plyLib\plyLibEditor\CustomEditor\plyCustomEd.cs:60
  at BloxEditor.BloxScriptGenerator..cctor () [0x000d7] in D:\DevUnity\_SOURCE\Blox\BloxEditor\Blox\ScriptGen\BloxScriptGenerator.cs:64
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

-----------------------------

ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
Ludiq.RuntimeCodebase..cctor () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/RuntimeCodebase.cs:40)
Rethrow as Exception: Failed to load types in assembly 'Lasm.BoltAddons.UnitTools.FlowControl.Editor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Ludiq.RuntimeCodebase..cctor () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/RuntimeCodebase.cs:44)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Ludiq.RuntimeCodebase
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:758)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:730)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:675)
Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:628)
Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:599)
Ludiq.FullSerializer.fsDictionaryConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance_, System.Type storageType) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/Converters/fsDictionaryConverter.cs:83)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:861)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:851)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:826)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:730)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:675)
Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:628)
Ludiq.FullSerializer.fsReflectedConverter.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Object& instance, System.Type storageType) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/Converters/fsReflectedConverter.cs:97)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_5_Converter (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:861)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_4_Cycles (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type resultType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:851)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_3_Inheritance (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:826)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_2_Version (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:730)
Ludiq.FullSerializer.fsSerializer.InternalDeserialize_1_CycleReference (System.Type overrideConverterType, Ludiq.FullSerializer.fsData data, System.Type storageType, System.Object& result, System.Collections.Generic.List`1& processors) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:675)
Ludiq.FullSerializer.fsSerializer.TryDeserialize (Ludiq.FullSerializer.fsData data, System.Type storageType, System.Type overrideConverterType, System.Object& result) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:628)
Ludiq.Serialization.DeserializeJson (Ludiq.FullSerializer.fsSerializer serializer, System.String json, System.Object& instance, Boolean forceReflected) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:166)
Ludiq.Serialization.DeserializeInto (SerializationData data, System.Object& instance, Boolean forceReflected) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:113)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for Ludiq.Codebase
Ludiq.PluginContainer.Initialize () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Plugins/PluginContainer.cs:77)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:136)

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
+1
Fixed in Alpha

Hi Kesha!

So it seems that the issue here is that you have some DLLs (apparently Jason's community extension DLL) that is no longer compatible with v.1.3 (due to internal changes). Jason would need to recompile those with the latest version of Bolt. In the mean time, they fail to load in .NET and cause errors not just in Bolt, but also in some other third party plugins you have installed, like BloxEditor. 

I can't fix the error itself, but I'll make Bolt a lot more error-resistant for reflection type loads in the next version. You will only get a warning when a DLL fails to load, so unless these types are actually in use somewhere in your graphs or variables, they will not fail to deserialize.