# \[FMOD\] AsyncManager::asyncThreadLoop : System::update returned error 2

**URL:** https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499
**Category:** Unity
**Tags:** windows, unity
**Created:** [July 30, 2021, 7:40pm UTC](https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499 "2021-07-30T19:40:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Slaktus](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Slaktus](https://qa.fmod.com/u/Slaktus)
#### Post date: [July 30, 2021, 7:40pm UTC](https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499/1 "2021-07-30T19:40:21Z")

</div>

Hey,

Using FMOD Studio 2.01.07 for Unity 2019.4.28f1, and I’m getting the following error on every frame in Development build for Windows:

[FMOD] AsyncManager::asyncThreadLoop : System::update returned error 2.

UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])  
UnityEngine.Logger:Log(LogType, Object)  
UnityEngine.Debug:LogError(Object)  
FMODUnity.RuntimeManager:DEBUG\_CALLBACK(DEBUG\_FLAGS, IntPtr, Int32, IntPtr, IntPtr)

It only just started appearing after the integration has worked fine for nearly two years. After updating to 2.01.07 I have seen some problems in the Unity Editor such as intermittent crashes and audio sticking around after exiting playmode, but builds have always worked fine until now.

What can I do?

---

<div class="post-metadata">

### Author: ![Slaktus](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Slaktus](https://qa.fmod.com/u/Slaktus)
#### Post date: [July 31, 2021, 2:43pm UTC](https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499/2 "2021-07-31T14:43:53Z")

</div>

Managed to halfway work around this problem by setting all audio content to STREAM. I had previously avoided this because it causes different tracks to desynchronize, and I don’t consider it to be a solution just an indicator of what might be wrong.

It didn’t really solve the problem entirely either, since this problem popped up in its place: [DllNotFoundException: Unable to load DLL ‘fmodstudio’: The specified module could not be found](https://qa.fmod.com/t/dllnotfoundexception-unable-to-load-dll-fmodstudio-the-specified-module-could-not-be-found/17503)

The game only works in development builds now.

---

<div class="post-metadata">

### Author: ![Slaktus](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Slaktus](https://qa.fmod.com/u/Slaktus)
#### Post date: [August 2, 2021, 11:02am UTC](https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499/3 "2021-08-02T11:02:27Z")

</div>

Looks like I solved this by increasing the number of virtual and real audio channels!

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [August 3, 2021, 2:45am UTC](https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499/4 "2021-08-03T02:45:46Z")

</div>

Glad to hear you got that working! `FMOD_RESULT` of 2 evaluates to `FMOD_ERR_CHANNEL_ALLOC` so increasing the number of channels makes sense- strange the error only ocurred post 2.01.07 though. If you can please share any logs next time you get a crash that would be appreciated.  
Thank you for sharing your solution!
