0
Unity Bug

Linux GUI errors

Joseph Ferano 8 months ago • updated by Lazlo Bonin (Lead Developer) 2 months ago 7 1 duplicate

Hi, just wanted to report these exceptions that I got after installing Bolt. Not much to say in terms of how to reproduce. I started a new project, installed Bolt, and this happened.

I am on Ubuntu 17 and Unity2017.1.0xf3Linux, if that helps.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayout.FlexibleSpace () (at /home/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:262)
Ludiq.GeneratePropertyProvidersPage.OnContentGUI
 () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/GeneratePropertyProvidersWindow/GeneratePropertyProvidersPage.cs:52)
Ludiq.Page.DrawContent () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)
Ludiq.Wizard.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:103)
Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)
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 
/home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:272)
UnityEditor.HostView.Invoke (System.String methodName) (at /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:265)
UnityEditor.HostView.OnGUI () (at /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:94)
System.Collections.Generic.Stack`1[System.Boolean].Pop ()
UnityEditor.EditorGUI.EndChangeCheck () (at /home/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:316)
Ludiq.GraphInspectorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Graphs/Editor/Windows/GraphInspectorWindow.cs:173)
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 
/home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:272)
UnityEditor.HostView.Invoke (System.String methodName) (at /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:265)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /home/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:232)

Duplicates 1

Unity Bug

That seems like a Unity bug, because the error occurs from within a GUILayout.FlexibleSpace call. Maybe something is wrong with their Linux implementation? I suggest you submit a bug report to Unity with that first stack trace (the second is just a repercussion of the first failing). By looking at Unity's decompiled implementation, it seems that GUILayoutUtility.current or GUILayoutUtility.current.topLevel may be null behind the scenes.

In the mean time, that will prevent you from completing the setup wizard, but it shouldn't keep you from using Bolt.

I understand that this might also be because I'm on Ubuntu, but I can't type into the fuzzy finder when trying to create a new node. Has anyone else reported this? What seems to be happening is that the search box doesn't seem to be capturing the focus so when I type "qwer", I see the Unity control buttons toggling.

Thanks for submitting a report. I posted on the thread so I would be notified of updates.

I haven't had any other user report typing issues in the fuzzy finder, no. 

I might have to eventually download and setup Ubuntu on one of my machines to test it thoroughly, although Bolt has virtually no platform specific code, because all its GUI is wrapped by the Unity GUI system.

I figured as much, this is the first time I've been having major issues with Unity on Linux. I really hope they give a bit more love to the platform, because now that Rider has been released and keeps getting better, I'm ridiculously happy on Linux

Hi - just want to say that I have had the same issues with the fuzzy finder. I reported it on discord, but never got around reporting here - until now. 

I'm using Ubuntu (gnome) 17.10 and unity 20171.1.