Search Issue Tracker

Fixed

Votes

0

Found in [Package]

1.16.1

Issue ID

ADDR-1775

Regression

Yes

[Addressables] Errors when trying to edit the Addressable Profiles BuildPath

Package: Build Pipeline - Addressables

-

Errors spam the console and sometimes the Editor freezes when trying to edit Build Location fields in the Addressable Profiles window.

Repro steps:
- download this small project or create a new project
- make sure the eaddresables apckage is intalled
- open the Addresables Settings and the Addresables Profiles windows
- try to edit and copy-paste the Default Profile fields: LocalLoadPath, LocalBuildPath, BuildTarget etc
- one of 2 things may happen: either the editor will freeze completely or there will be lots of erros in the console.

Reproducible with Unity 2019.4.19f1, 2019.4.18f1, 2020.2.3f1 , 2021.1.0b4, 2021.2.0a3 and 2019.3
Seems to be more of a n issue which Addressable package is used:
reproducible with 1.16.16, 1.16.1
cannot repro with 1.15.1.

The errors i get:

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AddressableAssets.Settings.GroupSchemas.BundledAssetGroupSchema.get_HostingServicesContentRoot () (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/Settings/GroupSchemas/BundledAssetGroupSchema.cs:423)
UnityEditor.AddressableAssets.HostingServices.HostingServicesManager.GetAllContentRoots () (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/HostingServices/HostingServicesManager.cs:428)
UnityEditor.AddressableAssets.HostingServices.HostingServicesManager.ConfigureAllHostingServices () (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/HostingServices/HostingServicesManager.cs:405)
UnityEditor.AddressableAssets.HostingServices.HostingServicesManager.OnSettingsModification (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings s, UnityEditor.AddressableAssets.Settings.AddressableAssetSettings+ModificationEvent evt, System.Object obj) (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/HostingServices/HostingServicesManager.cs:398)
UnityEditor.AddressableAssets.Settings.AddressableAssetSettings.SetDirty (UnityEditor.AddressableAssets.Settings.AddressableAssetSettings+ModificationEvent modificationEvent, System.Object eventData, System.Boolean postEvent, System.Boolean settingsModified) (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/Settings/AddressableAssetSettings.cs:1356)
UnityEditor.AddressableAssets.GUI.AddressableAssetSettingsInspector.OnInspectorGUI () (at Library/PackageCache/com.unity.addressables@1.16.16/Editor/GUI/AddressableAssetSettingsInspector.cs:246)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

ArgumentException: Getting control 3's position in a group with only 3 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <fe7ee1881b524b0d9443f74417fb598b>:0)
UnityEngine.GUILayoutUtility.BeginLayoutArea (UnityEngine.GUIStyle style, System.Type layoutType) (at <fe7ee1881b524b0d9443f74417fb598b>:0)
UnityEngine.GUILayoutUtility.DoBeginLayoutArea (UnityEngine.GUIStyle style, System.Type layoutType) (at <fe7ee1881b524b0d9443f74417fb598b>:0)
UnityEditor.EditorGUILayoutUtilityInternal.BeginLayoutArea (UnityEngine.GUIStyle style, System.Type LayoutType) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEditor.HostView.BeginOffsetArea (UnityEngine.Rect screenRect, UnityEngine.GUIContent content, UnityEngine.GUIStyle style) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEditor.DockArea.OldOnGUI () (at <bef6d2fbef1348939b77102b4cf6a6e6>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <06214b245dbb4d10a9cefd10639bb04e>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <06214b245dbb4d10a9cefd10639bb04e>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <06214b245dbb4d10a9cefd10639bb04e>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <06214b245dbb4d10a9cefd10639bb04e>:0)

  1. Resolution Note:

    Fixed Editor freeze in 1.17.7-preview.
    Unable to reproduce error logs.

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.