Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Exception encountered in operation Resource<IAssetBundleResource>(StandaloneWindows64\localization-l

Discussion in 'Localization Tools' started by Goty-Metal, Mar 5, 2021.

  1. Goty-Metal

    Goty-Metal

    Joined:
    Apr 4, 2020
    Posts:
    168
    Hi there! so in the editor the game runs perfectly but when i make a build the log came with these errors:

    Code (CSharp):
    1. Exception encountered in operation Resource<IAssetBundleResource>(StandaloneWindows64\localization-locales_assets_all.bundle), status=Failed, result= : Invalid path in AssetBundleProvider: 'Library/com.unity.addressables/aa/Windows/StandaloneWindows64\localization-locales_assets_all.bundle''Library/com.unity.addressables/aa/Windows/StandaloneWindows64\localization-locales_assets_all.bundle'.
    2. UnityEngine.StackTraceUtility:ExtractStackTrace ()
    3. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    4. UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    5. UnityEngine.Debug:LogErrorFormat (string,object[])
    6. UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/AddressablesImpl.cs:238)
    7. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:set_OperationException (System.Exception) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:327)
    8. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:Complete (System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>,bool,string,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:421)
    9. UnityEngine.ResourceManagement.AsyncOperations.GroupOperation:CompleteIfDependenciesComplete () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/GroupOperation.cs:158)
    10. UnityEngine.ResourceManagement.AsyncOperations.GroupOperation:Execute () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/GroupOperation.cs:137)
    11. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:InvokeExecute () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:466)
    12. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:Start (UnityEngine.ResourceManagement.ResourceManager,UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,DelegateList`1<single>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:460)
    13. UnityEngine.ResourceManagement.ResourceManager:StartOperation<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>> (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>,UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:441)
    14. UnityEngine.ResourceManagement.ResourceManager:ProvideResourceGroupCached (System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>,int,System.Type,System.Action`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:652)
    15. UnityEngine.ResourceManagement.ResourceManager:ProvideResource (UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation,System.Type,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:400)
    16. UnityEngine.ResourceManagement.ResourceManager:ProvideResourceGroupCached (System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>,int,System.Type,System.Action`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:648)
    17. UnityEngine.ResourceManagement.ResourceManager:ProvideResources<UnityEngine.Localization.Locale> (System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>,bool,System.Action`1<UnityEngine.Localization.Locale>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:708)
    18. UnityEngine.AddressableAssets.AddressablesImpl:LoadAssetsAsync<UnityEngine.Localization.Locale> (System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation>,System.Action`1<UnityEngine.Localization.Locale>,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/AddressablesImpl.cs:615)
    19. UnityEngine.AddressableAssets.AddressablesImpl:LoadAssetsAsync<UnityEngine.Localization.Locale> (object,System.Action`1<UnityEngine.Localization.Locale>,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/AddressablesImpl.cs:649)
    20. UnityEngine.AddressableAssets.AddressablesImpl/<>c__DisplayClass77_0`1<UnityEngine.Localization.Locale>:<LoadAssetsWithChain>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/AddressablesImpl.cs:637)
    21. UnityEngine.ResourceManagement.ChainOperationTypelessDepedency`1<System.Collections.Generic.IList`1<UnityEngine.Localization.Locale>>:Execute () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/ChainOperation.cs:130)
    22. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.Localization.Locale>>:InvokeExecute () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:466)
    23. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<System.Collections.Generic.IList`1<UnityEngine.Localization.Locale>>:<.ctor>b__34_0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:118)
    24. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass55_0<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:309)
    25. DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/Util/DelegateList.cs:69)
    26. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:InvokeCompletionEvent () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:357)
    27. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:Complete (UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator,bool,string,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:439)
    28. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:Complete (UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator,bool,string) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:391)
    29. UnityEngine.AddressableAssets.Initialization.InitializationOperation/<>c__DisplayClass16_0:<LoadContentCatalogInternal>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/Initialization/InitializationOperation.cs:242)
    30. DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/Util/DelegateList.cs:69)
    31. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:InvokeCompletionEvent () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:357)
    32. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:Complete (UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator,bool,string,bool) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:439)
    33. UnityEngine.ResourceManagement.ChainOperation`2<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator, UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData>:OnWrappedCompleted (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/ChainOperation.cs:48)
    34. DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/Util/DelegateList.cs:69)
    35. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:InvokeCompletionEvent () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:357)
    36. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.AddressableAssets.ResourceLocators.IResourceLocator>:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:529)
    37. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:968)
    38. UnityEngine.ResourceManagement.ResourceManager:Update (single) (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/ResourceManager.cs:995)
    39. MonoBehaviourCallbackHooks:Update () (at C:/Users/Jose/Tech Tower Defense/Library/PackageCache/com.unity.addressables@1.16.16/Runtime/ResourceManager/Util/MonoBehaviourCallbackHooks.cs:26)
    40.  
    The last one, the "Exception encountered in operation Dependencies" appears several times.
    I made sure to build the addressables, also here are the software versions:
    - Unity 2019.4.21f1
    - Localization 0.10.0-preview
    - Addressables 1.16.16

    I had no issues in the past with previus versions of localization+addressables, also did not change any configuration on any of those or add new localized strings to the tables.

    I have no other addressables i just use them for Localization.

    Any ideas? Thanks in advance!
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,229
    Goty-Metal likes this.
  3. Goty-Metal

    Goty-Metal

    Joined:
    Apr 4, 2020
    Posts:
    168
    You sir, deserve a wonderful weekend, ¡thanks!
    You always reply super fast to help us with our headaches, again, thanks!
     
    karl_jones likes this.
  4. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    sorry to push up this article.
    I have a problem like this.
    I had my game to be published in steam now. some players not happened,but one player happened this exception:

    Exception encountered in operation Resource<IAssetBundleResource>(defaultlocalgroup_unitybuiltinshaders_3e38675c591250c0296c12d9db0c73a5.bundle), status=Failed, result= : Invalid path in AssetBundleProvider: 'StreamingAssets/aa/StandaloneWindows64/defaultlocalgroup_unitybuiltinshaders_3e38675c591250c0296c12d9db0c73a5.bundle'.
    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)



    And this is my version:
    unity:2019.4.1.f1
    addressables:1.16.15

    so could this problem be solved by the step 4:"Clean and Rebuild Addressables"
    too?
     
  5. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    I tried to update the addressable to 1.18.11
    and clean build all and cilick new build,it's seem some old player could not find another addressable file .....
     
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,229
    Can you get a player log file with the error?
    It looks like it could be due to a long file path, you could try reducing the length by changing the addressables group name method. By default it's Append Hash which makes it extra long, try changing it to just name.
     
  7. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    we have the first exception's player's log
    means the addrresable's version is 1.16.15 and then it is before we clean all the addressable to rebuild.

    after this action,we are waiting the player's log...

    and now I just tried to cancle the files'name not have the hash to update one version...hope no one have any problem s now...
     

    Attached Files:

  8. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    this is the log when we update the version which addressable(version is 1.18.11) is just clean all and rebuild(not clear the hash).
    but I want to say the hresource's file name have no hash is in the first version too . Only this file(hresource_assets_all.bundle) not has hash,just because maybe I would delete this one day

    it is just coincidence that the player has problem when he load the file.(He is not the player in first exception,before the just clean all's version he could play well)
     

    Attached Files:

    Last edited: Jul 1, 2021
  9. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,229
    Could you try updating to the latest Addressables version? I believe there was a bug with paths that was fixed in a newer version.
     
  10. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    yes we tried(the 1.18.11),but still has the second log's problem.
    and now I just update a version that every file's name has no hash.and that player(second log),he could play now.
    Just hope not happen again after this update...
     
  11. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,229
    Ok it does sound like it was caused by a long path, anything over 256 characters will cause issues on Windows. Changing from hash will help reduce the length of the file.
     
    shortlin likes this.
  12. shortlin

    shortlin

    Joined:
    Oct 30, 2014
    Posts:
    22
    But the second log has problem when he load this file:
    'D:/steam/steamapps/common/RoboLife-Days with Aino/RoboLife-Days with Aino_Data/StreamingAssets/aa\StandaloneWindows64\hresource_assets_all.bundle

    not other file which has the hash.why?

    Or another file's problem would not write the log?
     
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,229
    Looks like it could be related to this

    CRC Mismatch. Provided 1375f85f, calculated 788c6951 from data. Will not load AssetBundle 'aa\StandaloneWindows64\hresource_assets_all.bundle'

    Sounds like it could be an addressables issue, I'm not familiar with how the CRC works.
    Could you try here https://forum.unity.com/forums/addressables.156
     
    shortlin likes this.