Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

AddressableAssetsData errors when opening a project on a different computer.

Discussion in 'Addressables' started by petitbas, Mar 2, 2020.

  1. petitbas

    petitbas

    Joined:
    Sep 9, 2014
    Posts:
    17
    I have a project where both assets and app build correctly on my main Mac workstation but when a partner opens the same project on their end, the Addressable Groups window only shows the "Create Addressables Settings" button even though there's already an AddressableAssetsData folder/file set in the project.

    Clicking on "AddressableAssetsData/DefaultObject.asset" brings up this warning:

    Detected stack overflow when accessing AddressableAssetSettingsDefaultObject.Settings object.
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)


    Clicking on "AddressableAssetsData/AddressableAssetSettings.asset" brings up this error:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.AddressableAssets.GUI.AddressableAssetSettingsInspector.OnInspectorGUI () (at Library/PackageCache/com.unity.addressables@1.6.2/Editor/GUI/AddressableAssetSettingsInspector.cs:126)
    UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:521)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)


    I've now replicated this behavior on another MacOS system using Unity 2019.3.3f1 and Addressables 1.6.2.

    What could be causing this issue?
     
  2. Devriak

    Devriak

    Joined:
    Mar 6, 2015
    Posts:
    3
    I'm running into a similar issue, I can run the project on several different computers with no real issue. But our build server is hitting the same null ref when I click on the AddressableAssetSettings.asset.

    Did you ever manage to resolve this issue?
     
    UNITY-DEV01-f3p likes this.
  3. petitbas

    petitbas

    Joined:
    Sep 9, 2014
    Posts:
    17
  4. Devriak

    Devriak

    Joined:
    Mar 6, 2015
    Posts:
    3
    I see, yeah we are tyring to use the Localization package, so giving up addressables isn't really an option. Thank you for the response though!
     
    UNITY-DEV01-f3p likes this.
  5. SpiccyMayonnaise

    SpiccyMayonnaise

    Joined:
    May 10, 2018
    Posts:
    22
    Hi, was there ever a resolution found to this?
     
    UNITY-DEV01-f3p likes this.
  6. UNITY-DEV01-f3p

    UNITY-DEV01-f3p

    Joined:
    Jul 8, 2019
    Posts:
    2
    I reported the bug today and will post a link here if this gets made into an issue you can vote on.
     
    KB73 and petitbas like this.