Search Unity

Bug catalog.json contains unmatched delimiters

Discussion in 'Addressables' started by eizenhorn, Mar 1, 2023.

  1. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Hi, one of our players reported a bug of not loading game (we use Addressables for async load of local files). In logs we see that error:
    Code (CSharp):
    1. System.Exception: Invalid path in TextDataProvider : '#ERROR-{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.json contains unmatched delimiters#'.
    Which prevents game loading (because addressables loading is failed)
    We can’t reproduce that on our machines, but player definitely can according to logs. We asked him which country he is from - Argentina, as it seems some issue with culture variants of text parsing.
    Game built for steam, standalone win 64, unity 2021.3.9f1 (one of December versions, as our latest production patch been in December 2022)
     
  2. NiklasP_

    NiklasP_

    Joined:
    Jul 6, 2020
    Posts:
    8
    Hi,

    we also got a report from a player with the exact same issue and the same error in the log. The player is from Chile. We are using Unity 2022.2.4f1.

    Have you found a solution?
     
  3. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Nope, still waiting for answer from Unity here as you can see
     
  4. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
  5. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
  6. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
  7. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Bump again
     
  8. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
  9. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    Had a fast look at the related code (EvaluateString in Library\PackageCache\com.unity.addressables@1.21.9\Runtime\Initialization\AddressablesRuntimeProperties.cs)

    It seems the code can't handle the case when the full path of StreamingAssets contains '}' character. And I can reproduce the issue in a simple project on Windows:
    1. Create a new project and install Addressables package (I tried latest version: 1.21.9)
    2. Create a script to Call Addressables.InitializeAsync and attach it to a GameObject in the scene
    3. Build Addressables
    4. Build Development Player in a folder containing '}', like 'p}roduct'
    5. Launch it

    I have submitted a bug report for it: IN-37475
     
    eizenhorn likes this.
  10. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685
    Just checked player report! Yes it is! He is exactly have "}" in his folder path
    upload_2023-4-5_9-43-15.png
     
    Alan-Liu likes this.
  11. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
  12. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,685