question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Open Binding UI" button throws error and does not open anything

See original GitHub issue

Hey,

So I am on the latest version of SteamVR and on unity 2018.3.0f2, but for some reason I am unable to open the binding UI.

notopeninggif

Attached is a Gif of me attempting to open it. I’ll also attach the error messages.

The First error thrown: SteamVR]</b> Error during OpenVR Init: Init_HmdNotFoundPresenceFailed UnityEngine.Debug:LogError(Object) Valve.VR.SteamVR:InitializeTemporarySession(Boolean) (at Assets/SteamVR/Scripts/SteamVR.cs:306) Valve.VR.SteamVR:ShowBindingsForEditor() (at Assets/SteamVR/Scripts/SteamVR.cs:340) Valve.VR.SteamVR_Input_EditorWindow:OpenControllerBindings() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522) Valve.VR.SteamVR_Input_EditorWindow:DrawSave() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507) Valve.VR.SteamVR_Input_EditorWindow:OnGUI() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

The Second Error Thrown: ullReferenceException: Object reference not set to an instance of an object Valve.VR.SteamVR.ShowBindingsForEditor () (at Assets/SteamVR/Scripts/SteamVR.cs:343) Valve.VR.SteamVR_Input_EditorWindow.OpenControllerBindings () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522) Valve.VR.SteamVR_Input_EditorWindow.DrawSave () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507) Valve.VR.SteamVR_Input_EditorWindow.OnGUI () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:342) UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:336) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:310) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect, System.Boolean customBorder, System.Boolean floatingWindow, System.Boolean isBottomTab) (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:363) UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:322) UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:266) UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:438) UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:421) UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:401) UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:511) UnityEngine.Experimental.UIElements.EventDispatcher.Dispatch (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:307) UnityEngine.Experimental.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.Experimental.UIElements.EventBase e, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:176) UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:245) UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:68) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
joostboscommented, Oct 8, 2019

I get the same error on Unity 2019.2.6f1 with the SteamVR 2.4.3 plugin with my HTC Vive connected and switched on. Also the controllers are on. Everything is green/blue gradient in SteamVR 1.7.15. I made sure the Vive and controllers were on and tracking before starting Unity.

I got the following errors twice when opening Unity:

[SteamVR] Error during OpenVR Init: Init_InterfaceNotFound
UnityEngine.Debug:LogError(Object)
Valve.VR.SteamVR:InitializeTemporarySession(Boolean) (at Assets/SteamVR/Scripts/SteamVR.cs:320)
Valve.VR.RenderModelInterfaceHolder:get_instance() (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:90)
Valve.VR.SteamVR_RenderModel:SetModel(String) (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:303)
Valve.VR.SteamVR_RenderModel:Update() (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:721)

and

[SteamVR] Failed to load IVRRenderModels interface version IVRRenderModels_006
UnityEngine.Debug:LogError(Object)
Valve.VR.RenderModelInterfaceHolder:get_instance() (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:95)
Valve.VR.SteamVR_RenderModel:SetModel(String) (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:303)
Valve.VR.SteamVR_RenderModel:Update() (at Assets/SteamVR/Scripts/SteamVR_RenderModel.cs:721)

And then when I click Open Binding UI I get:

[SteamVR] Error during OpenVR Init: Init_InterfaceNotFound
UnityEngine.Debug:LogError(Object)
Valve.VR.SteamVR:InitializeTemporarySession(Boolean) (at Assets/SteamVR/Scripts/SteamVR.cs:320)
Valve.VR.SteamVR:ShowBindingsForEditor() (at Assets/SteamVR/Scripts/SteamVR.cs:354)
Valve.VR.SteamVR_Input_EditorWindow:OpenControllerBindings() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522)
Valve.VR.SteamVR_Input_EditorWindow:DrawSave() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507)
Valve.VR.SteamVR_Input_EditorWindow:OnGUI() (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

and

NullReferenceException: Object reference not set to an instance of an object
Valve.VR.SteamVR.ShowBindingsForEditor () (at Assets/SteamVR/Scripts/SteamVR.cs:357)
Valve.VR.SteamVR_Input_EditorWindow.OpenControllerBindings () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:522)
Valve.VR.SteamVR_Input_EditorWindow.DrawSave () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:507)
Valve.VR.SteamVR_Input_EditorWindow.OnGUI () (at Assets/SteamVR/Input/Editor/SteamVR_Input_EditorWindow.cs:454)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:359)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:353)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:329)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect, System.Boolean floatingWindow, System.Boolean isBottomTab) (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:374)
UnityEditor.DockArea.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:341)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:298)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:483)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:466)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:447)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/Events/MouseCaptureDispatchingStrategy.cs:93)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:280)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:156)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:190)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:255)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:78)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

I hope someone can help me, because apparently just switching on the Vive is not the solution.

Thanks!

1reaction
blackpandastudioscommented, Feb 6, 2019

Ohh that is interesting.

I couldn’t have a headset connected because I was on the train into work that’s all.

I’ll look into manually editing the .json files as an alternative. I was just misinterpreting the binding UI I think, but I do now get the reasoning behind it all.

Thanks for the support and helping me understand that clearer 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Button UI Not Working with The new Input system
When the game plays starting at a main menu all buttons work just fine ... Was confronted with the issue that my UI...
Read more >
Overview | SteamVR Unity Plugin
Once we've created our new action we now need to bind it to a button for testing. So after it's done generating click...
Read more >
A Complete Guide to the SteamVR 2.0 Input System in Unity
Step 4: Click on Save and Generate, then click on Open Binding UI. Now we get to tell SteamVR, which button should be...
Read more >
Material UI modal not working (React JS)
Try binding this when rendering the button: <Button onClick={this.handleOpen.bind(this)}>Open Modal</Button>. And likewise, for modal, ...
Read more >
XAML data binding diagnostics - Visual Studio (Windows)
To open it, go to Debug > Windows > XAML Binding Failures. ... When there are no binding failures in the tool window,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found