0 votes
asked in Bug Report by
edited by

Hi Author!Great Asset,Thank you!

Howerver I met some trouble,when i imported umotion in my project,Exception happened as following(i am using Unity2017.3,and the umotion 1.05p01):

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 E:\UNITY_PROJECTS\UMotionPro\Assets\Cinemachine\Base\Editor\Editors\CinemachineVirtualCameraEditor.cs:386 

UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

 and

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 E:\UNITY_PROJECTS\UMotionPro\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 E:\UNITY_PROJECTS\UMotionPro\Assets\Cinemachine\Base\Runtime\Core\ReflectionHelpers.cs:111 

  at Cinemachine.PostFX.PostFXAutoImport+EditorInitialize..cctor () [0x00006] in E:\UNITY_PROJECTS\UMotionPro\Assets\Cinemachine\PostFX\Editor\PostFXAutoImport.cs:19 

UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

It seems not work well with cinemachine?i know it may not be umotion's fault,but it is still a little annoying, is it possible solved in future versions?Thank you!

Moderated: Added "Cinemachine" to question title.

1 Answer

0 votes
answered by Expert (54k points)
selected by
 
Best answer

Hi syowang,
thank you very much for your bug report and for the nice words.

I've taken a look at the parts of the source code of Cinemachine that throw this exception. It looks like while Unity is still reloading the assemblies after UMotion was imported, Cimeachine is trying to access the assemblies even though they haven't finished loading yet.

Long story short, I'm afraid there isn't much I can do to prevent this exceptions from happening. They need to be fixed by the Cinemachine developers (Unity) somehow. I would suggest that you issue a bug report to Unity, they will know what to do smiley

It seems not work well with cinemachine?

As far as I know, UMotion should work fine in combination with Cinemachine. Did you discover any other problems with it? 

Best regards,
Peter

commented by
Thank you!I got it!

Soxware Support

Here you get official product support by the developer and the community for all Soxware Products for Unity®.

Post as guest, login via Facebook or create an account.

Ask questions, report bugs or provide feedback. Please use the correct category and always post in english.

For private email support, please use the Support Form to create a support ticket.

Copyright © 2017 Soxware Interactive | All Rights Reserved | Impressum

...