【1.3.8】LoadContentCatalogAsync ArgumentOutOfRangeException

hi

I get an error when I run LoadContentCatalogAsync twice.

Exception said “ArgumentOutOfRangeException”.

In ContentCatalogData.cs, m_KeyDataString was empty.

error:

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.BitConverter.ToInt32 (System.Byte[ ] value, System.Int32 startIndex) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData.CreateLocator (System.String providerSuffix) (at Library/PackageCache/com.unity.addressables@1.3.8/Runtime/ResourceLocators/ContentCatalogData.cs:269)

Thank you.

1 Like

Does this still occur on 1.5.0 ?

I tried ver1.5.
I got an error when I run LoadContentCatalogAsync twice.

But, I released AsyncOperationHandle, and ran LoadContentCatalogAsync.
I was successful.

1 Like

Interesting, have you filed a bug with Unity? That sounds like something we might need to check into.

1 Like

https://fogbugz.unity3d.com/default.asp?1214409_nrrajui9p061p10k

I submitted.

2 Likes

We have the same issue here !
The workaround works for us too but on iOS we had an issue where all assets weren’t download (but we didn’t know if it was due to this particular workaround)
@unity_bill @davidla_unity any ETA concerning this fix ?

2 Likes