0
Not a bug

Shaderforge instantly crashes in Unity 5.5.2f1

stefan 7 years ago updated by Cameron B 7 years ago 7

I am on SF 1.34. When I click on the Shaderforge Window Button, it throws 3 erros but never shows up.


1.

AmbiguousMatchException: Ambiguous matching in method resolution
System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[] match) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Binder.cs:106)
System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoType.cs:245)
System.Type.GetMethod (System.String name, BindingFlags bindingAttr) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Type.cs:787)
ShaderForge.SF_PreviewWindow.SetupPreview ()
ShaderForge.SF_PreviewWindow..ctor (ShaderForge.SF_Editor editor)
ShaderForge.SF_Editor.InitializeInstance (UnityEngine.Shader initShader)
ShaderForge.SF_Editor.Init (UnityEngine.Shader initShader)
ShaderForge.SF_Editor.InitEmpty ()


2.

NullReferenceException: Object reference not set to an instance of an object
ShaderForge.SF_Editor.Update ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:249)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:242)
UnityEditor.HostView.SendUpdate () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:307)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:197)


3.

NullReferenceException: Object reference not set to an instance of an object
ShaderForge.SF_Editor.OnDestroy ()
UnityEditor.EditorWindow:Close()
ShaderForge.SF_Editor:Update()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


Any ideas?

Answer

Answer
Not a bug

I'm unable to reproduce this. It could be a broken install though, see if this helps! If not, let me know :) http://acegikmo.com/shaderforge/faq/?Q=erroronnewversion#erroronnewversion

Answer
Not a bug

I'm unable to reproduce this. It could be a broken install though, see if this helps! If not, let me know :) http://acegikmo.com/shaderforge/faq/?Q=erroronnewversion#erroronnewversion

So since we are primarily working with 5.5.0f3 I tested your steps there first because it was unusable as well. So for me it didn't work. Still the same three errors.I will try and create outside of our project and see if it works.

Even with an empty project on 5.5.0f3 I'm still getting the same errors.

Are you 100% sure it's SF 1.34? It works fine for me in 5.5.0f3

Yes I downloaded the latest SF version from the store. That is so weird. The project was literally empty and the version was a 100% 5.5.0f3. I still have project. You can download it here https://www.dropbox.com/s/u1z08l0ragcfp8m/Shaderforge.zip?dl=0. Maybe that helps :) Thanks for your efforts!

I tested Unity 5.5.0f3 and 5.5.2f1 with SF1.35. Still doesn't work.

I'm having this issue with 5.5.2 and higher and the suggested steps don't resolve it. I'm getting the same errors 1 and 3 as OP but not error 2. Working with a clean install of SF in a new, empty project.