I received the response from Unity that “async/await” makes this freezing issue, but I highly doubt it because async/await does not made any special things itself.
I re-created same reproducible project without async/await and sent modified scripts.
Also found that calling Resourceds.Load in UnityWebRequestAsyncOperation.completed makes 100% freezing.
I reported non async/await version of 100% reproducible project as Case 1310359. I hope that this help Unity developers to find and fix freezing issue.
Thank you for your reply
We use the latest lts Unity for production builds. Is there plans to backport the fix to the 2019.4? We have checked versions 2019.4.9-2019.4.20 and we have the problem there. 2019.4.8 works ok, but we need update for Unity IAP and it needs update of the Unity to the latest version.
The issue reported by @Kichang-Kim was introduced by changes exclusive to version 20.1 and newer. So what you’re experiencing must be a similar yet different problem. Could you please submit a bug report for it with a reproducible attached?
I’m also on 2019.4.21f1 and experiencing something similar. It’s definitely asset bundle related, I thought it might be addressable related so I posted a forum post here:
Quick update and correction of my previous statement. We were now able to reproduce the issue reported by @Kichang-Kim in 2019.4 and the fix is being backported. So this might very well be the same problem you’re seeing in your projects @ci_playflock@CodeBombQuinn .
Hi, we are expecting for the update too. There is an issue with our game (Unity 2019.4.21), it’s using AssetBundles with async loading resulting in a very long loading times for some devices (Nexus 5X). Maybe could it be related with this case.
I tried to do a quick switch to Unity 2021 for checking the fix, but some libraries are not compatible so we will wait for the 2019 release.
Is there a download link to the bug-reproducing project? I’m using 2019.4.22f1 and I’m using Resources.Load and Addressables.LoadAssetAsync at the same time somewhere in my project. But I have never encountered this issue up until now. I guess it needs some other preconditions to trigger this bug.
I found that if I only allowed one Addressables.LoadAssetAsync command at a time, I could avoid the freeze. So I think if we load multiple AssetBundles asynchronously, we are at risk of app freezing.
Edit: The freeze still occurred after all, but it was related to using Resources.Load while asynchronously loading an asset bundle.
I encountered this issue sparsely in my project. I am using Unity 2019.4.22f1, which is the version that this fix hasn’t been backported. I saw there were indeed “Resources.Load” and “AssetBundleLoadFromAsyncOperation” presented in the same thread. However, I am struggling to reproduce this issue in an empty project. Upgrading Unity engine version is considered a much greater risk in my workplace, workaround is preferred. Can anyone send me a project that can reproduce this issue?