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. Dismiss Notice

Question Release version of localization tools broke addressables build

Discussion in 'Localization Tools' started by syjgin, Sep 25, 2021.

  1. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Hello.
    Today I upgraded localization to version 1.0.1 from 1.0.0-pre.10, and now I can not build the addressables, which is necessary to use localization in the builds. Previously there are other errors, but I cleared the addressables build cache, so, for now there are only this three exceptions is displayed and nothing happens (I was waiting for the half an hour). Can this be fixed in some way? Tomorrow is deadline for the investor meeting application, and I wanted to submit fresh build, but now I can not:(
     
  2. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
  3. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    From the editor log:
    Code (CSharp):
    1. [00:00:04] Enlighten: Finished 1 Bake Ambient Probe job (0,00s execute, 0,00s integrate, 0,07s wallclock)
    2. EditorUpdateCheck: Response {"updateinterval":3600} updateurl =  interval = 3600
    3. Refresh completed in 0,075836 seconds.
    4. RefreshInfo: RefreshV2(AllowForceSynchronousImport) scanfilter:
    5. RefreshProfiler: Total: 75,808ms
    6. Refresh completed in 0,081939 seconds.
    7. RefreshInfo: RefreshV2(AllowForceSynchronousImport) scanfilter:
    8. RefreshProfiler: Total: 81,904ms
    9. Object reference not set to an instance of an object
    10. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    11. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    12. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    13. UnityEngine.Debug:LogError (object)
    14. UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptBase:BuildData<UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult> (UnityEditor.AddressableAssets.Build.AddressablesDataBuilderInput) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Build/DataBuilders/BuildScriptBase.cs:99)
    15. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContentImpl () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2529)
    16. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult&) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2500)
    17. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2283)
    18. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildPlayerData () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:356)
    19. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildScript (object) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:351)
    20. UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:124)
    21.  
    22. (Filename: Library/PackageCache/com.unity.addressables@1.19.4/Editor/Build/DataBuilders/BuildScriptBase.cs Line: 99)
    23.  
    24. Object reference not set to an instance of an object
    25. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    26. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    27. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    28. UnityEngine.Debug:LogError (object)
    29. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContentImpl () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2532)
    30. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult&) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2500)
    31. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2283)
    32. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildPlayerData () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:356)
    33. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildScript (object) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:351)
    34. UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:124)
    35.  
    36. (Filename: Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs Line: 2532)
    37.  
    38. Addressable content build failure (duration : 0:00:00)
    39. UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    40. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    41. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    42. UnityEngine.Debug:LogError (object)
    43. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContentImpl () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2533)
    44. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent (UnityEditor.AddressableAssets.Build.AddressablesPlayerBuildResult&) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2500)
    45. UnityEditor.AddressableAssets.Settings.AddressableAssetSettings:BuildPlayerContent () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs:2283)
    46. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildPlayerData () (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:356)
    47. UnityEditor.AddressableAssets.GUI.AddressableAssetsSettingsGroupEditor:OnBuildScript (object) (at Library/PackageCache/com.unity.addressables@1.19.4/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs:351)
    48. UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:124)
    49.  
    50. (Filename: Library/PackageCache/com.unity.addressables@1.19.4/Editor/Settings/AddressableAssetSettings.cs Line: 2533)
    51.  
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Can you see what is null at that line?
    I have sometimes seen this happen when addressables has a missing reference in its groups or settings. It can sometimes be fixed by going into debug mode in the inspector and removing the null item or reconnecting it. If that fails the addressables Analyzers may help and if that fails deleting the addressables folder and running the analyzer should set everything back up.
     
    Last edited: Sep 25, 2021
  5. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    In adressables groups itself nothing is null, in settings too. Stacktrace is related to the bokken machine, where this editor was built, not mine. Temporary solved by rollback via VCS. Has no idea, how to fix this by myself. Will wait for the 1.0.2
     
  6. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
  7. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    will submit bugreport today
     
    karl_jones likes this.
  8. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Solved by upagrading to 2020.3.19.f1. Looks like 18.f1 version incompactibility
     
    karl_jones likes this.
  9. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Update: not solved. After I tried to upgrade to 1.03, same bug is returned. For now, I can not build project with localization.
    So, 1.18.15 version of the Addressables and 1.0.0-pre10 version of the localization is the latest buildable config. Funny, that preview version is more stable, than release:)
     
  10. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Can you check the addressables settings asset to see if it has any empty or missing groups after you upgrade?

    Alternatively delete the addressables folder and then run the analyzers to re generate the settings file. It sounds like the settings may be corrupted
     
  11. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Hmm, looks like there are version incompatibility between localization and addressables exists: was not able to build 1.0.3 with 1.19.4, but now successfully built with 1.0.3 and 1.19.6. It's strange
     
  12. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    What error do you get?
     
  13. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    karl_jones likes this.
  14. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    So, previous successfull attempts was without restarting Unity after uprade to localization tools 1.03 and addressables 1.19.6. After upgrade & restart I have no ability to build localization. Removing addressables data folder is just not an option: I will have to again manually pick all previous addressables (including localization itself) and to not forget about each of that. When I try to build with "Update a previous build", there are
    "Previous build had 'Build Remote Catalog' disabled. You cannot update a player that has no remote catalog specified
    UnityEditor.GenericMenu:CatchMenu (object,string[],int) (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/GenericMenu.cs:127)" error. I can add this to be able to use incremental builds in future, but for now it's also not an option.
    When I select new build with a default script, there are that error appears https://forum.unity.com/threads/rel...roke-addressables-build.1174376/#post-7521491 . In adressables itself also there are no missing or something unusual: https://forum.unity.com/threads/rel...roke-addressables-build.1174376/#post-7521524
    I'm so tired of this: for now I have to stuck on the 1.0.0-pre10 version, but will try to switch to I2 localization or something similar as soon as will have time budget for that
     
  15. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Are you a able to file a bug report? I'm not sure why upgrading would break things.
     
  16. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Yes, I already created bugreport: https://fogbugz.unity3d.com/default.asp?1368403_2v94rqhm2i5hi9dq
    Btw, today I removed adressables data content and recreated all groups - as a result, localization itself is stops working even in the editor:

    UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=3b5ae3a9ce850548aa3b7c3055b16d4a, Type=UnityEngine.Localization.Tables.SharedTableData
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass57_0<UnityEngine.Localization.Settings.LocalizationSettings>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>)
    DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>) (at Library/PackageCache/com.unity.addressables@1.19.6/Runtime/ResourceManager/Util/DelegateList.cs:69)
    UnityEngine.Localization.InitializationOperation:<LoadLocales>b__10_0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>)
    DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>) (at Library/PackageCache/com.unity.addressables@1.19.6/Runtime/ResourceManager/Util/DelegateList.cs:69)
    UnityEngine.ResourceManagement.ChainOperationTypelessDepedency`1<UnityEngine.Localization.Locale>:OnWrappedCompleted (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>)
    DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Locale>) (at Library/PackageCache/com.unity.addressables@1.19.6/Runtime/ResourceManager/Util/DelegateList.cs:69)
    UnityEngine.Localization.LocalizedString:ForceUpdate () (at Library/PackageCache/com

     
  17. geordiemhall

    geordiemhall

    Joined:
    Jun 6, 2020
    Posts:
    20
    FWIW we may have run into something similar, where upgrading Localization (and thus Addressables) created a bunch of new "schema" scriptable objects, but all of the build/load paths seemed to be blank.

    For us it was generating "key not present in dictionary" errors when building Addressables, so may not be the same thing, but going through each asset and setting a LocalBuild and LocalLoad path seems to have fixed.

    Edit: Just saw in your screenshot that you had "key not present" errors logged out too, so might actually be same thing
     
    karl_jones likes this.
  18. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Thank you, there was missing build & load paths in the autogenerated resources exists. After I filled it with local build/load path, adressables build is become working
     
  19. geordiemhall

    geordiemhall

    Joined:
    Jun 6, 2020
    Posts:
    20
    Great!

    Yeah I'm not sure if blank paths are actually valid to have, but either way it'd save a lot of headaches if the Addressables team could add some better error messaging to this type of configuration issue (instead of just a super common Dictionary exception that's hard to google for), particularly if the auto-upgrade has some bugs that leave things in this state.
     
    karl_jones likes this.