0
Answered

Help with errors after 1.3 update

GhostAegis 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

So for the most part I had a fairly smooth process while updating to 1.3. However there are a few lingering errors and warning, and any help would be appreciated in fixing them so that I can get underway again. It looks like the errors have something to do with Cinemachine? And the warning seems Rewired related, but I'm not sure exactly what's wrong. Things seem to be working okay otherwise.

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 Cinemachine.Editor.CinemachineVirtualCameraEditor+CollectGizmoDrawers..cctor () [0x00027] in C:\...\Assets\Cinemachine\Base\Editor\Editors\CinemachineVirtualCameraEditor.cs:386 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()


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 Cinemachine.Utility.ReflectionHelpers.<TypeIsDefined>m__1 (System.Reflection.Assembly assembly) [0x00002] in C:\Users\Sayre\Documents\Unity\Bug Battles\Assets\Cinemachine\Base\Runtime\Core\ReflectionHelpers.cs:109 
  at System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator14`3[System.Reflection.Assembly,System.Type,<>__AnonType0`2[System.Reflection.Assembly,System.Type]].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[<>__AnonType0`2[System.Reflection.Assembly,System.Type]].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[<>__AnonType0`2[System.Reflection.Assembly,System.Type],System.Type].MoveNext () [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.Count[Type] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Cinemachine.Utility.ReflectionHelpers.TypeIsDefined (System.String fullname) [0x0008a] in C:\...\Assets\Cinemachine\Base\Runtime\Core\ReflectionHelpers.cs:111 
  at Cinemachine.PostFX.PostFXAutoImport+EditorInitialize..cctor () [0x00006] in C:\...\Assets\Cinemachine\PostFX\Editor\PostFXAutoImport.cs:19 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()


Warnings:

Failed to load types in assembly 'Rewired_Bolt_Runtime, 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.TypeUtility+<GetTypesSafely>d__32.MoveNext () [0x00017] in C:\Users\lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\TypeUtility.cs:814 
UnityEngine.Debug:LogWarning(Object)
Ludiq.<GetTypesSafely>d__32:MoveNext() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/TypeUtility.cs:818)
Ludiq.RuntimeCodebase:.cctor() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/RuntimeCodebase.cs:36)
Ludiq.MemberUtility:.cctor() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/MemberUtility.cs:29)
Ludiq.MemberUtility:.cctor() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/MemberUtility.cs:18)
Ludiq.OptimizedReflection:GetPropertyAccessor(PropertyInfo) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Optimization/OptimizedReflection.cs:247)
Ludiq.OptimizedReflection:GetPropertyAccessor(PropertyInfo) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Optimization/OptimizedReflection.cs:226)
Ludiq.OptimizedReflection:SetValueOptimized(PropertyInfo, Object, Object) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Optimization/OptimizedReflection.cs:198)
Ludiq.FullSerializer.fsMetaProperty:Write(Object, Object) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/Reflection/fsMetaProperty.cs:131)
Ludiq.FullSerializer.fsReflectedConverter:TryDeserialize(fsData, Object&, Type) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/Converters/fsReflectedConverter.cs:105)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_5_Converter(Type, fsData, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:861)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_4_Cycles(Type, fsData, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:851)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_3_Inheritance(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:826)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_2_Version(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:730)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_1_CycleReference(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:675)
Ludiq.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:628)
Ludiq.FullSerializer.fsReflectedConverter:TryDeserialize(fsData, Object&, Type) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/Converters/fsReflectedConverter.cs:97)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_5_Converter(Type, fsData, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:861)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_4_Cycles(Type, fsData, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:851)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_3_Inheritance(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:826)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_2_Version(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:730)
Ludiq.FullSerializer.fsSerializer:InternalDeserialize_1_CycleReference(Type, fsData, Type, Object&, List`1&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:675)
Ludiq.FullSerializer.fsSerializer:TryDeserialize(fsData, Type, Type, Object&) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Dependencies/FullSerializer/fsSerializer.cs:628)
Ludiq.Serialization:DeserializeJson(fsSerializer, String, Object&, Boolean) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:166)
Ludiq.Serialization:DeserializeInto(SerializationData, Object&, Boolean) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:113)
Ludiq.LudiqScriptableObject:UnityEngine.ISerializationCallbackReceiver.OnAfterDeserialize() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Unity/LudiqScriptableObject.cs:48)


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

I can let ya know about Rewired. Are you using the integration in 1.3? Hasnt been up to date with the new folder structures. Since it's automatic, it relies on the old folders, so the warning persists. Unfortunately you must remove it,..Otherwise, rewired polling  and all other API works fine. I'll see about releasing my integration as source tonight for the events, and fix port definitions for 1.3+ Then you'll have something to replace it with for now. Though it doesn't contain nearly as many, but has on input, connect, disconnect and pre-disconnect.

+1

Ah, that makes sense! Well that's fine, I can work around that for now. As long as the rest of it works it shouldn't matter much. I'll let the Rewired dev know that Bolt changed, hopefully they'll be able to update.

Weirdly, pulling out the Rewired Bolt integration seems to have fixed all the errors, including the ones that looked like they were Cinemachine related.

That seems to have sorted it then. Thanks for your help!

Answered

Hi GhostAegis!

Let's go over each error:

  1. This error seems to be related to Cinemachine, not Bolt 
  2. This error seems to be related to the Post FX part of Cinemachine, not Bolt
  3. This error is related to the Rewired Bolt integration. It has unfortunately probably been built with older (pre 1.3) DLLs of Bolt, and would need to be updated. I will email the Rewired devs to let them know.