Search Unity

Requesting multiple download size parallel threads bug

Discussion in 'Addressables' started by JorisEertink, Oct 13, 2020.

  1. JorisEertink

    JorisEertink

    Joined:
    Mar 15, 2017
    Posts:
    24
    Hi @unity_bill ,

    We are facing some issues when requesting the download size of multiple assets in parallel tasks, that appears to be a bug.

    We run several parallel threads that first check the download size, and if local, we load the asset. What appears to happen is that if multiple of those assets are in the same bundle, the returned download size is not 0 even though it is cached.

    What I assume might cause this is that the GetDownLoadSizeAsync function is accessing the Cache util, and maybe because one operation is still reading this, the other operation is blocked from reading it.

    Right now we solved this issue by running the tasks consecutive rather than parallel, which gives the correct result. But obviously this is way more time consuming and we hope this could be resolved, or maybe you have a different approach to what I am doing.

    Regards,

    Joris Eertink
     
    andrewSen, JoeySong, AakashDP and 7 others like this.