Jump to content

[Unity Build] The specified procedure could not be found


BelleGueule

Recommended Posts

When in the editor i sometime get Framework init -1, to fix the issue i would simply reboot unity and it would work. 

 

i started building today to see if the issue was only in the editor and i was greeted with the DllNotFoundException: ViveSR_API

 

 

PC Spec:

GTX1080

I7-7820HK

16Go Ram

 

I've i done something wrong? 

 

unity log


Mono path[0] = 'C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Managed'Mono config path = 'C:/Users/[REDACTED]/Desktop/New/MonoBleedingEdge/etc'PlayerConnection initialized from C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data (debug = 0)PlayerConnection initialized network socket : 0.0.0.0 55361Socket: bind failed, error: An attempt was made to access a socket in a way forbidden by its access permissions.(10013) (Filename: C:\buildslave\unity\build\Runtime/Network/Sockets.cpp Line: 415)Multi-casting "[iP] [Redacted] [Port] 55361 [Flags] 3 [Guid] 719054361 [EditorId] 2044941076 [Version] 1048832 [id] WindowsPlayer(OMEN-01) [Debug] 1 [PackageName] WindowsPlayer" to [225.0.0.222:54997]...Waiting for connection from host on [0.0.0.0:55361]...Timed out. Continuing without host connection.Started listening to [0.0.0.0:55361]Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56361PlayerConnection already initialized - listening to [0.0.0.0:55361]Initialize engine version: 2018.3.13f1 (06548a9e9582)GfxDevice: creating device client; threaded=1Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: NVIDIA GeForce GTX 1080 (ID=0x1ba0) Vendor: VRAM: 8079 MB Driver: 25.21.14.1967Begin MonoManager ReloadAssembly- Completed reload, in 0.123 seconds<RI> Initializing input.<RI> Input initialized.<RI> Initialized touch support.OpenVR initialized! (Filename: C:\buildslave\unity\build\Runtime/VR/OpenVR/OpenVR.cpp Line: 728)Created eye textures with a "separate" layout. The "multi-pass" stereo mode will be used. (Filename: C:\buildslave\unity\build\Runtime/VR/VRDevice.cpp Line: 2264)WARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shaderWARNING: Shader Unsupported: 'Hidden/PostProcessing/Uber' - Pass '' has no vertex shaderWARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shaderWARNING: Shader Unsupported: 'Hidden/PostProcessing/FinalPass' - Pass '' has no vertex shaderUnloadTime: 0.739900 ms<b>[steamVR]</b> Successfully loaded 10 actions from action manifest into SteamVR (C:/Users/[REDACTED]/Desktop/New/actions.json)UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])UnityEngine.Logger:Log(LogType, Object)UnityEngine.Debug:Log(Object)Valve.VR.SteamVR_Input:IdentifyActionsFile(Boolean) (at [REDACTED]\Assets\SteamVR\Input\SteamVR_Input.cs:1270)Valve.VR.SteamVR:CreateInstance() (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR.cs:179)Valve.VR.SteamVR:Initialize(Boolean) (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR.cs:98)Valve.VR.SteamVR_Behaviour:InitializeSteamVR(Boolean) (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR_Behaviour.cs:116)Valve.VR.SteamVR_Behaviour:Awake() (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR_Behaviour.cs:97) (Filename: [REDACTED]/Assets/SteamVR/Input/SteamVR_Input.cs Line: 1270)<b>[steamVR]</b> Initialized. Connected to lighthouse:LHR-9BDCF81DUnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])UnityEngine.Logger:Log(LogType, Object)UnityEngine.Debug:Log(Object)Valve.VR.SteamVR:.ctor() (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR.cs:618)Valve.VR.SteamVR:CreateInstance() (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR.cs:201)Valve.VR.SteamVR:Initialize(Boolean) (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR.cs:98)Valve.VR.SteamVR_Behaviour:InitializeSteamVR(Boolean) (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR_Behaviour.cs:116)Valve.VR.SteamVR_Behaviour:Awake() (at [REDACTED]\Assets\SteamVR\Scripts\SteamVR_Behaviour.cs:97) (Filename: [REDACTED]/Assets/SteamVR/Scripts/SteamVR.cs Line: 618)Plugins: Failed to load 'C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Plugins/ViveSR_API.dll' with error 'The specified procedure could not be found.'.System.Runtime.InteropServices.Marshal:GetFunctionPointerForDelegateInternal(Delegate)System.Runtime.InteropServices.Marshal:GetFunctionPointerForDelegate(UnityRenderEvent)Vive.Plugin.SR.ViveSR_DualCameraImageRenderer:Start() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR_DualCameraImageRenderer.cs:92)[C:\buildslave\unity\build\Runtime/Misc/Plugins.cpp line 233] (Filename: [REDACTED]/Assets/ViveSR/Scripts/ViveSR_DualCameraImageRenderer.cs Line: 92)Fallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIDllNotFoundException: ViveSR_API at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegateInternal(System.Delegate) at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate[TDelegate] (TDelegate d) [0x00013] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 at Vive.Plugin.SR.ViveSR_DualCameraImageRenderer.Start () [0x0000c] in [REDACTED]\Assets\ViveSR\Scripts\ViveSR_DualCameraImageRenderer.cs:92 (Filename: <d7ac571ca2d04b2f981d0d886fa067cf> Line: 0)Setting up 4 worker threads for Enlighten. Thread -> id: 648 -> priority: 1 Thread -> id: 4e98 -> priority: 1 Thread -> id: 4720 -> priority: 1 Thread -> id: 472c -> priority: 1 d3d11: failed to create buffer (target 0x2 mode 0 size 0) [0x80070057] //This message repeated 333 times
Plugins: Failed to load 'C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Plugins/ViveSR_API.dll' with error 'The specified procedure could not be found.'.Vive.Plugin.SR.ViveSR:ViveSR_InitialFramework() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:179)Vive.Plugin.SR.<StartFrameworkCoroutine>d__27:MoveNext() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:78)UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)[C:\buildslave\unity\build\Runtime/Misc/Plugins.cpp line 233] (Filename: [REDACTED]/Assets/ViveSR/Scripts/ViveSR.cs Line: 179)Fallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIPlugins: Failed to load 'C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Plugins/ViveSR_API.dll' with error 'The specified procedure could not be found.'.Vive.Plugin.SR.ViveSR_Framework:Initial() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR_Framework.cs:58)Vive.Plugin.SR.ViveSR:ViveSR_InitialFramework() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:179)Vive.Plugin.SR.<StartFrameworkCoroutine>d__27:MoveNext() (at [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:78)UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)[C:\buildslave\unity\build\Runtime/Misc/Plugins.cpp line 233] (Filename: [REDACTED]/Assets/ViveSR/Scripts/ViveSR_Framework.cs Line: 58)Fallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/ViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_API.dllFallback handler could not load library C:/Users/[REDACTED]/Desktop/New/[REDACTED]_Data/Mono/libViveSR_APIDllNotFoundException: ViveSR_API at (wrapper managed-to-native) Vive.Plugin.SR.ViveSR_Framework.ViveSR_Initial() at Vive.Plugin.SR.ViveSR_Framework.Initial () [0x00001] in [REDACTED]\Assets\ViveSR\Scripts\ViveSR_Framework.cs:58 at Vive.Plugin.SR.ViveSR.ViveSR_InitialFramework () [0x00003] in [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:179 at Vive.Plugin.SR.ViveSR+<StartFrameworkCoroutine>d__27.MoveNext () [0x00088] in [REDACTED]\Assets\ViveSR\Scripts\ViveSR.cs:78 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <780acbdfab1d441d95f18133007790cd>:0 (Filename: <780acbdfab1d441d95f18133007790cd> Line: 0)A Canvas named "debug canva" with a render mode of ScreenSpaceOverlay is being used while VR is also enabled. This Canvas will continue to incur a rendering cost, but will not be visible while in VR. Is this intentional? (Filename: C:\buildslave\unity\build\Runtime/UI/CanvasManager.cpp Line: 922)

 

Link to comment
Share on other sites

it might not be the best solution but we've worked around the issue by tweeking openvr_api.cs

 

public class OpenVRInterop{/*	[DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)]	internal static extern uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType);	[DllImportAttribute("openvr_api", EntryPoint = "VR_InitInternal2", CallingConvention = CallingConvention.Cdecl)]	internal static extern uint InitInternal2(ref EVRInitError peError, EVRApplicationType eApplicationType,[in, MarshalAs(UnmanagedType.LPStr)] string pStartupInfo);	[DllImportAttribute("openvr_api", EntryPoint = "VR_ShutdownInternal", CallingConvention = CallingConvention.Cdecl)]	internal static extern void ShutdownInternal();	[DllImportAttribute("openvr_api", EntryPoint = "VR_IsHmdPresent", CallingConvention = CallingConvention.Cdecl)]	internal static extern bool IsHmdPresent();	[DllImportAttribute("openvr_api", EntryPoint = "VR_IsRuntimeInstalled", CallingConvention = CallingConvention.Cdecl)]	internal static extern bool IsRuntimeInstalled();	[DllImportAttribute("openvr_api", EntryPoint = "VR_RuntimePath", CallingConvention = CallingConvention.Cdecl)]	internal static extern string RuntimePath();	[DllImportAttribute("openvr_api", EntryPoint = "VR_GetStringForHmdError", CallingConvention = CallingConvention.Cdecl)]	internal static extern IntPtr GetStringForHmdError(EVRInitError error);	[DllImportAttribute("openvr_api", EntryPoint = "VR_GetGenericInterface", CallingConvention = CallingConvention.Cdecl)]	internal static extern IntPtr GetGenericInterface([in, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref EVRInitError peError);	[DllImportAttribute("openvr_api", EntryPoint = "VR_IsInterfaceVersionValid", CallingConvention = CallingConvention.Cdecl)]	internal static extern bool IsInterfaceVersionValid([in, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion);	[DllImportAttribute("openvr_api", EntryPoint = "VR_GetInitToken", CallingConvention = CallingConvention.Cdecl)]	internal static extern uint GetInitToken();*/        [DllImportAttribute("__Internal", EntryPoint = "VR_InitInternal", CallingConvention = CallingConvention.Cdecl)]        internal static extern uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType);        [DllImportAttribute("__Internal", EntryPoint = "VR_InitInternal2", CallingConvention = CallingConvention.Cdecl)]        internal static extern uint InitInternal2(ref EVRInitError peError, EVRApplicationType eApplicationType, [in, MarshalAs(UnmanagedType.LPStr)] string pStartupInfo);        [DllImportAttribute("__Internal", EntryPoint = "VR_ShutdownInternal", CallingConvention = CallingConvention.Cdecl)]        internal static extern void ShutdownInternal();        [DllImportAttribute("__Internal", EntryPoint = "VR_IsHmdPresent", CallingConvention = CallingConvention.Cdecl)]        internal static extern bool IsHmdPresent();        [DllImportAttribute("__Internal", EntryPoint = "VR_IsRuntimeInstalled", CallingConvention = CallingConvention.Cdecl)]        internal static extern bool IsRuntimeInstalled();        [DllImportAttribute("__Internal", EntryPoint = "VR_RuntimePath", CallingConvention = CallingConvention.Cdecl)]        internal static extern string RuntimePath();        [DllImportAttribute("__Internal", EntryPoint = "VR_GetStringForHmdError", CallingConvention = CallingConvention.Cdecl)]        internal static extern IntPtr GetStringForHmdError(EVRInitError error);        [DllImportAttribute("__Internal", EntryPoint = "VR_GetGenericInterface", CallingConvention = CallingConvention.Cdecl)]        internal static extern IntPtr GetGenericInterface([in, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion, ref EVRInitError peError);        [DllImportAttribute("__Internal", EntryPoint = "VR_IsInterfaceVersionValid", CallingConvention = CallingConvention.Cdecl)]        internal static extern bool IsInterfaceVersionValid([in, MarshalAs(UnmanagedType.LPStr)] string pchInterfaceVersion);        [DllImportAttribute("__Internal", EntryPoint = "VR_GetInitToken", CallingConvention = CallingConvention.Cdecl)]        internal static extern uint GetInitToken();    }
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...