com.unity.addressables
com.unity.addressables copied to clipboard
Duplicate address 'AddressablesMainContentCatalogRemoteHash'
After proper setup and building with Multi-Catalog the console gives the following error on each asset load attempt from remote group in runtime:
Duplicate address 'AddressablesMainContentCatalogRemoteHash' with id 'https://here_is_my_domain//catalog_1.hash' found, skipping...
I haven't found anything related to this error on web. Any clues?
Remote groups, or remote loading is (currently) not supported. This package assumes all content is stationed locally for loading.
Reason for this being absent is that I have yet to use it myself (so I have no clue what's going on under the hood), and It's quite involved in terms of keeping track of updates in the internal state object.
If you have a simple reproduction case, I can have a look at it to fix this issue specifically. But otherwise, I think your best bet it to fork this repo and add it yourself for working with remote content.
If you have a simple reproduction case, I can have a look at it to fix this issue specifically. But otherwise, I think your best bet it to fork this repo and add it yourself for working with remote content.
To reproduce: The main catalog should be loaded from remote server. Check for catalog updates on startup.
Three groups:
- Local (built-in). Placed under streaming assets folder
- Local (with multi-catalog setup). Placed under mods folder. Might have objects with references to Local (built-in)
- Remote. Some of the objects has references to Local (with multi-catalog setup).
I've got this error without even trying to load Local (with multi-catalog setup) catalog.
Yeah, I encountered this issue too. The option to build a remote catalog is probably ignored so a local catalog is always loaded. That is why an attempt to load a remote one creates a conflict. Disabling 'Build Remote Catalog' eliminates this error but one can't load a remote catalog without an app rebuild.
Are there any ideas to solve this problem? I want to try it, but I am not familiar with this library.
@tangxianbo I guess the only way to mitigate this error is to avoid dependencies from Remote to External groups.
I managed to make a remote catalog setup like this:
- Essential assets in the Remote Group (set as default).
- Additional assets in External Groups (set as local and added to external catalog setup)
- Duplicate asset isolation groups are marked as remote and not included in any external setup
So until external groups have no assets that remote group depends on you should be fine
@dnnkeeper Thanks for your reply, I understand. I will take some time to get familiar with this library and see if it can be more flexible