Search Unity

Addressables is killing me

Discussion in 'Addressables' started by CDF, Aug 24, 2019.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,313
    Using 1.1.9 I'm almost giving up on this. I just cannot get a stable consistent build to run on Android.
    Latest problem:

    1. Install on Android via Adb
    2. Immediate crash on boot
    3. Install again via Adb
    4. Application loads!

    Start game:

    1. CRC and load errors:
    Code (CSharp):
    1. Error while downloading Asset Bundle: CRC Mismatch. Provided 9de469a8, calculated 2e29d844 from data. Will not load AssetBundle 'jar:file:///data/app/com.mygame-LzGbEOVhHBJFnfrTkDkvfQ==/base.apk!/assets/aa/Android/Android/duplicateassetisolation1_assets_all_61e6ad5501c1c0fc5648c9226e5a3690.bundle'
    2.  
    3. 08-23 20:33:17.311 25865 25892 E Unity   : Error while downloading Asset Bundle: CRC Mismatch. Provided af14a9c1, calculated 87567e11 from data. Will not load AssetBundle 'jar:file:///data/app/com.mygame-LzGbEOVhHBJFnfrTkDkvfQ==/base.apk!/assets/aa/Android/Android/defaultlocalgroup_unitybuiltinshaders_753ffaed6d8970806e0ac4d56467fd09.bundle'
    4. 08-23 20:33:17.336 25865 25880 E Unity   : Exception encountered in operation Resource<IAssetBundleResource>(defaultlocalgroup_unitybuiltinshaders_753ffaed6d8970806e0ac4d56467fd09.bundle): RemoteAssetBundleProvider unable to load from url jar:file:///data/app/com.mygame-LzGbEOVhHBJFnfrTkDkvfQ==/base.apk!/assets/aa/Android/Android/defaultlocalgroup_unitybuiltinshaders_753ffaed6d8970806e0ac4d56467fd09.bundle, result='Received no data in response'.
    5. 08-23 20:33:17.336 25865 25880 E Unity   : UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    6. 08-23 20:33:17.336 25865 25880 E Unity   : System.Action`2:Invoke(T1, T2)
    7. 08-23 20:33:17.336 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    8. 08-23 20:33:17.336 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    9. 08-23 20:33:17.336 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted(AsyncOperation)
    10. 08-23 20:33:17.336 25865 25880 E Unity   : System.Action`1:Invoke(T)
    11. 08-23 20:33:17.336 25865 25880 E Unity   : UnityEngine.AsyncOperation:InvokeCompletionEvent()
    12. 08-23 20:33:17.336 25865 25880 E Unity   :
    13. 08-23 20:33:17.336 25865 25880 E Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    14. 08-23 20:33:17.336 25865 25880 E Unity   :
    15. 08-23 20:33:17.341 25865 25880 E Unity   : Exception encountered in operation Resource<IAssetBundleResource>(duplicateassetisolation1_assets_all_61e6ad5501c1c0fc5648c9226e5a3690.bundle): RemoteAssetBundleProvider unable to load from url jar:file:///data/app/com.mygame-LzGbEOVhHBJFnfrTkDkvfQ==/base.apk!/assets/aa/Android/Android/duplicateassetisolation1_assets_all_61e6ad5501c1c0fc5648c9226e5a3690.bundle, result='Request aborted'.
    16. 08-23 20:33:17.341 25865 25880 E Unity   : UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    17. 08-23 20:33:17.341 25865 25880 E Unity   : System.Action`2:Invoke(T1, T2)
    18. 08-23 20:33:17.341 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    19. 08-23 20:33:17.341 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    20. 08-23 20:33:17.341 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted(AsyncOperation)
    21. 08-23 20:33:17.341 25865 25880 E Unity   : System.Action`1:Invoke(T)
    22. 08-23 20:33:17.341 25865 25880 E Unity   : UnityEngine.AsyncOperation:InvokeCompletionEvent()
    23. 08-23 20:33:17.341 25865 25880 E Unity   :
    24. 08-23 20:33:17.341 25865 25880 E Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    25. 08-23 20:33:17.341 25865 25880 E Unity   :
    26. 08-23 20:33:17.564 25865 25880 E Unity   : Exception encountered in operation Dependencies: RemoteAssetBundleProvider unable to load from url jar:file:///data/app/com.mygame-LzGbEOVhHBJFnfrTkDkvfQ==/base.apk!/assets/aa/Android/Android/duplicateassetisolation1_assets_all_61e6ad5501c1c0fc5648c9226e5a3690.bundle, result='Request aborted'.
    27. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    28. 08-23 20:33:17.564 25865 25880 E Unity   : System.Action`2:Invoke(T1, T2)
    29. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    30. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    31. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.GroupOperation:CompleteIfDependenciesComplete()
    32. 08-23 20:33:17.564 25865 25880 E Unity   : System.Action`1:Invoke(T)
    33. 08-23 20:33:17.564 25865 25880 E Unity   : DelegateList`1:Invoke(T)
    34. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    35. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    36. 08-23 20:33:17.564 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourcePro
    37. 08-23 20:33:17.572 25865 25880 E Unity   : Exception encountered in operation Resource<GameObject>(PlayerGraphic Octohedron.prefab): Dependency Exception
    38. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    39. 08-23 20:33:17.572 25865 25880 E Unity   : System.Action`2:Invoke(T1, T2)
    40. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    41. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    42. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute()
    43. 08-23 20:33:17.572 25865 25880 E Unity   : System.Action`1:Invoke(T)
    44. 08-23 20:33:17.572 25865 25880 E Unity   : DelegateList`1:Invoke(T)
    45. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    46. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks()
    47. 08-23 20:33:17.572 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    48. 08-23 20:33:17.572 25865 25880 E Unity   : System.Action`1:Invoke(T)
    49. 08-23 20:33:17.572 25865 25880 E Unity   :
    50. 08-23 20:33:17.572 25865 25880 E Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    51. 08-23 20:33:17.572 25865 25880 E Unity   :
    52. 08-23 20:33:17.579 25865 25880 E Unity   : Exception encountered in operation Instance<InstanceProvider>(Resource<GameObject>(PlayerGraphic Octohedron.prefab): Dependency operation failed with System.Exception: Dependency Exception.
    53. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    54. 08-23 20:33:17.579 25865 25880 E Unity   : System.Action`2:Invoke(T1, T2)
    55. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    56. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    57. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute()
    58. 08-23 20:33:17.579 25865 25880 E Unity   : System.Action`1:Invoke(T)
    59. 08-23 20:33:17.579 25865 25880 E Unity   : DelegateList`1:Invoke(T)
    60. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    61. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks()
    62. 08-23 20:33:17.579 25865 25880 E Unity   : UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    63. 08-23 20:33:17.579 25865 25880 E Unity   : System.Action`1:Invoke(T)
    64. 08-23 20:33:17.579 25865 25880 E Unity   :
    65. 08-23 20:33:17.579 25865 25880 E Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    66. 08-23 20:33:17.579 25865 25880 E Unity   :
    67. 08-23 20:33:17.911 25865 25880 E Unity   : Unable to load Player
    68. 08-23 20:33:17.911 25865 25880 E Unity   : MyGame.Game:.ctor()
    69. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ContextCallback:Invoke(Object)
    70. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
    71. 08-23 20:33:17.911 25865 25880 E Unity   : System.Runtime.CompilerServices.MoveNextRunner:Run()
    72. 08-23 20:33:17.911 25865 25880 E Unity   : System.Action:Invoke()
    73. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ContextCallback:Invoke(Object)
    74. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
    75. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.Tasks.Task:FinishContinuations()
    76. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.Tasks.Task`1:TrySetResult(TResult)
    77. 08-23 20:33:17.911 25865 25880 E Unity   : System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Create()
    78. 08-23 20:33:17.911 25865 25880 E Unity   : MyGame.PlayerGraphic:Shatter()
    79. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ContextCallback:Invoke(Object)
    80. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
    81. 08-23 20:33:17.911 25865 25880 E Unity   : System.Runtime.CompilerServices.MoveNextRunner:Run()
    82. 08-23 20:33:17.911 25865 25880 E Unity   : System.Action:Invoke()
    83. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.ContextCallback:Invoke(Object)
    84. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)
    85. 08-23 20:33:17.911 25865 25880 E Unity   : System.Threading.Tasks.Task:FinishContinuations()
    86. 08-23 20:33:17.911 25865 25880 E Unity   : System.Thr
    2. Close Game
    3. Open game again, no errors.

    Why? Why do I need to open my game twice in order for it to work?
    What is a CRC mismatch? How do I fix that? Why is it happening?

    Getting really frustrated with all this. :(
    I don't feel like I'm doing anything complicated.
    I have some addressable assets and some non addressable scenes. Yet every day it's something new, some bug/error that I have no idea how to fix

    Guess I'll have to just slog though this one like every other issue
     
    Last edited: Aug 24, 2019
    xucian, Noblauch, Blueprinter and 3 others like this.
  2. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,313
  3. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,313
    This is what I get after installing:

    Code (CSharp):
    1. 01/01 00:00:00.000 -1 -1 Info : --------- beginning of main
    2. 01/01 00:00:00.000 -1 -1 Info : --------- beginning of system
    3. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:36:00.090 29823 29839 D         : PlayerBase::PlayerBase()
    4. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:36:00.090 29823 29839 D         : TrackPlayerBase::TrackPlayerBase()
    5. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:36:00.098   805 10041 D         : Failed to fetch the lookup information of the device 00000200
    6. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:36:00.134   805 10041 D         : Failed to fetch the lookup information of the device 00000201
    7. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:42:25.661 29823 29839 D         : PlayerBase::stop() from IPlayer
    8. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:42:59.587   890  6565 E         : Couldn't opendir /data/app/vmdl1117603012.tmp: No such file or directory
    9. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:43:11.327   890 25896 E         : Couldn't opendir /data/app/vmdl1215336473.tmp: No such file or directory
    10. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:43:13.937 30158 30174 D         : PlayerBase::PlayerBase()
    11. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:43:13.937 30158 30174 D         : TrackPlayerBase::TrackPlayerBase()
    12. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:43:13.946   805 10041 D         : Failed to fetch the lookup information of the device 00000200
    13. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:43:13.981   805 10041 D         : Failed to fetch the lookup information of the device 00000201
    14. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:44:28.177 30158 30174 D         : PlayerBase::stop() from IPlayer
    15. 01/01 00:00:00.000 -1 -1 Info : 08-23 21:46:40.258   890 25896 E         : Couldn't opendir /data/app/vmdl420718849.tmp: No such file or directory
    16.  
    On the second install, no such error
     
  4. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Thanks for letting us know. This does sound frustrating and I'm sorry you're hitting this. We've heard of issues where the game fails to load on first launch, then works fine, but have been unable to reproduce that ourselves. If you could file a bug against unity with your repro project that would be huge in helping us solve this.

    In addition, could you try building/running on your standalone platform (windows or mac)? We've heard the issue is there as well, but it would be helpful to know if you're only seeing this on android.
     
  5. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    I will add, that your logs are helpful. So if you cannot give us a repro project, we'll see what we can come up with based on the logs. But a repro project would be most useful.
     
  6. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,313
    Yep, I'm trying to get one created. If I can't repro in an empty project, I'll submit my actual project
     
    aurelien-morel-ubiant likes this.
  7. SviperSniper

    SviperSniper

    Joined:
    Mar 1, 2017
    Posts:
    37
    We have the same issue on Android devices.

    There is no CRC exception but it also throws an Exception with
    "RemoteAssetBundleProvider unable to load from url jar"
    with either "Request aborted" or "Received no data in response" as the result.

    We use verison 1.2.4 and local bundles in StreamingAssets.

    It appears randomly on different devices and its unfortunately not reproducible.

    Are there any news about how to solve this?

    Thanks for your help!
     
  8. inxidious

    inxidious

    Joined:
    Nov 8, 2013
    Posts:
    22
    I'm having the same issue only on Android devices too. No CRC exception because i'm only using local bundles. addressables version 1.2.4

    And in my case, i don't have to reboot my app for it to work. Just loading it for the second time already worked fine without app restart. In fact, either restarting the app or reinstalling didn't fix the error. Doing a clean install seemed to fix it though.

    It happens on each bundle file. It has to be loaded once with an error, and then loading it for the second time worked fine

    Happens randomly after a build and can't reproduce it.
     
    Last edited: Oct 28, 2019
  9. hanniiel

    hanniiel

    Joined:
    Jun 14, 2013
    Posts:
    39
    Guys, can you try to select your addressables group and on the properties there's a retry/attemps field can you set it to 3 or more and then build bundles and check again?
     
    Mic9 likes this.
  10. inxidious

    inxidious

    Joined:
    Nov 8, 2013
    Posts:
    22
    @hanniiel it seemed to resolved the problem, so far no errors anymore. I'll let you know if the error happens again. Thanks
     
    hanniiel likes this.
  11. TigerHix

    TigerHix

    Joined:
    Oct 20, 2015
    Posts:
    69
    This still occurs on latest version. Fix your stuff, Unity.
     
    FamishedMammal likes this.
  12. Egil-Sandfeld

    Egil-Sandfeld

    Joined:
    Oct 8, 2012
    Posts:
    72
    Reproduced this issue with
    Unity 2019.3.15f1
    Addressables 1.10.0

    Have been trying to install apk from fresh on 3 different phones (Galaxy S4, Galaxy S7, Galaxy S7 Edge) and only the S7 had this issue twice.

    Code (CSharp):
    1. 2020/06/29 15:14:51.626 29616 29680 Error Unity Exception encountered in operation Resource<IAssetBundleResource>(scenes_scenes_splash_24c423ed76ea06e9a1b38c7319db85e5.bundle): RemoteAssetBundleProvider unable to load from url jar:file:///data/app/PACKAGENAME-BtJJ8S0Eja25XNr2ScKBLw==/base.apk!/assets/aa/Android/scenes_scenes_splash_24c423ed76ea06e9a1b38c7319db85e5.bundle, result='Request aborted'.
    2. 2020/06/29 15:14:51.626 29616 29680 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    3. 2020/06/29 15:14:51.626 29616 29680 Error Unity System.Action`2:Invoke(T1, T2)
    4. 2020/06/29 15:14:51.626 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    5. 2020/06/29 15:14:51.626 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    6. 2020/06/29 15:14:51.626 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted(AsyncOperation)
    7. 2020/06/29 15:14:51.626 29616 29680 Error Unity System.Action`1:Invoke(T)
    8. 2020/06/29 15:14:51.626 29616 29680 Error Unity UnityEngine.AsyncOperation:InvokeCompletionEvent()
    9. 2020/06/29 15:14:51.626 29616 29680 Error Unity
    10. 2020/06/29 15:14:51.626 29616 29680 Error Unity (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    11. 2020/06/29 15:14:51.626 29616 29680 Error Unity
    12. 2020/06/29 15:14:51.711 29616 29680 Error Unity Exception encountered in operation Dependencies: RemoteAssetBundleProvider unable to load from url jar:file:///data/app/PACKAGENAME-BtJJ8S0Eja25XNr2ScKBLw==/base.apk!/assets/aa/Android/scenes_scenes_splash_24c423ed76ea06e9a1b38c7319db85e5.bundle, result='Request aborted'.
    13. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception)
    14. 2020/06/29 15:14:51.711 29616 29680 Error Unity System.Action`2:Invoke(T1, T2)
    15. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception)
    16. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    17. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.GroupOperation:CompleteIfDependenciesComplete()
    18. 2020/06/29 15:14:51.711 29616 29680 Error Unity System.Action`1:Invoke(T)
    19. 2020/06/29 15:14:51.711 29616 29680 Error Unity DelegateList`1:Invoke(T)
    20. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    21. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    22. 2020/06/29 15:14:51.711 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequest
    23. 2020/06/29 15:14:51.747 29616 29680 Error Unity Scene 'Assets/_Project/Scenes/Splash.unity' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
    24. 2020/06/29 15:14:51.747 29616 29680 Error Unity To add a scene to the build settings use the menu File->Build Settings...
    25. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.SceneManagement.SceneManager:LoadSceneAsync(String, LoadSceneParameters)
    26. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceProviders.SceneOp:InternalLoadScene(IResourceLocation, Boolean, LoadSceneMode, Boolean, Int32)
    27. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceProviders.SceneOp:Execute()
    28. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute()
    29. 2020/06/29 15:14:51.747 29616 29680 Error Unity System.Action`1:Invoke(T)
    30. 2020/06/29 15:14:51.747 29616 29680 Error Unity DelegateList`1:Invoke(T)
    31. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    32. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks()
    33. 2020/06/29 15:14:51.747 29616 29680 Error Unity UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    34. 2020/06/29 15:14:51.747 29616 29680 Error Unity System.Action`1:Invoke(T)
    35. 2020/06/29 15:14:51.747 29616 29680 Error Unity
    36. 2020/06/29 15:14:51.747 29616 29680 Error Unity [ line 167]
    37. 2020/06/29 15:14:51.747 29616 29680 Error Unity (Filename:  Line: 167)
    38. 2020/06/29 15:14:51.747 29616 29680 Error Unity
    39. 2020/06/29 15:14:51.756 29616 29680 Error Unity NullReferenceException: Object reference not set to an instance of an object.
    40. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at UnityEngine.ResourceManagement.ResourceProviders.SceneProvider+SceneOp.InternalLoadScene (UnityEngine.ResourceManagement.ResourceLocations.IResourceLocation location, System.Boolean loadingFromBundle, UnityEngine.SceneManagement.LoadSceneMode loadMode, System.Boolean activateOnLoad, System.Int32 priority) [0x00000] in <00000000000000000000000000000000>:0
    41. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at UnityEngine.ResourceManagement.ResourceProviders.SceneProvider+SceneOp.Execute () [0x00000] in <00000000000000000000000000000000>:0
    42. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeExecute () [0x00000] in <00000000000000000000000000000000>:0
    43. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    44. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at DelegateList`1[T].Invoke (T res) [0x00000] in <00000000000000000000000000000000>:0
    45. 2020/06/29 15:14:51.756 29616 29680 Error Unity   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeCompletionEvent () [0x00000

    I will try to change "Retry count" from 0 to 3 on all addressable groups now.

    ** Works, for now, settings Retry count to 3 **
     
    Last edited: Jun 29, 2020
  13. Smackware

    Smackware

    Joined:
    Jan 25, 2014
    Posts:
    1
    Hi, just letting you guys know - we had this happen on our project. One developer could build, I got this error - even in unity when loading from remote folder (which is how you reproduce it in the editor, you can't reproduce if you load from local files)

    Basically the file
    Library/com.unity.addressables/aa/Android/Android/defaultlocalgroup_unitybuiltinshaders_HASH.bundle
    had the same name, but when I copied the content from the developer who could build I finally got it working.

    Somehow the files changed and got corrupt (I assume during some unity version upgrade or whatever)

    What we did to avoid this in the future was to add these files to the GIT while still ignoring the rest of the "Library" directory, but not "Library/com.unity.addressables"

    add this to your .gitignore to do that:

    !/Library/
    /Library/*
    !/Library/com.unity.addressables/


    By adding this infernal files to the git repo, you will be able to detect when unity messes them up and revert or at least sync with all your team members

    Q: Is this your issue?
    A: Are you working with other developers? Did you upgrade/downgrade Unity? Is it possible the file got corrupt somehow in another way? If so, very likely.

    In anycase, over here we believe including the Library/com.unity.addressables folder in git is a VERY good idea regardless of this issue.

    And yes, addressables is far from stable. There are so many issues with this system that it deeply saddens me that Unity Technologies chose to "hint" that AssetBundles, the stable former solution is about to deprecate.

    FYI another issue we have is that updating addressables from a different computers is impossible without updating the app.

    I found at least one of the bugs is dependency on the folder name of the project. If it differs then the shader hash differs.
    There are other issues that affect the hashes of the bundles on different computers. We are still investigating this in our team.
     
    Last edited: Mar 17, 2021