DllNotFoundException: libfmodL

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

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

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)

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.