AudioIn Library could not be loaded
Options
Hello Photon team
We recently started using Photon Voice alongside PUN in our multiplayer game. For many of our players, this seems to work great but some of our users are experiencing issues where it fails upon loading the AudioIn library file, which has the effect of making the game hang.
The users experiencing this issue have the following lines in their log files as shown below. Is this something you guys have been confronted with before, and if so, have a solution at hand?
Thanks in advance.
We recently started using Photon Voice alongside PUN in our multiplayer game. For many of our players, this seems to work great but some of our users are experiencing issues where it fails upon loading the AudioIn library file, which has the effect of making the game hang.
The users experiencing this issue have the following lines in their log files as shown below. Is this something you guys have been confronted with before, and if so, have a solution at hand?
Thanks in advance.
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/AudioIn
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/.\AudioIn
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/AudioIn
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/libAudioIn
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/.\libAudioIn
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Liftoff/Liftoff_Data/Mono/libAudioIn
DllNotFoundException: AudioIn
at (wrapper managed-to-native) ExitGames.Client.Photon.Voice.AudioInEnumerator:Photon_Audio_In_CreateMicEnumerator ()
at ExitGames.Client.Photon.Voice.AudioInEnumerator.Refresh () [0x00000] in <filename unknown>:0
at ExitGames.Client.Photon.Voice.AudioInEnumerator..ctor () [0x00000] in <filename unknown>:0
at PhotonVoiceNetwork..ctor () [0x00000] in <filename unknown>:0
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
UnityEngine.GameObject:AddComponent()
PhotonVoiceNetwork:✕✗✑✛✔✛✓✓✑✐✖()
PhotonVoiceNetwork:✑✔✘✛✙✓✐✕✔✗✚()
PhotonVoiceHandler:Awake()
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
UnityEngine.GameObject:AddComponent()
PhotonVoiceHandler:RuntimeInitializeOnLoad()
0
Comments
-
As some additional notes to the above lines, we can replicate the issue with not loading the DLL if the file permissions are not set correctly, i.e. if you take away read, write and execution rights to the AudioIn DLL. But we're not entirely sure whether this is the root cause of the issue. Perhaps the AudioIn library has some additional dependencies that are not on the user's system and fails to load in that regard?0
-
0
-
Hi,
What does user actually run? 64-bit executable exported from Unity? Where the executable and dlls are located? Is proper path to dll listed in log? Can you share full application logs?
Can you run modified application version on target system to make sure that other dlls work? You need to set microphone type to Unity in PhotnoVoiceRecorder and edit first line of Assets\Plugins\PhotonVoiceApi\Platforms\Unity\AudioInEnumerator.cs so that #if expression evaluates to false (AudioInEnumerator stub class compiled in this case)0 -
I also have this problem I'm looking into it currently. I'm attaching an output log from a customer with the issue (reduced in size due to the character limit for a post) ...Initialize engine version: 5.6.5f1 (2cac56bf7bb6)
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: NVIDIA GeForce GTX 660 Ti (ID=0x1183)
Vendor: NVIDIA
VRAM: 1970 MB
Driver: 23.21.13.9077
Begin MonoManager ReloadAssembly
................................ cut some irrelevant log entries here
Initializing input.
Input initialized.
desktop: 1920x1080 60Hz; virtual: 1920x1080 at 0,0
Initialized touch support.
UnloadTime: 0.965204 ms
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\Mono.Security.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\System.Configuration.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\System.Xml.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\System.Transactions.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\Mono.Data.Tds.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\System.Runtime.Serialization.dll (this message is harmless)
Platform assembly: C:\Users\KEV\Desktop\VelociDrone BETA\app\velocidrone_Data\Managed\Boo.Lang.dll (this message is harmless)
Failed to load 'C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Plugins/AudioIn.dll' with error 'The specified module could not be found.
'.
(Filename: Line: 186)
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
Failed to load 'C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Plugins/AudioIn.dll' with error 'The specified module could not be found.
'.
(Filename: Line: 186)
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
Failed to load 'C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Plugins/AudioIn.dll' with error 'The specified module could not be found.
'.
(Filename: Line: 186)
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/AudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\libAudioIn
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libAudioIn
DllNotFoundException: AudioIn
at (wrapper managed-to-native) ExitGames.Client.Photon.Voice.AudioInEnumerator:Photon_Audio_In_CreateMicEnumerator ()
at ExitGames.Client.Photon.Voice.AudioInEnumerator.Refresh () [0x00000] in :0
at ExitGames.Client.Photon.Voice.AudioInEnumerator..ctor () [0x00000] in :0
at PhotonVoiceNetwork..ctor () [0x00000] in :0
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
UnityEngine.GameObject:AddComponent()
PhotonVoiceNetwork:MPHBFALJMGL()
PhotonVoiceNetwork:RuntimeInitializeOnLoad()
(Filename: Line: -1)
Settings DB Updates complete: starting A
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libc
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/.\libc
Fallback handler could not load library C:/Users/KEV/Desktop/VelociDrone BETA/app/velocidrone_Data/Mono/libc
A complete: starting P
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
Setting up 4 worker threads for Enlighten.
Thread -> id: f88 -> priority: 1
Thread -> id: c6c -> priority: 1
Thread -> id: 928 -> priority: 1
Thread -> id: 1e40 -> priority: 1
GfxDevice: creating device client; threaded=1
GfxDevice: creating device client; threaded=1
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
NullReferenceException: Object reference not set to an instance of an object
at PhotonVoiceNetwork.Update () [0x00000] in :0
(Filename: Line: -1)
0 -
The audioin.dll exists in the plugin directory, so I don't know why it's failing to load.0
-
Please try AudioIn.dll with statically linked runtime library https://www.dropbox.com/s/1m4w5p74876syd6/AudioIn.zip?dl=1
It has less dependencies on dlls possibly missing including vcruntime140.dll1 -
yes this resolves the problem0
-
PotonVoice package in Assets store is updated recently and should have fixed AudioIn.dll
1