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

Error spam after upgrading from 1.13.1 to 1.14.2

Discussion in 'Addressables' started by MikeHergaarden, Aug 20, 2020.

  1. MikeHergaarden

    MikeHergaarden

    Joined:
    Mar 9, 2008
    Posts:
    1,027
    After the update, we now get these errors:
    Note that we do not notice any impact ingame (scenes all still work).
    Any clue why?

    We had already used CLEAN BUILD to force addressables to rebuild after the upgrade.

    Code (csharp):
    1.  
    2. InvalidCastException: Unable to cast object of type 'SceneProvider' to type 'IResourceProvider'.
    3.   at System.Runtime.InteropServices.Marshal.PtrToStructure[T] (System.IntPtr ptr) [0x00000] in <00000000000000000000000000000000>:0
    4.   at UnityEngine.AddressableAssets.Initialization.InitializationOperation.LoadProvider (UnityEngine.AddressableAssets.AddressablesImpl addressables, UnityEngine.ResourceManagement.Util.ObjectInitializationData providerData, System.String providerSuffix) [0x00000] in <00000000000000000000000000000000>:0
    5.   at UnityEngine.AddressableAssets.Initialization.InitializationOperation.OnCatalogDataLoaded (UnityEngine.AddressableAssets.AddressablesImpl addressables, UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] op, System.String providerSuffix) [0x00000] in <00000000000000000000000000000000>:0
    6.   at UnityEngine.AddressableAssets.Initialization.InitializationOperation+<>c__DisplayClass14_0.<LoadContentCatalog>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] res) [0x00000] in <00000000000000000000000000000000>:0
    7.   at System.Func`2[T,TResult].Invoke (T arg) [0x00000] in <00000000000000000000000000000000>:0
    8.   at UnityEngine.ResourceManagement.ChainOperation`2[TObject,TObjectDependency].Execute () [0x00000] in <00000000000000000000000000000000>:0
    9.   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeExecute () [0x00000] in <00000000000000000000000000000000>:0
    10.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    11.   at DelegateList`1[T].Invoke (T res) [0x00000] in <00000000000000000000000000000000>:0
    12.   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeCompletionEvent () [0x00000] in <00000000000000000000000000000000>:0
    13.   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].Complete (TObject result, System.Boolean success, System.String errorMsg, System.Boolean releaseDependenciesOnFailure) [0x00000] in <00000000000000000000000000000000>:0
    14.   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].Complete (TObject result, System.Boolean success, System.String errorMsg) [0x00000] in <00000000000000000000000000000000>:0
    15.   at UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider+InternalOp.OnCatalogLoaded (UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData ccd) [0x00000] in <00000000000000000000000000000000>:0
    16.   at UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider+InternalOp.<Start>b__5_1 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[TObject] op) [0x00000] in <00000000000000000000000000000000>:0
    17.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    18.   at DelegateList`1[T].Invoke (T res) [0x00000] in <00000000000000000000000000000000>:0
    19.   at UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1[TObject].InvokeCompletionEvent () [0x00000] in <00000000000000000000000000000000>:0
    20.   at UnityEngine.ResourceManagement.ResourceManager.ExecuteDeferredCallbacks () [0x00000] in <00000000000000000000000000000000>:0
    21.   at UnityEngine.ResourceManagement.ResourceManager.Update (System.Single unscaledDeltaTime) [0x00000] in <00000000000000000000000000000000>:0
    22.   at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
    23. UnityEngine.Logger:LogException(Exception, Object)
    24. UnityEngine.Debug:LogException(Exception)
    25. System.Runtime.InteropServices.Marshal:PtrToStructure(IntPtr)
    26. UnityEngine.AddressableAssets.Initialization.InitializationOperation:LoadProvider(AddressablesImpl, ObjectInitializationData, String)
    27. UnityEngine.AddressableAssets.Initialization.InitializationOperation:OnCatalogDataLoaded(AddressablesImpl, AsyncOperationHandle`1, String)
    28. UnityEngine.AddressableAssets.Initialization.<>c__DisplayClass14_0:<LoadContentCatalog>b__0(AsyncOperationHandle`1)
    29. System.Func`2:Invoke(T)
    30. UnityEngine.ResourceManagement.ChainOperation`2:Execute()
    31. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute()
    32. System.Action`1:Invoke(T)
    33. DelegateList`1:Invoke(T)
    34. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    35. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String, Boolean)
    36. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    37. UnityEngine.AddressableAssets.ResourceProviders.InternalOp:OnCatalogLoaded(ContentCatalogData)
    38. UnityEngine.AddressableAssets.ResourceProviders.InternalOp:<Start>b__5_1(AsyncOperationHandle`1)
    39. System.Action`1:Invoke(T)
    40. DelegateList`1:Invoke(T)
    41. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    42. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks()
    43. UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    44. System.Action`1:Invoke(T)
    45.  
    46. (Filename: currently not available on il2cpp Line: -1)
    47.  
    48. Addressables - Unable to load resource provider from ObjectInitializationData: id=UnityEngine.ResourceManagement.ResourceProviders.SceneProvider, type=SceneProvider.
    49. UnityEngine.Logger:LogFormat(LogType, String, Object[])
    50. UnityEngine.Debug:LogWarningFormat(String, Object[])
    51. UnityEngine.AddressableAssets.Initialization.InitializationOperation:LoadProvider(AddressablesImpl, ObjectInitializationData, String)
    52. UnityEngine.AddressableAssets.Initialization.InitializationOperation:OnCatalogDataLoaded(AddressablesImpl, AsyncOperationHandle`1, String)
    53. UnityEngine.AddressableAssets.Initialization.<>c__DisplayClass14_0:<LoadContentCatalog>b__0(AsyncOperationHandle`1)
    54. System.Func`2:Invoke(T)
    55. UnityEngine.ResourceManagement.ChainOperation`2:Execute()
    56. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute()
    57. System.Action`1:Invoke(T)
    58. DelegateList`1:Invoke(T)
    59. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    60. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String, Boolean)
    61. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(TObject, Boolean, String)
    62. UnityEngine.AddressableAssets.ResourceProviders.InternalOp:OnCatalogLoaded(ContentCatalogData)
    63. UnityEngine.AddressableAssets.ResourceProviders.InternalOp:<Start>b__5_1(AsyncOperationHandle`1)
    64. System.Action`1:Invoke(T)
    65. DelegateList`1:Invoke(T)
    66. UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent()
    67. UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks()
    68. UnityEngine.ResourceManagement.ResourceManager:Update(Single)
    69. System.Action`1:Invoke(T)
    70.  
    71.  
     
  2. Driven

    Driven

    Joined:
    May 31, 2013
    Posts:
    77
    Same here, everything works but this error pops up for no reason.
     
  3. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,091
    I can confirm
    InvalidCastException: Unable to cast object of type 'SceneProvider' to type 'IResourceProvider'.


    It happens when using the latest version of addressables 1.14.2 & Unity 2020.1.2.
    it is not being spammed on our project and it doesn't seem to be harmful for loading either. But still, not something you want to see with an update.

    @unity_bill I've made a bug report, case number: 1272125

    Stack Trace with line numbers
    InvalidCastException: Specified cast is not valid.
    at (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)
    at UnityEngine.ResourceManagement.Util.ObjectInitializationData.CreateInstance[TObject] (System.String idOverride) [0x0005a] in C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\ResourceManagerConfig.cs:369
    UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    UnityEngine.Logger:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    UnityEngine.ResourceManagement.Util.ObjectInitializationData:CreateInstance(String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\ResourceManagerConfig.cs:373)
    UnityEngine.AddressableAssets.Initialization.InitializationOperation:LoadProvider(AddressablesImpl, ObjectInitializationData, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:149)
    UnityEngine.AddressableAssets.Initialization.InitializationOperation:OnCatalogDataLoaded(AddressablesImpl, AsyncOperationHandle`1, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:181)
    UnityEngine.AddressableAssets.Initialization.<>c__DisplayClass14_0:<LoadContentCatalog>b__0(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:205)
    UnityEngine.ResourceManagement.ChainOperation`2:Execute() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\ChainOperation.cs:35)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:473)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:<.ctor>b__33_0(AsyncOperationHandle) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:113)
    DelegateList`1:Invoke(AsyncOperationHandle) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\DelegateList.cs:69)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:352)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(ContentCatalogData, Boolean, String, Boolean) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:447)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(ContentCatalogData, Boolean, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:391)
    UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1:providerCompleted(ContentCatalogData, Boolean, Exception) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\ProviderOperation.cs:147)
    UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle:Complete(ContentCatalogData, Boolean, Exception) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceProviders\IResourceProvider.cs:116)
    UnityEngine.AddressableAssets.ResourceProviders.InternalOp:OnCatalogLoaded(ContentCatalogData) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceProviders\ContentCatalogProvider.cs:262)
    UnityEngine.AddressableAssets.ResourceProviders.InternalOp:<Start>b__5_1(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceProviders\ContentCatalogProvider.cs:101)
    DelegateList`1:Invoke(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\DelegateList.cs:69)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:358)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:531)
    UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceManager.cs:886)
    UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceManager.cs:913)
    MonoBehaviourCallbackHooks:Update() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:15)
    (Filename: C:/Unity/Projects/AddressablesBugReport/Library/PackageCache/com.unity.addressables@1.14.2/Runtime/ResourceManager/Util/ResourceManagerConfig.cs Line: 369)

    Addressables - Unable to load resource provider from ObjectInitializationData: id=UnityEngine.ResourceManagement.ResourceProviders.SceneProvider, type=SceneProvider.
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:LogFormat(LogType, String, Object[])
    UnityEngine.Debug:LogWarningFormat(String, Object[])
    UnityEngine.AddressableAssets.AddressablesImpl:LogWarningFormat(String, Object[]) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\AddressablesImpl.cs:226)
    UnityEngine.AddressableAssets.Addressables:LogWarningFormat(String, Object[]) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Addressables.cs:263)
    UnityEngine.AddressableAssets.Initialization.InitializationOperation:LoadProvider(AddressablesImpl, ObjectInitializationData, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:165)
    UnityEngine.AddressableAssets.Initialization.InitializationOperation:OnCatalogDataLoaded(AddressablesImpl, AsyncOperationHandle`1, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:181)
    UnityEngine.AddressableAssets.Initialization.<>c__DisplayClass14_0:<LoadContentCatalog>b__0(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\Initialization\InitializationOperation.cs:205)
    UnityEngine.ResourceManagement.ChainOperation`2:Execute() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\ChainOperation.cs:35)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeExecute() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:473)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:<.ctor>b__33_0(AsyncOperationHandle) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:113)
    DelegateList`1:Invoke(AsyncOperationHandle) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\DelegateList.cs:69)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:352)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(ContentCatalogData, Boolean, String, Boolean) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:447)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:Complete(ContentCatalogData, Boolean, String) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:391)
    UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1:providerCompleted(ContentCatalogData, Boolean, Exception) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\ProviderOperation.cs:147)
    UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle:Complete(ContentCatalogData, Boolean, Exception) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceProviders\IResourceProvider.cs:116)
    UnityEngine.AddressableAssets.ResourceProviders.InternalOp:OnCatalogLoaded(ContentCatalogData) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceProviders\ContentCatalogProvider.cs:262)
    UnityEngine.AddressableAssets.ResourceProviders.InternalOp:<Start>b__5_1(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceProviders\ContentCatalogProvider.cs:101)
    DelegateList`1:Invoke(AsyncOperationHandle`1) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\DelegateList.cs:69)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:358)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1:UnityEngine.ResourceManagement.AsyncOperations.IAsyncOperation.InvokeCompletionEvent() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\AsyncOperations\AsyncOperationBase.cs:531)
    UnityEngine.ResourceManagement.ResourceManager:ExecuteDeferredCallbacks() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceManager.cs:886)
    UnityEngine.ResourceManagement.ResourceManager:Update(Single) (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\ResourceManager.cs:913)
    MonoBehaviourCallbackHooks:Update() (at C:\Unity\Projects\AddressablesBugReport\Library\PackageCache\com.unity.addressables@1.14.2\Runtime\ResourceManager\Util\MonoBehaviourCallbackHooks.cs:15)
     
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    Thanks for the bug report!
     
  5. daneric

    daneric

    Joined:
    Oct 10, 2015
    Posts:
    4
    Same issue,Do nothing but upgrade to 1.14.2
     
  6. PacoLabs

    PacoLabs

    Joined:
    Jun 29, 2017
    Posts:
    31
    Same problem with Localization framework using Addressables
    Code (CSharp):
    1. InvalidCastException: Unable to cast object of type 'SceneProvider' to type 'IResourceProvider'.
    2.   at UnityEngine.Localization.Tables.LocalizationTable.GetMetadata[TObject] () [0x00000] in <00000000000000000000000000000000>:0
    3.  
     
  7. paulfleetwood-glu

    paulfleetwood-glu

    Joined:
    Jul 25, 2019
    Posts:
    2
    I am seeing it with 2019.4.3
     
  8. daneric

    daneric

    Joined:
    Oct 10, 2015
    Posts:
    4
    Also in 2019.2.21. I found this error only appears when the
    LoadResourceLocationsAsync、DownloadDependenciesAsync
    is called
     
  9. unity_9Iw1hIqfScfnbw

    unity_9Iw1hIqfScfnbw

    Joined:
    Oct 1, 2018
    Posts:
    3
    I am using Unity 2019.4.5 and I have an InvalidCastException after upgrading to Addressables 1.14. According to the editor it's in Library/PackageCache/com.unity.addressables@1.14.2/Runtime/ResourceManager/Util/ResourceManagerConfig.cs:at line 369. The game runs fine in editor - with that exception "InvalidCastException: Specified cast is not valid.
    (wrapper castclass) System.Object.__castclass_with_cache(object,intptr,intptr)"

    And the build runs fine with the same looking error as O.P. had, in Android Studio: "
    E/Unity: InvalidCastException: Unable to cast object of type 'SceneProvider' to type 'IResourceProvider'.
    at UnityEngine.Networking.NetworkReader.ReadMessage[TMsg] ()...
    "

    As of today, I don't see a result for 1272125 in the issue tracker.
     
    Last edited: Aug 25, 2020
  10. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,203
    Same for me. Driving me nuts.
     
  11. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,091
    It seems unity is trying a new ticket system through atlassian. This case has been transfered over. However it is behind a login wall which doesn't seem to work.

    The errors seems to be harmless though as it isn't causing any problems on my end.
     
  12. Volcore

    Volcore

    Joined:
    Jan 14, 2020
    Posts:
    24
    On our end, this caused the app to start up into a black screen instead of loading the correct assets. Downgrading back to 1.13.1 fixed this.
     
  13. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,091
    It seems to be fixed in addressables 1.15.1, atleast I haven't seen it in the editor when using the mode: use existing build
    But 1.15.1 may have other bugs, but we'll see. I'm currently testing for WebGL
     
  14. dejarajs

    dejarajs

    Joined:
    Dec 11, 2012
    Posts:
    20
    I can confirm that this is fixed in 1.15.1. We had this in 1.14.2.
     
    Drazok and Jaimi like this.
  15. Volcore

    Volcore

    Joined:
    Jan 14, 2020
    Posts:
    24
    1.15.1 fixed this for us as well, *however*, be advised, we've encountered another major issue with 1.15.1: Only on Android, and only on 1.15.1, async loads are extremely slow, leading to an app start time of 60s+ (normally <2s).
     
  16. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    762
    @Volcore we're unaware of any Android issues on 1.15.1. We'll have to look into that. Feel free to file a bug as well if you'd like.