Placeholder-Software / Dissonance

Unity Voice Chat Asset
71 stars 5 forks source link

[bug] Opus plugins can't be found on Mac Unity 2019.3.12f1 #193

Closed billychasen closed 4 years ago

billychasen commented 4 years ago

I created a fresh build and sound wasn't working.

Partial player log output logs shows:

Fallback handler could not load library /Users/billy/Documents/Programming/New Unity Project3/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/New Unity Project3/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/New Unity Project3/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
[Dissonance:Recording] (18:40:35.029) CapturePipelineManager: Unexpected exception encountered starting microphone capture; local voice transmission will be disabled: System.DllNotFoundException: x86_64/opus
  at (wrapper managed-to-native) Dissonance.Audio.Codecs.Opus.OpusNative+OpusNativeMethods.opus_encoder_create(int,int,int,int&)
  at Dissonance.Audio.Codecs.Opus.OpusNative+OpusEncoder..ctor (System.Int32 srcSamplingRate, System.Int32 srcChannelCount) [0x00074] in <ee1e45aefa3340c783fe4b5686214a4a>:0
  at Dissonance.Audio.Codecs.Opus.OpusEncoder..ctor (Dissonance.AudioQuality quality, Dissonance.FrameSize frameSize, System.Boolean fec) [0x0000d] in <ee1e45aefa3340c783fe4b5686214a4a>:0
  at Dissonance.CodecSettingsLoader.CreateEncoder () [0x0003d] in <ee1e45aefa3340c783fe4b5686214a4a>:0
  at Dissonance.Audio.Capture.CapturePipelineManager.RestartTransmissionPipeline (System.String reason) [0x0012e] in <ee1e45aefa3340c783fe4b5686214a4a>:0
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Workaround

If you open the app (Show Package Contents) and move the opus plugins from Contents/Plugins to Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64, it will work (Note: you need to manually create that directory chain).

martindevans commented 4 years ago

Thanks for reporting this. Was that the full log of fallback handlers? Usually Unity will try 10-20 locations before it gives up.

billychasen commented 4 years ago

No, here's the full log:

Mono path[0] = '/Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Resources/Data/Managed'
Mono config path = '/Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/MonoBleedingEdge/etc'
Initialize engine version: 2019.3.12f1 (84b23722532d)
[Subsystems] Discovering subsystems at path /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Resources/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
2020-05-11 15:56:25.528 New Unity Project3[531:12372805] Color LCD preferred device: Intel(R) Iris(TM) Plus Graphics 655 (low power)
2020-05-11 15:56:25.528 New Unity Project3[531:12372805] Metal devices available: 1
2020-05-11 15:56:25.528 New Unity Project3[531:12372805] 0: Intel(R) Iris(TM) Plus Graphics 655 (low power)
2020-05-11 15:56:25.529 New Unity Project3[531:12372805] Using device Intel(R) Iris(TM) Plus Graphics 655 (low power)
Initializing Metal device caps: Intel(R) Iris(TM) Plus Graphics 655
Begin MonoManager ReloadAssembly
- Completed reload, in  0.058 seconds
UnloadTime: 11.634291 ms
Thank you for using Mirror! https://mirror-networking.com
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

TelepathyTransport initialized!
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
[Dissonance:Core] (19:56:27.770) DissonanceComms: Dependency Error: x86_64/opus
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Core] (19:56:27.785) DissonanceComms: Loading default playback prefab
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Core] (19:56:27.827) DissonanceComms: Starting Dissonance Voice Comms (7.0.1)
- Network: [Dissonance (Dissonance.Integrations.MirrorIgnorance.MirrorIgnoranceCommsNetwork)]
- Quality Settings: [Quality: Low, FrameSize: Medium, FEC: True, DenoiseAmount: High, VoiceDuckLevel: 0.75 VAD: LowSensitivity]
- Codec: [Codec: Opus, FrameSize: 1920, SampleRate: 48kHz]
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Server: Start port=7777
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Server: listening port=7777
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Network] (19:56:38.142) MirrorIgnoranceServer: Created server with SessionId:2064125420
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

NetworkServer.RegisterHandler replacing hanlder for Dissonance.Integrations.MirrorIgnorance.DissonanceNetworkMessage, id=8290. If replacement is intentional, use ReplaceHandler instead to avoid this warning.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Network] (19:56:38.142) MirrorIgnoranceServer: Connected
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Recording] (19:56:38.176) BasicMicrophoneCapture: Began mic capture (SampleRate:16000Hz, FrameSize:320, Buffer Limit:2^11, Latency:20ms, Device:'')
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/AudioPluginDissonance
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/x86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/opus
[Dissonance:Recording] (19:56:41.382) CapturePipelineManager: Unexpected exception encountered starting microphone capture; local voice transmission will be disabled: System.DllNotFoundException: x86_64/opus
  at (wrapper managed-to-native) Dissonance.Audio.Codecs.Opus.OpusNative+OpusNativeMethods.opus_encoder_create(int,int,int,int&)
  at Dissonance.Audio.Codecs.Opus.OpusNative+OpusEncoder..ctor (System.Int32 srcSamplingRate, System.Int32 srcChannelCount) [0x00074] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.Audio.Codecs.Opus.OpusEncoder..ctor (Dissonance.AudioQuality quality, Dissonance.FrameSize frameSize, System.Boolean fec) [0x0000d] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.CodecSettingsLoader.CreateEncoder () [0x0003d] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.Audio.Capture.CapturePipelineManager.RestartTransmissionPipeline (System.String reason) [0x0012e] in <6b0838cc15714ee68b531768cf974fba>:0
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Network] (19:56:41.408) ConnectionNegotiator`1: Received handshake response from server, joined session '2064125420'
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Recording] (19:56:38.201) BasePreprocessingPipeline: Voice Error: Unhandled exception killed audio preprocessor thread: System.DllNotFoundException: x86_64/AudioPluginDissonance
  at (wrapper managed-to-native) Dissonance.Audio.Capture.WebRtcPreprocessingPipeline+WebRtcPreprocessor.Dissonance_CreatePreprocessor(Dissonance.Audio.Capture.NoiseSuppressionLevels,Dissonance.Audio.Capture.AecSuppressionLevels,bool,bool,bool,Dissonance.Audio.Capture.AecmRoutingMode,bool)
  at Dissonance.Audio.Capture.WebRtcPreprocessingPipeline+WebRtcPreprocessor.CreatePreprocessor () [0x00042] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.Audio.Capture.WebRtcPreprocessingPipeline+WebRtcPreprocessor.Reset () [0x0003c] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.Audio.Capture.WebRtcPreprocessingPipeline.ApplyReset () [0x00008] in <6b0838cc15714ee68b531768cf974fba>:0
  at Dissonance.Audio.Capture.BasePreprocessingPipeline.ThreadEntry () [0x00006] in <6b0838cc15714ee68b531768cf974fba>:0 ! Error ID: 02EB75C0-1E12-4109-BFD2-64645C14BD5F
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

OnApplicationQuit: stopped client
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Server: stopping...
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/Kernel32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libKernel32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/advapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/advapi32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/advapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/advapi32
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.dylib
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.so
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll.bundle
Fallback handler could not load library /Users/billy/Documents/Programming/test/Test/Builds/Test.app/Contents/Frameworks/MonoEmbedRuntime/osx/libadvapi32.dll
OnApplicationQuit: stopped server
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

TelepathyTransport Shutdown()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Setting up 4 worker threads for Enlighten.
  Thread -> id: 70000db34000 -> priority: 1
  Thread -> id: 70000dc3a000 -> priority: 1
  Thread -> id: 70000dbb7000 -> priority: 1
  Thread -> id: 70000dcbd000 -> priority: 1
Server Thread stopped. That's okay. System.Net.Sockets.SocketException (0x80004005): interrupted
  at System.Net.Sockets.Socket.Accept () [0x00033] in <ae22a4e8f83c41d69684ae7f557133d9>:0
  at System.Net.Sockets.TcpListener.AcceptTcpClient () [0x0001e] in <ae22a4e8f83c41d69684ae7f557133d9>:0
  at Telepathy.Server.Listen (System.Int32 port) [0x0006a] in <20a0556e04424a1abfc6a87fccb062b3>:0
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Network] (19:56:45.136) MirrorIgnoranceClient: Disconnected
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Dissonance:Network] (19:56:45.138) MirrorIgnoranceServer: Disconnected
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
dpa456 commented 4 years ago

oh, i have same issue!

[Envior] macbook Catailna Unity 2019.3.10f1 Personal


[DissonanceVoIP - Plugins]

-macOS - opus (Any Platform) -x86_64 - opus (Any Platform)



[Dissonance:Core] (02:27:33.168) DissonanceComms: Dependency Error: opus
UnityEngine.Debug:LogError(Object)
Dissonance.LogMessage:Log() (at Assets/TVoIPX/DissonanceVoIP/Core/Log.cs:66)
Dissonance.Logs:SendLogMessage(String, LogLevel) (at Assets/TVoIPX/DissonanceVoIP/Core/Log.cs:95)
Dissonance.Log:WriteLog(LogLevel, String) (at Assets/TVoIPX/DissonanceVoIP/Core/Log.cs:178)
Dissonance.Log:WriteLogFormat(LogLevel, String, String) (at Assets/TVoIPX/DissonanceVoIP/Core/Log.cs:187)
Dissonance.Log:Error(String, String) (at Assets/TVoIPX/DissonanceVoIP/Core/Log.cs:428)
Dissonance.DissonanceComms:Start() (at Assets/TVoIPX/DissonanceVoIP/DissonanceComms.cs:339)

[Workaround]


i found this error in your code [Dissonance:Core] (19:56:27.770) DissonanceComms: Dependency Error: x86_64/opus try this solution

Dissonance Folder

x86_64 Folder

opus change AnyPlatform Support and restart project

martindevans commented 4 years ago

@dpa456 Could you explain what you mean about your workaround? Currently the import settings look like this for me:

Unity_2020-05-12_16-44-09

Do you see the same? If so, what did you change it to? Thanks :)

dpa456 commented 4 years ago

@martindevans yes, you this :) Unity 2019.3.10f1 Personal


"[Dissonance:Core] (02:27:33.168) DissonanceComms: Dependency Error: opus"

opus
opus2

so, i'm workaround but i have another issue! this error is EntryPoint then no search "SWIGRegisterExceptionCallback_RakNet" on Mac envior. so i have trying Android envior, this is not error. current i have RakNetPINVOKE.cs Version is 2.0.12 what happens?


"[EntryPointNotFoundException: SWIGRegisterExceptionCallbacks_RakNet]"

SwigException

can't find SWIGRegisterExceptionCallbacks_RakNet in RakNetPINVOKE.cs EntryPointSwigRegister_dll


you know that? what purpose SWIGRegisterExceptionCallbacks_RakNet? EntryPointSwigRegister_cs

martindevans commented 4 years ago

EntryPointNotFoundException: SWIGRegisterExceptionCallbacks_RakNet

This is an error from your network library - it cannot find the method called SWIGRegisterExceptionCallbacks_RakNet. I would suggest contacting the developer of your networking system about this :)

dpa456 commented 4 years ago

@martindevans

yes, i'm tracking this error.. can't find SWIGRegisterExceptionCallbacks_RakNet in RakNetPINVOKE.cs maybe i know RakNet dll in Dissonance Voice Chat Asset, so i'm checking Update the Asset :) sorry this is another level issuse thank you your suggest 👍

cjp585 commented 4 years ago

Hi @martindevans

Is there any update on Billy's original bug? I just downloaded Dissonance and am having the same problem. I'm running Unity 2019.3.14 on macOS Catalina (10.15.3) -Thanks

martindevans commented 4 years ago

No updates yet, @TomGillen will be investigating it on his Macbook soon. Does the workaround of moving the files in the build output work for you?

rje commented 4 years ago

I ran into this today - manually moving the bundles to Contents/Frameworks/MonoEmbedRuntime/osx/libx86_64/ as part of a post build step has fixed the issue for now.

(Note for new folks that you still need to request microphone access using https://docs.unity3d.com/ScriptReference/Application.RequestUserAuthorization.html )

cjp585 commented 4 years ago

@martindevans Yes that worked, thanks.

I am having a different problem now with bluetooth audio and switching audio devices but I will file a new bug for that.

billychasen commented 4 years ago

@rje Did you automate that in post-build or doing it manually? I tried to automate and couldn't. Would appreciate a script if you did.

martindevans commented 4 years ago

chilly on Dissonance reports that the following steps worked for him to get Dissonance working on MacOS:

1) Switch x86_64 opus.dll and AudioPluginDissonance.dll to any platform 2) Edit Opus.cs and WebRtcPreprocessingPipeline.cs and remove x86_64/ from paths 3) compile as IL2CPP

We're not certain if all of these steps are necessary yet, but apparently this works!

martindevans commented 4 years ago

Dissonance 7.0.2 has just released on the asset store. In this release we've deprecated the changes we previously made to the plugins, since they seemed to make things generally worse!

We're not certain if this will completely fix the situation, so feedback on if this fixes or breaks things for you is much appreciated!

davidbardos commented 4 years ago

@martindevans I also had this problem and updated the dissonance plugin to the latest version (7.0.2), however it still get this error in the editor: [Dissonance:Core] (17:52:38.201) DissonanceComms: Dependency Error: opus

martindevans commented 4 years ago

@davidbardos Did you try the changes to the import settings suggested in this post? We're still not sure why this works for some people and not for others, so any details on what you've tried or what settings you have enabled will help us work it out!

dpa456 commented 4 years ago

@davidbardos

please to be supporting your 'Environment(platform, os etc)' and 'DissonanceVoIP - Plugins - opus Setting(your platform)'

davidbardos commented 4 years ago

@martindevans I still have the error - Unity 2019.3.15f1 // macOS 10.13.6

Also is this fix supposed to work in the editor or only in the compiled app?

martindevans commented 4 years ago

I haven't found "x86_64" in paths in opus.cs

Yep, those were removed in the latest version. That change fixed it for a few users and broke it for a lot more so we reverted it!

I switched opus.dll and AudioPluginDissonance.dll to any platform in the Plugins/Dissonance/Plugins/x86_64 folder. What is unclear to me is what to do with the ones in the macOS folder?

Sorry those instructions are a bit unclear. What you need to do is swap the plugins in Assets/Plugins/Dissonance/Plugins/macOS to Any Platform. The ones in Assets/Plugins/Dissonance/Plugins/x86_64 should remain as they were.

Also is this fix supposed to work in the editor or only in the compiled app?

I think Chilly only had the issue in the compiled app. But it's worth trying in editor.


Before the dependency error do you get anything in the editor log about what paths it's trying to load plugins from? That might give us a hint where Unity is looking.

davidbardos commented 4 years ago

@martindevans Thanks for the clarification!

I did as suggested but unfortunately I keep on getting the same dependency error. I don't get any error before that.

[Dissonance:Core] (16:59:46.490) DissonanceComms: Dependency Error: opus UnityEngine.Debug:LogError(Object) Dissonance.LogMessage:Log() (at Assets/Plugins/Dissonance/Core/Log.cs:67) Dissonance.Logs:SendLogMessage(String, LogLevel) (at Assets/Plugins/Dissonance/Core/Log.cs:96) Dissonance.Log:WriteLog(LogLevel, String) (at Assets/Plugins/Dissonance/Core/Log.cs:179) Dissonance.Log:WriteLogFormat(LogLevel, String, String) (at Assets/Plugins/Dissonance/Core/Log.cs:188) Dissonance.Log:Error(String, String) (at Assets/Plugins/Dissonance/Core/Log.cs:429) Dissonance.DissonanceComms:Start() (at Assets/Plugins/Dissonance/DissonanceComms.cs:325)

martindevans commented 4 years ago

Could you send me the full editor log (~/Library/Logs/Unity/Editor.log), I'll dig through it and see if I can spot anything else that may cause the issue.

davidbardos commented 4 years ago

Sure, here you are editor.log

martindevans commented 4 years ago

I've had a look at that log and just before every opus dependency error something like this is printed:

Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/Dissonance/Plugins/macOS/AudioPluginDissonance.bundle.dylib\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/Dissonance/Plugins/macOS/AudioPluginDissonance.bundle.so\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libAssets/Plugins/Dissonance/Plugins/macOS/AudioPluginDissonance.bundle\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libopus\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libopus.dylib\
<... more lines of the same ...>
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libopus.so\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libopus.bundle\
Fallback handler could not load library /Applications/Unity/Hub/Editor/2019.4.1f1/Unity.app/Contents/Frameworks/Mono/lib/libopus\
[Dissonance:Recording] (13:48:42.240) CapturePipelineManager: Unexpected exception encountered starting microphone capture; local voice transmission will be disabled: System.DllNotFoundException: opus\

This looks very similar to a debug log from a working Mac, so I think that's probably ok (looking at fallback paths like this can be a bit tricky, so I'm not certain).


My best guess is that it's finding the correct file, but then failing to load it for some reason. I can only thinking of two reasons it could fail:

martindevans commented 4 years ago

No one has reported any issues with MacOS dependencies for a while so I'm going to assume this has been fixed. If anyone is still having these issues please don't hesitate to post here and I'll reopen the issue.