+2
Confirmed

Bolt 2 alphas error after install until Unity is restarted

TowerCrow 4 months ago • updated by Lazlo Bonin (Lead Developer) 3 weeks ago 10 5 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
.NET Version:
4.x
Bolt 2

Duplicates 5

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)

Under 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
Under 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.