Search Issue Tracker

Fixed in 2019.1.X

Fixed in 2018.3.X

Votes

0

Found in

2018.3.0b10

Issue ID

1099225

Regression

Yes

Player Settings window is no longer displaying any information

UI Toolkit

-

Repro Steps:
- have Unity Editor with the Android build tools installed.
- download this project and load it on Mac - I'm on macOS Mojave 10.14: https://oc.unity3d.com/index.php/s/EbBLqRphloOsxhS
- Got to project Settings-> Player
- notice all the errors and that the player settings don't show anything

ArgumentException: GUILayout: Mismatched LayoutGroup.Repaint
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:311)
UnityEditor.EditorGUILayout.BeginScrollView (Vector2 scrollPosition, Boolean alwaysShowHorizontal, Boolean alwaysShowVertical, UnityEngine.GUIStyle horizontalScrollbar, UnityEngine.GUIStyle verticalScrollbar, UnityEngine.GUIStyle background, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9096)
UnityEditor.EditorGUILayout.BeginScrollView (Vector2 scrollPosition, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9066)
UnityEditor.EditorGUILayout+ScrollViewScope..ctor (Vector2 scrollPosition, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9025)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:277)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, Matrix4x4 worldTransform, Rect clippingRect, Boolean isComputingLayout) (at /Users/builduser/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:244)

Does not occur on Windows.
I've tried:
- reopening the Project Settings Window
- restarting Unity
- restarting my Mackbook
- reinstalling Unity
Nothing seemed to allow me to use the Player settings window again
If i make a new project, the player settings window will default back to Mac Standalone settings and that seems to fix it, but then it breaks back again as soon as I turn to Android Settings again. This, in turn, makes setting up a build for Android impossible, so it's a major blocker.

Reproduced on: 2018.3.0b10
Not reproduced on: 2018.3.0b9 or 2019.1.0a9

Comments (3)

  1. Qili97

    Apr 23, 2020 14:06

    Same bug in unity 2019.2.1f1

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Android.SDKManager..ctor () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.Android.SDKManager.GetInstance () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.Android.AndroidPlatformIconProvider.GetCurrentSetAndroidSDKVersion () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.Android.AndroidPlatformIconProvider.UpdateSDKVersion () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.Android.AndroidPlatformIconProvider.get_targetSDKSupportsAdaptiveIcons () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.Android.PlayerSettingsEditorExtension.IconSectionGUI () (at <7ac42593e2164800905edc596770b55e>:0)
    UnityEditor.PlayerSettingsEditor.IconSectionGUI (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.Modules.ISettingEditorExtension settingsExtension, System.Int32 sectionIndex) (at D:/unity/Editor/Mono/Inspector/PlayerSettingsEditor/PlayerSettingsEditor.cs:810)
    UnityEditor.PlayerSettingsEditor.OnInspectorGUI () (at D:/unity/Editor/Mono/Inspector/PlayerSettingsEditor/PlayerSettingsEditor.cs:580)
    UnityEditor.AssetSettingsProvider.OnGUI (System.String searchContext) (at D:/unity/Editor/Mono/Settings/Providers/AssetSettingsProvider.cs:94)
    UnityEditor.SettingsWindow.DrawControls () (at D:/unity/Editor/Mono/Settings/SettingsWindow.cs:322)
    UnityEditor.SettingsWindow.DrawSettingsPanel () (at D:/unity/Editor/Mono/Settings/SettingsWindow.cs:313)
    UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:281)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    (this is first error in console)

  2. UDN_bf854b32-b089-4b56-887c-0e0e33d6c3cf

    Dec 03, 2019 18:52

    I am still facing the same issue with Unity 2019.2.14f1. I am using Windows and tried to build for Android.

  3. DarkDungeonStudio

    Jul 13, 2019 20:25

    I'm experiencing this issue on Windows for Unity 2019.3a05.
    Any luck?

    I've reinstalled and experiencing the same issue.

    Occurs with new and existing projects.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.