# Android: Inifinite wait for AnySampleDataLoading()

**URL:** <https://qa.fmod.com/t/android-inifinite-wait-for-anysampledataloading/18973>\
**Category:** Unity\
**Created:** [July 4, 2022, 10:31am UTC](https://qa.fmod.com/t/android-inifinite-wait-for-anysampledataloading/18973 "2022-07-04T10:31:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dozd](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dozd/32/2669_2.png) [@dozd](https://qa.fmod.com/u/dozd)\
**Post date:** [July 4, 2022, 10:31am UTC](https://qa.fmod.com/t/android-inifinite-wait-for-anysampledataloading/18973/1 "2022-07-04T10:31:56Z")

</div>

Hello, I’ve started porting to Android but having issues with bank loading. I’ve followed the guide for Unity and Android platform guide and implemented exactly same async loading as in the example: [https://fmod.com/docs/2.01/unity/examples-async-loading.html](https://fmod.com/docs/2.01/unity/examples-async-loading.html)

This loading is working well in the editor but not in the build. The loading is never completed and is stuck at `AnySampleDataLoading()` call. If I remove that call, the main scene is being initialized properly, banks are loaded and sounds are working well. But I feel, something is odd.

Fmod version: 2.02.07  
Unity version: 2021.3.2f1

Log: [fmod-log.txt](https://qa.fmod.com/uploads/short-url/6E9mTe5NLHGnxkhkcch8wiLSjgi.txt) (2.5 MB)

---

<div class="post-metadata">

**Author:** ![dozd](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/dozd/32/2669_2.png) [@dozd](https://qa.fmod.com/u/dozd)\
**Post date:** [July 7, 2022, 5:10pm UTC](https://qa.fmod.com/t/android-inifinite-wait-for-anysampledataloading/18973/2 "2022-07-07T17:10:36Z")

</div>

It’s happening on Windows builds as well.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [July 11, 2022, 12:50am UTC](https://qa.fmod.com/t/android-inifinite-wait-for-anysampledataloading/18973/3 "2022-07-11T00:50:56Z")

</div>

Hi,

Unfortunately, I have not been able to reproduce the issue using the versions you provided. However, a method to debug the issue is as follows:

When building to Windows, if you could attach a debugger and in the `AnySampleDataLoading()` function print out the name of the `bank` that is making the statement `loading |= (loadingState == FMOD.Studio.LOADING_STATE.LOADING);` return `true`.

If it’s just a single `bank` returning `LOADING_STATE.Loading` every time, take a look at the particular `bank` inside FMOD Studio and see if there’s anything unique about it. Things like missing assets in one of the events, or the presence of an `Audio Table`.

If all the `banks` are stuck in `LOADING_STATE.Loading` then the issue is not with `AnyBankLoading()` and is more likely a problem with the calling code.

Hopefully, this will give you somewhere to start looking!
