Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate address 'AddressablesMainContentCatalogRemoteHash' #9

Open
V0odo0 opened this issue Jun 29, 2023 · 6 comments
Open

Duplicate address 'AddressablesMainContentCatalogRemoteHash' #9

V0odo0 opened this issue Jun 29, 2023 · 6 comments

Comments

@V0odo0
Copy link

V0odo0 commented Jun 29, 2023

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?

@juniordiscart
Copy link
Owner

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.

@V0odo0
Copy link
Author

V0odo0 commented Jun 29, 2023

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:

  1. Local (built-in). Placed under streaming assets folder
  2. Local (with multi-catalog setup). Placed under mods folder. Might have objects with references to Local (built-in)
  3. 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.

@dnnkeeper
Copy link

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.

@tangxianbo
Copy link

Are there any ideas to solve this problem? I want to try it, but I am not familiar with this library.

@dnnkeeper
Copy link

@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

@tangxianbo
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants