Hi there!
I am developing an application in Unity (2019.4.6f1) using the Leap Unity Modules Package (4.9.1). The project is working as designed within the editor, however when built as an executable, the application fails.
In the executable debugger I get the error - "DllNotFoundException: LeapC" with full error report at the bottom of this post.
I have tried copying the .dll (from unity folder\ Assets\Plugins\LeapMotion\Core\Plugins\x8664"to the executable folder but this is not able to fix the issue.
Anyone have an idea as to what is going wrong?
Thanks!
Mono path[0] = 'C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Managed'
Mono config path = 'C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/MonoBleedingEdge/etc'
PlayerConnection initialized from C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55310
Multi-casting "[IP] 192.168.0.15 [Port] 55310 [Flags] 3 [Guid] 2807860339 [EditorId] 520200971 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-1QJTIMO) [Debug] 1 [PackageName] WindowsPlayer [ProjectName] CalibrationBLEWDB" to [225.0.0.222:54997]...
Waiting for connection from host on [0.0.0.0:55310]...
Remaining time:8s
Remaining time:7s
Remaining time:6s
Remaining time:5s
Remaining time:4s
Remaining time:3s
Remaining time:2s
Remaining time:1s
Remaining time:0s
Timed out. Continuing without host connection.
Started listening to [0.0.0.0:55310]
Starting managed debugger on port 56339
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56339
PlayerConnection already initialized - listening to [0.0.0.0:55310]
Initialize engine version: 2019.4.6f1 (a7aea80e3716)
[Subsystems] Discovering subsystems at path C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: NVIDIA GeForce MX250 (ID=0x1d13)
Vendor: (null)
VRAM: 1983 MB
Driver: 27.21.14.5167
Begin MonoManager ReloadAssembly
- Completed reload, in 0.132 seconds
D3D11 device created for Microsoft Media Foundation video decoding.
Initializing input.
Input initialized.
Initialized touch support.
UnloadTime: 1.092500 ms
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/LeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC.dll
Fallback handler could not load library C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/Deployment/ContainerBLE/UnityExecutables/CalibrationBLEWDB/CalibrationBLEWDB_Data/Mono/libLeapC
Uploading Crash Report
DllNotFoundException: LeapC
at (wrapper managed-to-native) LeapInternal.LeapC.CreateConnection(intptr,intptr&)
at LeapInternal.LeapC.CreateConnection (System.IntPtr& pConnection) [0x00001] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\Plugins\LeapMotion\Core\Plugins\LeapCSharp\LeapC.cs:816
at LeapInternal.Connection.Start () [0x0003b] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\Plugins\LeapMotion\Core\Plugins\LeapCSharp\Connection.cs:162
at Leap.Controller..ctor (System.Int32 connectionKey, System.String serverNamespace) [0x0009a] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\Plugins\LeapMotion\Core\Plugins\LeapCSharp\Controller.cs:385
at Leap.Controller..ctor () [0x00000] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\Plugins\LeapMotion\Core\Plugins\LeapCSharp\Controller.cs:363
at Calibration..cctor () [0x00146] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\Scripts\Calibration.cs:63
Rethrow as TypeInitializationException: The type initializer for 'Calibration' threw an exception.
(Filename: C:/Users/Tim West/OneDrive - Nexus365/OPM_TASK/UnityDesign/Calibration_BLE/Assets/Plugins/LeapMotion/Core/Plugins/LeapCSharp/LeapC.cs Line: 816)
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 9.184300 ms
Uploading Crash Report
NatNetException: NatNet_Client_Connect failed. (NatNetError_Network)
at NaturalPoint.NatNetLib.NatNetException.ThrowIfNotOK (NaturalPoint.NatNetLib.NatNetError result, System.String message) [0x0000a] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\OptiTrack\Plugins\Managed\NatNetLib\Client.cs:37
at NaturalPoint.NatNetLib.NatNetClient.Connect (NaturalPoint.NatNetLib.NatNetConnectionType connType, System.Net.IPAddress localAddress, System.Net.IPAddress serverAddress, System.UInt16 serverCommandPort, System.UInt16 serverDataPort, System.Net.IPAddress multicastAddress) [0x00069] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\OptiTrack\Plugins\Managed\NatNetLib\Client.cs:155
at OptitrackStreamingClient.OnEnable () [0x00040] in C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\OptiTrack\Scripts\OptitrackStreamingClient.cs:464
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception, Object)
OptitrackStreamingClient:OnEnable() (at C:\Users\Tim West\OneDrive - Nexus365\OPM_TASK\UnityDesign\Calibration_BLE\Assets\OptiTrack\Scripts\OptitrackStreamingClient.cs:469)