Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(2019.4 LTS) Unity freezes when trying to load asset from cached bundles

Discussion in 'Addressables' started by CodeBombQuinn, Mar 4, 2021.

  1. CodeBombQuinn

    CodeBombQuinn

    Joined:
    Apr 17, 2018
    Posts:
    23
    There's another post which helped me narrow down that this is somehow Addressables related. Thought I'd post here to hopefully get some more attention on it: https://answers.unity.com/questions/1770834/addressablesloadassetasync-freezes-unity-editor-20.html

    I'm in Unity 2019.4.21f1, but have also tried 2019.4.20f1

    Recap of the problem (for me only on device, the original forum others mention issue in Editor):
    1. Launch fresh app download
    2. Game downloads bundles through Addressables
    3. Game launches fine this first time and plays normal
    4. Quit the app and relaunch
    5. Game freezes while trying to load multiple addressable assets

    The fix that got my game to work was to ensure that LoadAssetAsync was only ever happening 1 at a time. I put a static "Loading" bool to wait until something else can load.

    Addressables versions tried on both: 1.12.0, then upgraded to 1.16.16 which still has the issue.

    I was in the process of updating from Unity 2019.3.10f1. So I'm actually leaning more towards this being an AssetBundle loading issue, but since the calls come from Addressables, posting here first.

    Let me know if you need any more info. I sadly can't post my project since it's NDA and all that. Not sure if a minimal repro case can be made.
     
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,003
    CodeBombQuinn likes this.
  3. CodeBombQuinn

    CodeBombQuinn

    Joined:
    Apr 17, 2018
    Posts:
    23
    Seeing this issue is fixed now in 2019.4.23f1.