Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

What happens when you remove "Default Local Group Asset Settings.asset" by mistake?

Discussion in 'Addressables' started by VaygrEmpire, Dec 18, 2019.

  1. VaygrEmpire

    VaygrEmpire

    Joined:
    Sep 30, 2016
    Posts:
    40
    What happens to your project when you remove "Default Local Group Asset Settings.asset" object by mistake?


    Because I removed it once and now my whole project is refusing to work with Addressable when it tries to download from website.


    Code (CSharp):
    1. Addressables - initialization failed.
    2. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    3. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    4. UnityEngine.Logger:LogFormat(LogType, String, Object[])
    5. UnityEngine.Debug:LogWarningFormat(String, Object[])
    6. UnityEngine.AddressableAssets.AddressablesImpl:LogWarningFormat(String, Object[]) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AddressablesImpl.cs:140)
    7. UnityEngine.AddressableAssets.Addressables:LogWarningFormat(String, Object[]) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\Addressables.cs:160)
    8. UnityEngine.AddressableAssets.Initialization.<>c__DisplayClass14_0:<LoadContentCatalogInternal>b__0(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\Initialization\InitializationOperation.cs:228)
    9. DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\DelegateList.cs:69)
    10. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:314)
    11. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:452)
    12. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:751)
    13. UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:778)
    14. MonoBehaviourCallbackHooks:Update() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:19)
    15. (Filename: Library/PackageCache/com.unity.addressables@1.2.4/Runtime/AddressablesImpl.cs Line: 140)
    16.  
    17. Exception encountered in operation UnityEngine.AddressableAssets.Initialization.InitializationOperation, result='', status='Failed' - Chain<GameObject,IResourceLocator>: ChainOperation of Type: UnityEngine.GameObject failed because dependent operation failed
    18. Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=ceef0942435cb6447801b53801b21a81
    19. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    20. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    21. UnityEngine.Logger:LogFormat(LogType, String, Object[])
    22. UnityEngine.Debug:LogErrorFormat(String, Object[])
    23. UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AddressablesImpl.cs:150)
    24. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:278)
    25. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(GameObject, Boolean, String) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:362)
    26. UnityEngine.ResourceManagement.ChainOperation`2:OnWrappedCompleted(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\ChainOperation.cs:44)
    27. DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\DelegateList.cs:69)
    28. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:314)
    29. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:452)
    30. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:751)
    31. UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:778)
    32. MonoBehaviourCallbackHooks:Update() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:19)
    33. (Filename: Library/PackageCache/com.unity.addressables@1.2.4/Runtime/AddressablesImpl.cs Line: 150)
    34.  
    35. Exception encountered in operation UnityEngine.ResourceManagement.ResourceManager+CompletedOperation`1[UnityEngine.GameObject], result='', status='Failed': Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown., Key=ceef0942435cb6447801b53801b21a81
    36. UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    37. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    38. UnityEngine.Logger:LogFormat(LogType, String, Object[])
    39. UnityEngine.Debug:LogErrorFormat(String, Object[])
    40. UnityEngine.AddressableAssets.AddressablesImpl:LogException(AsyncOperationHandle, Exception) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AddressablesImpl.cs:150)
    41. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:set_OperationException(Exception) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:278)
    42. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(GameObject, Boolean, String) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:362)
    43. UnityEngine.ResourceManagement.CompletedOperation`1:Execute() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:414)
    44. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:394)
    45. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Start(ResourceManager, AsyncOperationHandle, DelegateList`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:388)
    46. UnityEngine.ResourceManagement.ResourceManager:StartOperation(AsyncOperationBase`1, AsyncOperationHandle) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:390)
    47. UnityEngine.ResourceManagement.ResourceManager:CreateCompletedOperation(GameObject, String) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:491)
    48. UnityEngine.AddressableAssets.AddressablesImpl:InstantiateAsync(Object, InstantiationParameters, Boolean) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AddressablesImpl.cs:728)
    49. UnityEngine.AddressableAssets.AddressablesImpl:InstantiateAsync(Object, Vector3, Quaternion, Transform, Boolean) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AddressablesImpl.cs:708)
    50. UnityEngine.AddressableAssets.Addressables:InstantiateAsync(Object, Vector3, Quaternion, Transform, Boolean) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\Addressables.cs:697)
    51. UnityEngine.AddressableAssets.AssetReference:InstantiateAsync(Vector3, Quaternion, Transform) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\AssetReference.cs:315)
    52. AddressableLoader:SpawnAssetFromLoadedReference(AssetReference) (at Assets\Scripts\AddressableLoader.cs:94)
    53. <>c__DisplayClass8_0:<LoadAndSpawn>b__0(AsyncOperationHandle`1) (at Assets\Scripts\AddressableLoader.cs:74)
    54. DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\DelegateList.cs:69)
    55. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:314)
    56. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:452)
    57. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:751)
    58. UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:778)
    59. MonoBehaviourCallbackHooks:Update() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:19)
    60. (Filename: Library/PackageCache/com.unity.addressables@1.2.4/Runtime/AddressablesImpl.cs Line: 150)
    61.  
    62. NullReferenceException: Object reference not set to an instance of an object
    63.   at AddressableLoader+<>c__DisplayClass10_0.<SpawnAssetFromLoadedReference>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] asyncOperationHandle) [0x0005f] in C:\Users\Andrew Decker\Desktop\Unity-Addressables-Level-2-master\Assets\Scripts\AddressableLoader.cs:102
    64.   at DelegateList`1[T].Invoke (T res) [0x00038] in C:\Users\Andrew Decker\Desktop\Unity-Addressables-Level-2-master\Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\DelegateList.cs:69
    65. UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    66. UnityEngine.DebugLogHandler:LogException(Exception, Object)
    67. UnityEngine.Logger:LogException(Exception, Object)
    68. UnityEngine.Debug:LogException(Exception)
    69. DelegateList`1:Invoke(AsyncOperationHandle`1) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\DelegateList.cs:73)
    70. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:314)
    71. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:452)
    72. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:751)
    73. UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\ResourceManager.cs:778)
    74. MonoBehaviourCallbackHooks:Update() (at Library\PackageCache\com.unity.addressables@1.2.4\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:19)
    75. (Filename: Assets/Scripts/AddressableLoader.cs Line: 102)
    I tried followings but none of them helped so far:

    1. Uninstall Addressables, remove Addressables Asset Settings folder, Re-install Addressables packages, build, upload and test.
    2. Uncheck Addressables on prefab, remove reference to it from dropdown menu in object that's using it, re-register Addressable on prefab, build , upload and test.
    3. Remove prefab, create new one, register it as Addressables and make sure it's correctly referenced in the object that's calling this, build, upload and test.
    4. Create new scene, create new prefabs and object, register as Addressables, build , upload and test.
    5. Create new project, do #4.

    Can anyone with relevant experience enlighten me how to solve this issue?

    Unity version is 2019.2.15f1 and addressable version is 1.2.4. Tried to use latest addressables, too (which is 1.5), but that produces different kind of errors as well so wasn't really helpful.
     
  2. ttermeer-reboundcg

    ttermeer-reboundcg

    Joined:
    Jul 12, 2017
    Posts:
    54
    • Delete AddressableAssetsData folder in Assets
    • Delete "com.unity.addressables" folder and "AddressablesConfig.dat" in Library
    • Reinstall plugin,
    • click on Addressables -> Groups. It should offer the setup option again
    It had worked for me a few weeks ago.
     
    VaygrEmpire likes this.
  3. VaygrEmpire

    VaygrEmpire

    Joined:
    Sep 30, 2016
    Posts:
    40
    I think the problem lies in some other area.....it's not recognizing the url I'm trying to download from.
     
unityunity