2017.3.0f1 + Odin + PostProcessing exception

Issue #241 resolved
Former user created an issue

For some reason, in 2017.3.0f1 when you have both the Unity PostProcessing stack (v2 latest) and Odin in the project, two exceptions are constantly logged.

ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes () (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
UnityEngine.Rendering.PostProcessing.PostProcessManager.<ReloadBaseTypes>m__0 (System.Reflection.Assembly a) (at Assets/Libraries/PostProcessing/Runtime/PostProcessManager.cs:73)
System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () (at <11c1c8f1ba1046b191f565f88728429e>:0)
UnityEngine.Rendering.PostProcessing.PostProcessManager.ReloadBaseTypes () (at Assets/Libraries/PostProcessing/Runtime/PostProcessManager.cs:80)
UnityEngine.Rendering.PostProcessing.PostProcessManager..ctor () (at Assets/Libraries/PostProcessing/Runtime/PostProcessManager.cs:41)
UnityEngine.Rendering.PostProcessing.PostProcessManager.get_instance () (at Assets/Libraries/PostProcessing/Runtime/PostProcessManager.cs:19)
UnityEngine.Rendering.PostProcessing.PostProcessManager.OnEditorReload () (at Assets/Libraries/PostProcessing/Runtime/PostProcessManager.cs:50)
ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes () (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
UnityEditor.Rendering.PostProcessing.EditorUtilities.<ReloadDecoratorTypes>m__0 (System.Reflection.Assembly a) (at Assets/Libraries/PostProcessing/Editor/Utils/EditorUtilities.cs:37)
System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () (at <11c1c8f1ba1046b191f565f88728429e>:0)
UnityEditor.Rendering.PostProcessing.EditorUtilities.ReloadDecoratorTypes () (at Assets/Libraries/PostProcessing/Editor/Utils/EditorUtilities.cs:45)
UnityEditor.Rendering.PostProcessing.EditorUtilities..cctor () (at Assets/Libraries/PostProcessing/Editor/Utils/EditorUtilities.cs:21)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Rendering.PostProcessing.EditorUtilities' threw an exception.

Now, it's the actual PostProcessing library throwing the exception when doing reflection, so I'm not sure it's Odin's fault however it's the only 3rd party library in my project having issues (with ~40 libraries.)

Also as far as I can tell, everything works fine from both libraries so it's not breaking, just annoying. Just thought I'd give you a heads up.

Comments (3)

  1. Tor Esa Vestergaard
    • changed status to open

    I haven't been able to replicate this error in Unity 2017.3.0f1 (or any other Unity version). I have checked that the pieces of code throwing the exception are in fact being run, and they are.

    Could you provide a project that reproduces this error?

  2. Timothy Raines

    I rebuilt the project, copied across my source and re-imported odin + post processing from packages (same version that was already in project) and I can't seem to replicate the issue anymore.

    Maybe just an upgrade quirk upgrading from 2017.1 to 2017.3. Regardless it seems to have fixed itself, so you can close this.

  3. Log in to comment