MacOS DllNotFoundException: fmodstudioL

Hi everyone, I’m getting DllNotFoundException: fmodstudioL when starting a MacOS build and it happens ONLY ON THE MAC OS BUILD.

I’ve read around on the forums and it seems like the DLL is not loaded from the beginning? That seems super weird to me, can I make it loaded on startup? Feels pretty unreliable to have to wait an undefined amount of time before using any FMOD functions.

Here’s the part from my crash log, first crash:

Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudioL
Uploading Crash Report
DllNotFoundException: fmodstudioL
  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 <9e6e49a912204f7a824ddc8f98705f7d>:0 
  at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in <9e6e49a912204f7a824ddc8f98705f7d>:0 
  at FMODUnity.RuntimeManager.get_Instance () [0x0010f] in <9e6e49a912204f7a824ddc8f98705f7d>:0 
Rethrow as SystemNotInitializedException: [FMOD] Initialization failed
  at FMODUnity.RuntimeManager.get_Instance () [0x0014e] in <9e6e49a912204f7a824ddc8f98705f7d>:0 
  at FMODUnity.RuntimeManager.get_StudioSystem () [0x00000] in <9e6e49a912204f7a824ddc8f98705f7d>:0 
  at FMODUnity.RuntimeManager.GetBus (System.String path) [0x00001] in <9e6e49a912204f7a824ddc8f98705f7d>:0 
  at AudioManager.InitializeManager () [0x00001] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at GameManager.Awake () [0x00085] in <eea339da6b5e4d4bb255bfef95601890>:0

I was having a similar issue on our project. To solve it, I made a backup of all of our FMOD project files, (the whole folder). Then removed it from our project entirely, and installed 2.01.06, then placed the backup files back in. That seemed to finally solve the issue for us.

Do you mean you updated the Unity Integration or FMOD Studio Suite?

Both

I’ll give it a try on Monday, thanks!

We’ve now updated to 2.01.06, both Integration and FMOD Studio Suite and it still doesn’t work.

I added a simple StudioEmitter to our intro splash screen and it instantly gives errors, this is the complete log, it’s essentially the same all the way but I wanted to include everything in case I missed something vital.

Mono path[0] = '/Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Resources/Data/Managed'
Mono config path = '/Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/MonoBleedingEdge/etc'
Loading player data from /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Resources/Data/data.unity3d
Initialize engine version: 2019.4.8f1 (60781d942082)
[Subsystems] Discovering subsystems at path /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Resources/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
2020-11-24 21:18:09.692 TOEM[3291:70269] Color LCD preferred device: Intel(R) Iris(TM) Graphics 6100 (low power)
2020-11-24 21:18:09.692 TOEM[3291:70269] Metal devices available: 1
2020-11-24 21:18:09.693 TOEM[3291:70269] 0: Intel(R) Iris(TM) Graphics 6100 (low power)
2020-11-24 21:18:09.693 TOEM[3291:70269] Using device Intel(R) Iris(TM) Graphics 6100 (low power)
Initializing Metal device caps: Intel(R) Iris(TM) Graphics 6100
Begin MonoManager ReloadAssembly
- Completed reload, in  0.173 seconds
UnloadTime: 4.445000 ms
Odin Serializer ArchitectureInfo initialization with defaults (all unaligned read/writes disabled). 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Odin Serializer detected whitelisted runtime platform OSXPlayer and memory read test succeeded; enabling all unaligned memory read/writes. 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Uploading Crash Report
DllNotFoundException: fmodstudio
  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) [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at FMODUnity.StudioListener.OnEnable () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
 
(Filename: <eea339da6b5e4d4bb255bfef95601890> Line: 0)

Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Uploading Crash Report
DllNotFoundException: fmodstudio
  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) [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at Logo_SpriteAnimator.Start () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
 
(Filename: <eea339da6b5e4d4bb255bfef95601890> Line: 0)

Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Uploading Crash Report
DllNotFoundException: fmodstudio
  at (wrapper managed-to-native) FMOD.Studio.EventInstance.FMOD_Studio_EventInstance_Start(intptr)
  at FMOD.Studio.EventInstance.start () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at Logo_SpriteAnimator.playSound (System.Int32 index) [0x00003] in <eea339da6b5e4d4bb255bfef95601890>:0 
 
(Filename: <eea339da6b5e4d4bb255bfef95601890> Line: 0)

Setting up 2 worker threads for Enlighten.
  Thread -> id: 70000d1ce000 -> priority: 1 
  Thread -> id: 70000d251000 -> priority: 1 
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Uploading Crash Report
DllNotFoundException: fmodstudio
  at (wrapper managed-to-native) FMOD.Studio.EventInstance.FMOD_Studio_EventInstance_Stop(intptr,FMOD.Studio.STOP_MODE)
  at FMOD.Studio.EventInstance.stop (FMOD.Studio.STOP_MODE mode) [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
  at Logo_SpriteAnimator.OnDestroy () [0x00000] in <eea339da6b5e4d4bb255bfef95601890>:0 
 
(Filename: <eea339da6b5e4d4bb255bfef95601890> Line: 0)

Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/fmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.dylib
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.so
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio.bundle
Fallback handler could not load library /Users/jamalgreen/Library/Application Support/Steam/steamapps/common/TOEM/TOEM.app/Contents/Frameworks/MonoEmbedRuntime/osx/libfmodstudio

What version of Unity are you using and are you building an Xcode project?

We’re using 2019.4.8f1 LTS, we’re simply building directly from the unity editor into a .app and submitting that .app to Steam

When you build, what gets printed to the Unity console?

Do you see something like this:
FMOD: Selected binaries for platform StandaloneOSX:

  • Enabled Assets/Plugins/FMOD/lib/mac/fmodstudio.bundle
  • Disabled Assets/Plugins/FMOD/lib/mac/fmodstudioL.bundle

If you look inside the built .app, is the FMOD library in there?

Yeah we’re getting this from the console

FMOD: Selected binaries for platform StandaloneOSX:
- Enabled Assets/Plugins/FMOD/lib/mac/fmodstudio.bundle
- Disabled Assets/Plugins/FMOD/lib/mac/fmodstudioL.bundle

And we have FMODUnity.dll & FMODUnityResonance.dll inside
.app\Contents\Resources\Data\Managed

Also got fmodstudio.bundle & resonanceaudio.bundle inside
.app\Contents\PlugIns

Not sure what the problem is really :confused:

I could build the splash screen and provide a link here if that would help to investigate the problem

That would be great, it might yield some info about what’s different from your builds compared to ours.

As a sanity test, if you import FMOD clean into an empty Unity project and have it play one of our example events do you have any problems? That was the test I just did here and everything worked smoothly.

Here’s our splash screen, it should loop and play a short jingle every time!

I found an issue where I did get the eventDescription incorrectly in the splash screen so I’ve now resorted to using a StudioEmitter instead that preloads sample date hopefully that could have been it…?

In the meantime, I’ll try the “sanity test” :slight_smile:

– EDIT –
Okay wow this was embarassing, the issue was that we’re trying to play a sound like our intro jingle when the FMOD was not loaded 100%, it could been a frame to early or something that fucked everything up…

By using the StudioEventEmitter script and preloading the sample data everything started working.

Could you share what you were doing wrong? It looks like the dropbox link has been deleted.
It shouldn’t be possible to get a DLL not found error, regardless of when APIs are called.
If there is a case, we’d love to fix it or document it so other don’t suffer the same issue.

Oh sorry, I deleted the dropbox folder when I found the solution.

The only thing I did was to use the FMODStudioEmitter script and preload the sample date, this way everything started working. Previously I used my own code which I thought was preloading the intro jingle but wasn’t.

Could actually be something wrong with my code there because I tried getting the description of an event instance before creating the instance itself.

I could go back a few commits and upload our intro splash screen again if you’d like?

If you could send that old version that would be great. Not loading the banks or something of that nature would explain an error, however it doesn’t explain the DLL not found issue at the core of this thread. I’m keen to find the circumstances that causes that problem.

I will upload a build in the coming weeks, plenty of other things to sort out first now as the errors were solved.

Me uploading a build for you is written as a task so it will be done, not just right now so you know ^^

So hi again…!
A few weeks went by haha!

Anyway here is the build that crashes, it should crash during the splash screen intro, ignore the errors past that haha.

I think the windows version is not throwing errors but the Mac SHOULD!

Thanks for that, it ran fine on Windows.

When testing on Mac, initially macOS gave me a permission denied error, I had to add the executable mode to the game binary to overcome that. Then I got hit with the unknown developer error, which I overcame by allowing it in Settings. Finally the game loaded correctly, with audio and no crash.

I did get a wall of errors once in the game as predicted, but no crash.
This is testing on macOS Big Sur 11.0.1 on an Intel Mac mini 2018.

Okay, that’s great to hear, I’m not sure how I can prevent this from happening from my side in the future?

As we’re using Unity is there any setting or something like that as I don’t quite follow what you mean with allowing the game in Settings & “add the executable mode to the game binary to overcome that”.

Cheers Mathew!