0
Under review
ShaderForge Editor Glitch
ShaderForge cannot render it's GUI or something and gives the follow error:
NullReferenceException: Object reference not set to an instance of an object
ShaderForge.SF_PassSettings.OnLocalGUI (Int32 yOffset, Int32 in_maxWidth)
ShaderForge.SF_Editor.DrawPreviewPanel (Rect r)
ShaderForge.SF_Editor.OnGUI ()
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)
Customer support service by UserEcho
Yeah no clue how to help you sorry, the choice to release this as a DLL means you can't debug it but by looking at your source I would take a wild guess and say this.ps used in this.ps.OnLocalGUI(yOffset2, (int)r.get_width()); on line #80 in SF_Editor.cs is null or something but without the source code to properly debug it I will never know.
Normally I would go into the source and fix broken assets like ProCore but because you don't want people knowing how awefully designed your code is I will expect you to fix it.
Yeah whatever, I'm an angry old man so the sooner we deal with this the sooner you can get rid of me and I can update my review to 5 stars again.
My Unity version is:
Version 5.4.0f3 (a6d8d714de6f) Personal
Tue, 26 Jul 2016 22:13:57 GMT
Branch: 5.4/release
With SourceForge version: v1.28
What did you do when it happened / do you have a repro case?
That's the thing, I just open the ShaderForge editor and if it doesn't hang Unity (which needs Task manager to terminate Unity) it does that instead.
When it is working though this will mostly happens as I press play button in the editor.
I uploaded a video of me demonstrating the bug in it's natural environment.
The video OP posted looks like a slightly different issue to what is visible in the screenshot he posted above. I wanted to chime in and say I am alsoe experiencing an issue that puts my shader forge in to a similar state to the screenshot he posted.
There are shader forge editor related errors in the console, the SF editor window is completely unresponsive and i can't Close the window. (mind you, the editor is still responsive). To correct the issue I have to restart Unity or alternatively kill the SF editor window by restoring the editor layout to default.
I'm not in the office right now but I'll try and remember to post repo steps when I get in to the office on Monday.
It is a very annoying bug and happens in between game start/stop. (For me anyway). Its really killing productivity, because I can't make changes, run the game, make more changes, stop the game, continue tweaking the shader, etc. It really breaks the workflow. Every time I want to change the play state I have to close the editor window for SF to make sure it doesn't break.
Again sorry I don't have note details right now. Will get back to you on Monday.
The tricky thing is that this is a very common symptom of a wide array of things that can happen. Essentially, this is the behavior of any null ref happening there. I'm unable to reproduce this, which is why I'll need a more clear repro case. I suspect it might have something to do with some specific nodes or specific settings that cause this to happen when pressing play.
I posted here as well with a similar crash: https://forum.unity3d.com/threads/shader-forge-a-visual-node-based-shader-editor.222049/page-109#post-2808284
OS X El Capitan on an iMac. I've tried Unity 5.3, 5.4 and various version of 5.4. I've reimported my project, reset all my layout settings.
So it looks like the reproduction steps are:
- Open Shader Forge
- Open a Shader
- Press Play
- Stop Play once your game is running
- Press Play again
- Stop Play
then Shader Forge window ceases to fully render and:NullReferenceException: Object reference not set to an instance of an object