I’m seeing the current error in the log from RELEASE builds using FMOD Integration 2.01.09 in a Unity 2019.4.28f1 project:
DllNotFoundException: Unable to load DLL 'fmodstudio': The specified module could not be found.
at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.PathToGUID (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio+GenericEvent..ctor (System.String stateEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.MapUIEvent (Myriad.AudioSettings+UI+UIEvent uiEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.Initialize () [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Assets+<LoadAssetBundles>d__20.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
Rethrow as SystemNotInitializedException: [FMOD] Initialization failed
at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.PathToGUID (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio+GenericEvent..ctor (System.String stateEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.MapUIEvent (Myriad.AudioSettings+UI+UIEvent uiEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.Initialize () [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Assets+<LoadAssetBundles>d__20.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: Object reference not set to an instance of an object.
at FMODUnity.RuntimeManager.Start () [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
DllNotFoundException: Unable to load DLL 'fmodstudio': The specified module could not be found.
at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.PathToGUID (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio+GenericEvent..ctor (System.String stateEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.MapUIEvent (Myriad.AudioSettings+UI+UIEvent uiEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.Initialize () [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Assets+<LoadAssetBundles>d__20.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
Rethrow as SystemNotInitializedException: [FMOD] Initialization failed
at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.PathToGUID (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio+GenericEvent..ctor (System.String stateEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.MapUIEvent (Myriad.AudioSettings+UI+UIEvent uiEvent) [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Audio.Initialize () [0x00000] in <00000000000000000000000000000000>:0
at Myriad.Assets+<LoadAssetBundles>d__20.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
Interestingly, the same problem does not occur in a DEVELOPMENT build. The game works fine in editor and in development builds, but fails at startup when running as a release build.
Could this be related in any way to the two other problems I’ve been seeing and have attempted to work around?
First problem: https://qa.fmod.com/t/the-name-staticpluginmanager-does-not-exist-in-the-current-context/17502/2
Second problem: https://qa.fmod.com/t/fmod-asyncmanager-asyncthreadloop-system-update-returned-error-2/17499