WebGL after deploying first load is Unable to load localizations.

Hello,

my problem is that when I’m building and deploying my WebGL app the first run on every Windows PC is not working with couple of errors in this order:

Error while downloading Asset Bundle: CRC Mismatch. Provided 296370ef, 
calculated 25e69f27 from data. Will not load AssetBundle
Exception encountered in operation Resource<IAssetBundleResource>(localization-locales_assets_all.bundle), 
status=Failed, result= : RemoteAssetBundleProvider unable to load from url ,
 result='Received no data in response'.
Exception encountered in operation Dependencies [localization-locales_assets_all.bundle...], status=Failed,
 result=System.Collections.Generic.List`1[UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle] : 
RemoteAssetBundleProvider unable to load from url , result='Received no data in response'.

Once I refresh the page everything is running normally. Do you have any Idea why is this? I’m using Localization Package from Unity 0.10.0, Unity version 2020.2.1f1

That looks like an addressable issue. I’ll ask the team.

1 Like

@marekvalentag
I am not on the same Unity Version as you (I have 2019.4.22f1), but disabling the CRC check and caching of the addressable groups have solved it for me.

I know this will disable the check if the data has been altered on target or on the way but if it is not critical data I would take the solution.

I did it for all groups which are related to localization. I didnt try if it would also work with caching I guess it would. You can try it.

@marekvalentag
I think the main issue is that the browser is caching old addressables and compares the new CRC with the the ones cached from the addressables. Thats the reason why it worked the first time for you. So it should work again after you have cleared the cache of your browser

1 Like