0
Fixed

Exception during setup wizard execution

Lesha.VH 3 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 10

NullReferenceException: Object reference not set to an instance of an object

UnityEngine.GUILayout.FlexibleSpace () (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:282)
Bolt.TypeOptionsPage.OnContentGUI () (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Windows/TypeOptionsPage.cs:87)
Ludiq.Page.DrawContent () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:79)
Ludiq.Wizard.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:108)
Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:43)
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 /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:285)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:278)
UnityEditor.HostView.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:107)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:127)

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

1.22: nasty warning

Event.Use() should not be called for events of type Repaint

UnityEngine.Event:Use()
Ludiq.Canvas`1:DeleteSelection() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:354)
Ludiq.Widget`1:HandleContext() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Widgets/Widget.cs:157)
Ludiq.Widget`1:HandleInput() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Widgets/Widget.cs:41)
Ludiq.GraphElementWidget`1:HandleInput() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Widgets/GraphElementWidget.cs:78)
Bolt.UnitWidget`1:HandleInput() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Units/UnitWidget.cs:316)
Ludiq.Canvas`1:HandleWidgetInput() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:164)
Ludiq.Canvas`1:OnGraphGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Canvases/Canvas.cs:106)
Ludiq.GraphWindow:OnGUI() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Windows/GraphWindow.cs:312)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

1.22 exception:

NullReferenceException: Object reference not set to an instance of an object
Bolt.SavedVariables.WarnAndNullifyUnityObjectReferences (Bolt.VariableDeclarations declarations)
Bolt.SavedVariables.SaveDeclarations (Bolt.VariableDeclarations declarations)
Bolt.SavedVariables.OnExitPlayMode ()
Bolt.VariablesSaver.OnApplicationQuit ()

1.22 exception:

Failed to load unit options.
Try to rebuild them with 'Tools > Bolt > Build Unit Options...'.

System.Threading.ThreadAbortException: Thread was being aborted
  at Ludiq.OptimizedReflection.VerifyTarget (System.Type targetType, System.Object target, Boolean static) [0x00000] in <filename unknown>:0 
  at Ludiq.OptimizedReflection.VerifyInstanceTarget[UnitOptionRow] (System.Object target) [0x00000] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\Optimization\OptimizedReflection.cs:69 
  at Ludiq.InstancePropertyAccessor`2[Bolt.UnitOptionRow,System.String].SetValue (System.Object target, System.Object value) [0x0000a] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\Optimization\InstancePropertyAccessor.cs:133 
  at Ludiq.OptimizedReflection.SetValueOptimized (System.Reflection.PropertyInfo propertyInfo, System.Object target, System.Object value) [0x00000] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Runtime\Reflection\Optimization\OptimizedReflection.cs:159 
  at Ludiq.Dependencies.Sqlite.TableMapping+Column.SetValue (System.Object obj, System.Object val) [0x00000] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:1900 
  at Ludiq.Dependencies.Sqlite.SQLiteCommand+<ExecuteDeferredQuery>d__12`1[Bolt.UnitOptionRow].MoveNext () [0x00123] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:2144 
  at System.Collections.Generic.List`1[Bolt.UnitOptionRow].AddEnumerable (IEnumerable`1 enumerable) [0x0001a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:128 
  at System.Collections.Generic.List`1[Bolt.UnitOptionRow]..ctor (IEnumerable`1 collection) [0x00025] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:65 
  at System.Linq.Enumerable.ToList[UnitOptionRow] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Ludiq.Dependencies.Sqlite.SQLiteCommand.ExecuteQuery[UnitOptionRow] () [0x00000] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:2096 
  at Ludiq.Dependencies.Sqlite.TableQuery`1[Bolt.UnitOptionRow].GetEnumerator () [0x00008] in C:\Users\Lazlo\Projects\Ludiq\Ludiq.Core\Editor\Dependencies\SQLite\SQLite.cs:2889 
  at Bolt.UnitBase.Load () [0x000af] in C:\Users\Lazlo\Projects\Ludiq\Bolt.Flow\Editor\Options\UnitBase.cs:88 
UnityEngine.Debug:LogError(Object)
Bolt.UnitBase:Load() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:106)
Bolt.UnitBase:AutoLoad() (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Editor/Options/UnitBase.cs:35)
System.Reflection.MethodBase:Invoke(Object, Object[])
Ludiq.<>c__DisplayClass0_0:<.cctor>b__4() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:55)
Ludiq.BackgroundWorker:Work() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:142)

Pending Review

Hi Lesha!

Sorry you're experiencing these issues.

1. The FlexibleSpace exception is a harmless Unity bug, and it's usually been reported on the experimental Linux editor. Are you using Linux?

2. Never seen this one, but it seems like a GUI issue as well. Are you sure you're seeing this in v.1.2.2, or have you already updated to v.1.2.3?

3. WarnAndNullifyReferences: What are you doing when this error occurs? Are you losing any data after this error?

4. Do you have the experimental "Update Options Automatically" editor preference checked? This is what might be causing it (because Unity aborts the thread on the first project load I believe). Try disabling it and updating your options manually when you need it.

1. Mac OS Sierra 

2. on 1.2.2

3. Occurs when I press Play Button to Stop running the game. no data loss

4. Update Options Automatically - did not find such option - please point the path to it) thanks!

null ref exception - switch back to graph view after AOT rebuild

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayout.FlexibleSpace () (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:282)
Ludiq.AotPreBuildPage.OnContentGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/AotPreBuildWindow/AotPreBuildPage.cs:64)
Ludiq.Page.DrawContent () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:79)
Ludiq.SinglePageWindow`1[TPage].OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/SinglePageWindow.cs:74)
Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:43)
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 /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:285)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:278)
UnityEditor.HostView.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:107)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:127)

The flexible space bug is a Unity bug that has been reported and should be fixed in a future version:

https://forum.unity.com/threads/mac-os-various-gui-exceptions-after-os-dialogs-have-been-shown.515421/

The option I was referring to is in Tools > Bolt > Editor Preferences.

Fixed in Alpha

Marking as fixed in alpha. Please open up separate issues for other each bug if they pop again. Re: each issue:

  • FlexibleSpace: Unity Bug, linked
  • Repaint should not be used: Fixed in alpha
  • ThreadAbortException: Cannot reproduce
  • WarnAndNullifyReferences: Cannot reproduce