Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2019.3.0b2
2019.3.0b7
2020.1.0a2
Issue ID
1192459
Regression
Yes
[IMGUI] NullReferenceException error is thrown on opening the Player Settings window
NullReferenceException error is thrown on opening the Player Settings window.
Steps to repro:
1. Create a new Project.
2. File > Build Settings > Player Settings.
Actual Result:
NullReferenceException error is thrown in the console.
Expected Result:
No error in the console.
Reproducible on:
2020.1.0a9, 2020.1.0a2, 2019.3.0b7.
Working Fine in:
2020.1.0a1, 2019.3.0b1.
Environment:
Only on Windows 10.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUI.HasKeyboardFocus (System.Int32 controlID) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.EditorGUI.DoTextField (UnityEditor.EditorGUI+RecycledTextEditor editor, System.Int32 id, UnityEngine.Rect position, System.String text, UnityEngine.GUIStyle style, System.String allowedletters, System.Boolean& changed, System.Boolean reset, System.Boolean multiline, System.Boolean passwordField) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.EditorGUI.ToolbarSearchField (System.Int32 id, UnityEngine.Rect position, System.String text, System.Boolean showWithPopupArrow) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.EditorGUI.ToolbarSearchField (System.Int32 id, UnityEngine.Rect position, System.String[] searchModes, System.Int32& searchMode, System.String text) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.EditorGUI.ToolbarSearchField (UnityEngine.Rect position, System.String[] searchModes, System.Int32& searchMode, System.String text) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.EditorGUILayout.ToolbarSearchField (System.String text, UnityEngine.GUILayoutOption[] options) (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEditor.SettingsWindow.DrawToolbar () (at <2a08bc3d8f9c4796ba99475f6f6c6a6b>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Boolean eventIsPropagatedFromNonFocusableVisualElement) (at <f1698e07cca745e5a5c14af33687b6fc>:0)
UnityEditor.UIElements.Tooltip:SetTooltip(Single, Single)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Masks affect Sprite Renderers outside their range when a Light2D is present with specific Target Sorting Layers selected
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
adifrank
Nov 28, 2019 09:11
Scope was not disposed! You should use the 'using' keyword or manually call Dispose.
UnityEngine.Scope:Finalize() (at C:/buildslave/unity/build/Modules/IMGUI/GUI.cs:1704)