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

Resolved UpdateCatalogs reports success when the catalog failed to save to disk

Discussion in 'Addressables' started by Alan-Liu, May 30, 2022.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    354
    I added 'throw new Exception("...")' before File.WriteAllText in OnCatalogLoaded to test the behaviour when File.WriteAllText throws an exception. I expected Addressables.UpdateCatalogs failed and reported some messages about why it failed, but I found it succeeded.

    Is this behaviour expected, or it's a bug?
     
  2. pillakirsten

    pillakirsten

    Unity Technologies

    Joined:
    May 22, 2019
    Posts:
    346
    Hi @Alan-Liu thanks for reporting this issue. Yes this does appear to be a bug. I suspect that there is something wrong with how Addressables.UpdateCatalogs processes the failed catalog loading operation. Will create a ticket on our project board.
     
    Alan-Liu likes this.
  3. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    354
    It has been fixed in Addressables 1.20.5.
     
  4. VeronikaKate

    VeronikaKate

    Joined:
    Mar 23, 2023
    Posts:
    1