Occasional editor freeze during AssetBundleResource.GetAssetBundle()

Hello. Sometimes, when using Addressables to load various assets / scenes, the editor appears to freeze completely, as if running into an endless loop. According to an attached debugger, this seems to happen during a call to AssetBundleResource.GetAssetBundle(). I have not found a way to reliably reproduce this. There are no errors or warnings in the editor log.

I suspected that the trouble might be trying to start the async loading of scenes and assets in the same frame, but since I can’t reproduce the freeze reliably, I also don’t know if a workaround - first waiting for scene loading to finish, and only then starting to load assets - actually fixes anything.

Does anyone have any idea what might be going wrong?

I’m not sure but current Unity has freezing issue when loading assets synchronously while assetbundles are asynchronously loaded:

1 Like