Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Dependency `Localization Settings Initialization` is no longer valid

Discussion in 'Unity 6 Beta' started by Peter77, Mar 29, 2024.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,624
    I was re-checking an older bug-report of mine whether it's fixed in Unity 6.0.0b11 and ran into this Localization/Addressables issue. @karl_jones

    Open the project attached to IN-54396 in Unity 6 and Build&Run a Windows Standalone Player to reproduce the exception.

    Unity 6.0.0b11, Addressables 2.0.8, Localization 1.5.0-pre.5

    Code (CSharp):
    1. OperationException : Dependency `Localization Settings Initialization` is no longer valid after calling WaitForCompletion.
    2. UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
    3. UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:37)
    4. UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    5. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    6. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    7. UnityEngine.Debug:LogError (object)
    8. UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at ./Library/PackageCache/com.unity.addressables/Runtime/AddressablesImpl.cs:222)
    9. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:set_OperationException (System.Exception) (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:340)
    10. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:Complete (UnityEngine.Localization.Settings.LocalizationSettings,bool,System.Exception,bool) (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:474)
    11. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:Complete (UnityEngine.Localization.Settings.LocalizationSettings,bool,string,bool) (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:443)
    12. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:Complete (UnityEngine.Localization.Settings.LocalizationSettings,bool,string) (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:427)
    13. UnityEngine.Localization.Operations.WaitForCurrentOperationAsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:InvokeWaitForCompletion () (at ./Library/PackageCache/com.unity.localization/Runtime/Operations/WaitForCurrentOperationAsyncOperationBase.cs:37)
    14. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.Localization.Settings.LocalizationSettings>:WaitForCompletion () (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:174)
    15. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.Localization.Settings.LocalizationSettings>:WaitForCompletion () (at ./Library/PackageCache/com.unity.addressables/Runtime/ResourceManager/AsyncOperations/AsyncOperationHandle.cs:199)
    16. UnityEngine.Localization.Settings.LocalizationSettings:GetInitializationOperation () (at ./Library/PackageCache/com.unity.localization/Runtime/Settings/LocalizationSettings.cs:323)
    17. UnityEngine.Localization.Settings.LocalizationSettings:get_InitializationOperation () (at ./Library/PackageCache/com.unity.localization/Runtime/Settings/LocalizationSettings.cs:123)
    18. UnityEngine.Localization.Settings.LocalizationSettings:OnEnable () (at ./Library/PackageCache/com.unity.localization/Runtime/Settings/LocalizationSettings.cs:267)
     
    karl_jones likes this.
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,392
    Hi,
    This sounds like this bug which we fixed in 1.5.0-pre.6.
    Thanks for reporting it though.
     
    Peter77 likes this.