+2
Fixed

Bolt 2 alphas error after install until Unity is restarted

Ex-Crow 1 year ago updated by Lazlo Bonin (Lead Developer) 4 months ago 18 7 duplicates

1

NullReferenceException: Object reference not set to an instance of an object
Bolt.BoltProduct.Initialize () (at Assets/Ludiq/Bolt.Core/Editor/BoltProduct.cs:21)
Ludiq.ProductContainer.Initialize () (at Assets/Ludiq/Ludiq.Core/Editor/Products/ProductContainer.cs:72)
Rethrow as Exception: Failed to initialize product 'Bolt'.
UnityEngine.Debug:LogException(Exception)
Ludiq.ProductContainer:Initialize() (at Assets/Ludiq/Ludiq.Core/Editor/Products/ProductContainer.cs:76)
Ludiq.PluginContainer:Initialize() (at Assets/Ludiq/Ludiq.Core/Editor/Plugins/PluginContainer.cs:208)
Ludiq.PluginContainer:.cctor() (at Assets/Ludiq/Ludiq.Core/Editor/Plugins/PluginContainer.cs:17)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

2

NullReferenceException: Object reference not set to an instance of an object
Ludiq.LudiqProduct.Initialize () (at Assets/Ludiq/Ludiq.Core/Editor/Product/LudiqProduct.cs:31)
Ludiq.ProductContainer.Initialize () (at Assets/Ludiq/Ludiq.Core/Editor/Products/ProductContainer.cs:72)
Rethrow as Exception: Failed to initialize product 'Ludiq'.
UnityEngine.Debug:LogException(Exception)
Ludiq.ProductContainer:Initialize() (at Assets/Ludiq/Ludiq.Core/Editor/Products/ProductContainer.cs:76)
Ludiq.PluginContainer:Initialize() (at Assets/Ludiq/Ludiq.Core/Editor/Plugins/PluginContainer.cs:208)
Ludiq.PluginContainer:.cctor() (at Assets/Ludiq/Ludiq.Core/Editor/Plugins/PluginContainer.cs:17)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
Bolt Version:
2.0.0a3
Unity Version:
2018.3.0f2
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2

Duplicates 7

Restarting unity resolved the issue, but it looks bad.

Same for me with 2018.3.0f2. Latest Bolt 2 in not usable here as graph editor throws errors (same for FSMs)

Pending Review

Hi Szymon!

This seems like an error that would occur if the editor fails to load the resources (like icons) right after installing. Does it go away if you restart Unity?

Yes, it solves my problem. Thanks a lot

Some GUI errors from my end too after installing on a fresh project - Bolt 2.0.0a3, Unity 2018.3.0f2, NET 4.x

NullReferenceException: Object reference not set to an instance of an object
Bolt.BoltToolbar.OnExtractButtonGUI () (at Assets/Ludiq/Bolt.Core/Editor/BoltToolbar.cs:147)
Bolt.BoltToolbar.OnGUI () (at Assets/Ludiq/Bolt.Core/Editor/BoltToolbar.cs:136)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:129)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:244)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

NullReferenceException: Object reference not set to an instance of an object
Bolt.BoltToolbar.OnExtractButtonGUI () (at Assets/Ludiq/Bolt.Core/Editor/BoltToolbar.cs:147)
Bolt.BoltToolbar.OnGUI () (at Assets/Ludiq/Bolt.Core/Editor/BoltToolbar.cs:136)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at :0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at :0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:129)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:438)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent () (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:412)
UnityEngine.Experimental.UIElements.ImmediateStylePainter.DrawImmediate (System.Action callback) (at C:/buildslave/unity/build/Modules/UIElements/ImmediateStylePainter.cs:113)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoRepaint (UnityEngine.Experimental.UIElements.IStylePainter painter) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:98)
UnityEngine.Experimental.UIElements.VisualElement.Repaint (UnityEngine.Experimental.UIElements.IStylePainter painter) (at C:/buildslave/unity/build/Modules/UIElements/VisualElement.cs:845)
UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater.PaintSubTree (UnityEngine.Experimental.UIElements.VisualElement root, UnityEngine.Matrix4x4 offset, System.Boolean shouldClip, System.Boolean shouldCache, UnityEngine.Rect currentGlobalClip) (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeRepaintUpdater.cs:310)
UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater.PaintSubTreeChildren (UnityEngine.Experimental.UIElements.VisualElement root, UnityEngine.Matrix4x4 offset, System.Boolean shouldClip, System.Boolean shouldCache, UnityEngine.Rect textureClip) (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeRepaintUpdater.cs:328)
UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater.PaintSubTree (UnityEngine.Experimental.UIElements.VisualElement root, UnityEngine.Matrix4x4 offset, System.Boolean shouldClip, System.Boolean shouldCache, UnityEngine.Rect currentGlobalClip) (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeRepaintUpdater.cs:314)
UnityEngine.Experimental.UIElements.VisualTreeRepaintUpdater.Update () (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeRepaintUpdater.cs:35)
UnityEngine.Experimental.UIElements.VisualTreeUpdater.UpdateVisualTree () (at C:/buildslave/unity/build/Modules/UIElements/VisualTreeUpdater.cs:70)
UnityEngine.Experimental.UIElements.Panel.Repaint (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:507)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:230)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:68)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
+1
Pending Review

Hi TowerCrow,

Did you restart Unity after importing the alpha, as indicated in the Install instructions?

We're having an issue with the resources loading right after importing in the Alpha, but we haven't got to fixing it yet. Usually just restarting fixes it for good.

Restart did indeed get rid of the errors. I just thought I'll post them here so it's a documented issue.

EDIT:  I missed that particular part of the installation instructions.

Confirmed

Just marking this as confirmed in case other people get it.

Will fix eventually, might not make it in time for Alpha 4.

Pending Review

Hi Andrew,

Is this just after a Bolt 2 install, before restarting Unity or entering playmode?

If so it might be related to:

https://support.ludiq.io/communities/5/topics/2591-bolt-2-alphas-error-after-install-until-unity-is-restarted

The issue occurs as soon as bolt a graph of any kind is opened. Installs without issue.

Sorry I guess it would help to reference the video AND the time index. 0:01:45 of this vid 

Pending Review

Hi,

Seeing as you're using Bolt 2, did you restart right after importing? 

See: https://support.ludiq.io/communities/5/topics/2591-bolt-2-alphas-error-after-install-until-unity-is-restarted

Let me know if you still get the error after a restart.

Thank you this worked for me!

For some reason, restarting the editor seems to fix the issue, this was not the case before.

Fixed (Unreleased)

Hi everyone,

I'm attempting a fix for this in the next version. It seemed to have worked in Peek, but Bolt is much more complex, so there may be edge cases I missed.

Hopefully Bolt should now work instantly after a (re)import or a Unity version change. 

If not, in any case, restarting the editor is always a valid workaround.