Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug 1.17.17 Addressables.LoadContentCatalogAsync(RemoteLoadPath) Error

Discussion in 'Addressables' started by dong52008, Apr 29, 2021.

  1. dong52008

    dong52008

    Joined:
    May 3, 2016
    Posts:
    4
    Addressables version 1.17.17. If the AddressableAssetSetting of the main project is checked with the Compress Local Catalog option checked. Then calling Addressables.LoadContentCatalogAsync, to read the Catalog of another project from the server will not succeed. The Catalog of another project will not be downloaded and cached, and the error prompt path is invalid.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    I'll flag for the team to have a look!
     
  3. unity_krista

    unity_krista

    Unity Technologies

    Joined:
    Apr 28, 2020
    Posts:
    40
    Hmmm, interesting. Is the setting Compress Local Catalog option checked for both the project building Addressables and the one loading the catalog? They need to have that option the same, either checked or unchecked.
     
  4. dong52008

    dong52008

    Joined:
    May 3, 2016
    Posts:
    4
    Yes, the AddressableAssetSettings options for both projects are the same. The Compress Local Catalog option is checked, but the runtime gets the error "Exception encountered in operation Resource < ContentCatalogData > (catalog_Version.json), status=Failed, result=: You must supply a valid bundle file path.". If I cache catalog.hash and catalog.json, manually, it will work.

    The problem occurs in editor. Play Mode Script chose "Use Existing Build". If Play Mode Script chooses "Use Asset Database" or "Simulate Groups", it works fine. It hasn't been tried on a mobile platform yet.
     
    Last edited: May 7, 2021
  5. unity_krista

    unity_krista

    Unity Technologies

    Joined:
    Apr 28, 2020
    Posts:
    40
    Sounds like it may be a bug then. Have you tried with Compress Local Catalog unchecked in both projects and does that work? Either way, I am unable to reproduce on my projects. Would you be able to file a bug with repro projects so we can take a look?
     
  6. dong52008

    dong52008

    Joined:
    May 3, 2016
    Posts:
    4
    This is my test project.

    This problem also exists on mobile platforms.

    If Compress Local Catalog is not checked for both projects. Then it can be run.
     

    Attached Files:

    Last edited: May 25, 2021
  7. unity_krista

    unity_krista

    Unity Technologies

    Joined:
    Apr 28, 2020
    Posts:
    40
    Thanks! I've created and escalated a ticket to look into it, I'll keep you posted.
     
  8. unity_krista

    unity_krista

    Unity Technologies

    Joined:
    Apr 28, 2020
    Posts:
    40
    Good news, turns out there was a bug when Compress Local Catalog was enabled that would cause other catalogs to attempt to load like local catalogs, even if they were remote. There's a fix coming out in 1.18.9, which we faced a couple unrelated issues to promote, but we're releasing it as soon as we can and I'll update again when it's up
     
    Peter77 likes this.