# DllNotFoundException: libfmodL

**URL:** https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403
**Category:** Unity
**Tags:** unity
**Created:** [November 6, 2020, 11:04am UTC](https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403 "2020-11-06T11:04:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mmt\_tim](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mmt\_tim](https://qa.fmod.com/u/mmt_tim)
#### Post date: [November 6, 2020, 11:04am UTC](https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403/1 "2020-11-06T11:04:56Z")

</div>

Hi,

we are using Unity 2018.4.24f1 and fmod 1.10.20.  
A clean workspace works fine for a couple of days but somehow it breaks after that and the console is spammed with:

> DllNotFoundException: libfmodL  
> FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) (at Assets/Plugins/FMOD/src/Runtime/wrapper/fmod.cs:788)  
> FMODUnity.RuntimeUtils.EnforceLibraryOrder () (at Assets/Plugins/FMOD/src/Runtime/RuntimeUtils.cs:405)  
> FMODUnity.EditorUtils.CreateSystem () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:212)  
> FMODUnity.EditorUtils.get\_System () (at Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:287)  
> FMODUnity.EventManager.UpdateCache () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:157)  
> FMODUnity.EventManager.RefreshBanks () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:37)  
> FMODUnity.EventManager.Update () (at Assets/Plugins/FMOD/src/Editor/EventManager.cs:669)  
> UnityEditor.EditorApplication.Internal\_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)

We tried upgrading to 2018.4.28f1 or / and fmod 2.00.10 but the problem persists.  
The libraries for x86\_64 are correctly included in the import settings and moving them out of the FMOD folder into Plugins/x86\_64 did not help. Somehow the only thing that fixes the problem is deleting the complete project and reimporting it (‘Reimport All’ or deleting the Library folder does not seem to help either).

Thanks for any help,  
Tim

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 11, 2020, 3:20am UTC](https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403/2 "2020-11-11T03:20:21Z")

</div>

Are you able to share the entire Editor Log at all?  
Are you using any kind of source control? (eg. Collab, Github, Perforce)

---

<div class="post-metadata">

### Author: ![mmt\_tim](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mmt\_tim](https://qa.fmod.com/u/mmt_tim)
#### Post date: [November 12, 2020, 11:32am UTC](https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403/3 "2020-11-12T11:32:14Z")

</div>

This is basically what the editor log looks like. Since I cannot upload attachments I shorted it. After the first few logs it just repeats the DllNotFoundException and the ‘Creating editor system instance’ log (I checked, there are no additional logs in between).  
We are using git (via bitbucket).

Thanks,  
Tim

> Refreshing native plugins compatible for Editor in 42.37 ms, found 5 plugins.  
> FMOD Studio: Creating editor system instance  
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:Log(Object)  
> FMODUnity.EditorUtils:CreateSystem() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:248)  
> FMODUnity.EditorUtils:get\_System() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324)  
> FMODUnity.EventManager:UpdateCache() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156)  
> FMODUnity.EventManager:Update() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692)  
> UnityEditor.EditorApplication:Internal\_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200)
> 
> (Filename: Assets/Plugins/FMOD/Editor/FMOD/EditorUtils.cs Line: 248)
> 
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL.dll  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL.dll  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL.dll  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/fmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL.dll  
> Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2018.4.24f1/Editor/Data/Mono/lib/libfmodL  
> DllNotFoundException: fmodL  
> at (wrapper managed-to-native) FMOD.Memory.FMOD5\_Memory\_GetStats(int&,int&,bool)  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1642  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1637  
> at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\RuntimeUtils.cs:395  
> at FMODUnity.EditorUtils.CreateSystem () [0x0000c] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:249  
> at FMODUnity.EditorUtils.get\_System () [0x00013] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324  
> at FMODUnity.EventManager.UpdateCache () [0x00282] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156  
> at FMODUnity.EventManager.Update () [0x0000b] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692  
> at (wrapper delegate-invoke) .invoke\_void()  
> at UnityEditor.EditorApplication.Internal\_CallUpdateFunctions () [0x00010] in C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200
> 
> (Filename: Assets/Plugins/FMOD/Wrapper/fmod.cs Line: 1642)
> 
> FMOD Studio: Creating editor system instance  
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:Log(Object)  
> FMODUnity.EditorUtils:CreateSystem() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:248)  
> FMODUnity.EditorUtils:get\_System() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324)  
> FMODUnity.EventManager:UpdateCache() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156)  
> FMODUnity.EventManager:Update() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692)  
> UnityEditor.EditorApplication:Internal\_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200)
> 
> (Filename: Assets/Plugins/FMOD/Editor/FMOD/EditorUtils.cs Line: 248)
> 
> DllNotFoundException: fmodL  
> at (wrapper managed-to-native) FMOD.Memory.FMOD5\_Memory\_GetStats(int&,int&,bool)  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1642  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1637  
> at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\RuntimeUtils.cs:395  
> at FMODUnity.EditorUtils.CreateSystem () [0x0000c] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:249  
> at FMODUnity.EditorUtils.get\_System () [0x00013] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324  
> at FMODUnity.EventManager.UpdateCache () [0x00282] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156  
> at FMODUnity.EventManager.Update () [0x0000b] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692  
> at (wrapper delegate-invoke) .invoke\_void()  
> at UnityEditor.EditorApplication.Internal\_CallUpdateFunctions () [0x00010] in C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200
> 
> (Filename: Assets/Plugins/FMOD/Wrapper/fmod.cs Line: 1642)
> 
> FMOD Studio: Creating editor system instance  
> UnityEngine.DebugLogHandler:Internal\_Log(LogType, String, Object)  
> UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)  
> UnityEngine.Logger:Log(LogType, Object)  
> UnityEngine.Debug:Log(Object)  
> FMODUnity.EditorUtils:CreateSystem() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:248)  
> FMODUnity.EditorUtils:get\_System() (at Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324)  
> FMODUnity.EventManager:UpdateCache() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156)  
> FMODUnity.EventManager:Update() (at Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692)  
> UnityEditor.EditorApplication:Internal\_CallUpdateFunctions() (at C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200)
> 
> (Filename: Assets/Plugins/FMOD/Editor/FMOD/EditorUtils.cs Line: 248)
> 
> DllNotFoundException: fmodL  
> at (wrapper managed-to-native) FMOD.Memory.FMOD5\_Memory\_GetStats(int&,int&,bool)  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1642  
> at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced) [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Wrapper\fmod.cs:1637  
> at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\RuntimeUtils.cs:395  
> at FMODUnity.EditorUtils.CreateSystem () [0x0000c] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:249  
> at FMODUnity.EditorUtils.get\_System () [0x00013] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EditorUtils.cs:324  
> at FMODUnity.EventManager.UpdateCache () [0x00282] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:156  
> at FMODUnity.EventManager.Update () [0x0000b] in C:\Program Files (x86)\Jenkins\workspace\Project\_Xbox\Project\Assets\Plugins\FMOD\Editor\FMOD\EventManager.cs:692  
> at (wrapper delegate-invoke) .invoke\_void()  
> at UnityEditor.EditorApplication.Internal\_CallUpdateFunctions () [0x00010] in C:\buildslave\unity\build\Editor\Mono\EditorApplication.cs:200
> 
> (Filename: Assets/Plugins/FMOD/Wrapper/fmod.cs Line: 1642)

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 13, 2020, 3:18am UTC](https://qa.fmod.com/t/dllnotfoundexception-libfmodl/16403/4 "2020-11-13T03:18:57Z")

</div>

The fact that it works for a few days then breaks seems strange and this makes me think it could have something to do with source control.

The libs for Windows x86\_64 should be found in:

- 1.10 : `Assets/Plugins/x86_64`
- 2.00 : `Assets/Plugins/FMOD/lib/win/x86_64`

Are you able to reproduce this at all? Either a project that reproduces this or just the steps would be helpful in finding the cause of this.
