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.

SteamVR v2.2b4 input window GUILayoutUtility error

See original GitHub issue

There are errors when generating inputs using the SteamVR Input window:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayoutUtility.LayoutFromContainer (Single w, Single h) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:182)
UnityEngine.Experimental.UIElements.UIElementsUtility.EndContainerGUI () (at C:/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:164)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:272)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:335)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoRepaint (IStylePainter painter) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:69)
UnityEngine.Experimental.UIElements.Panel.PaintSubTree (UnityEngine.Event e, UnityEngine.Experimental.UIElements.VisualElement root, Matrix4x4 offset, Rect currentGlobalClip) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:532)
UnityEngine.Experimental.UIElements.Panel.PaintSubTreeChildren (UnityEngine.Event e, UnityEngine.Experimental.UIElements.VisualElement root, Matrix4x4 offset, Rect textureClip) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:547)
UnityEngine.Experimental.UIElements.Panel.PaintSubTree (UnityEngine.Event e, UnityEngine.Experimental.UIElements.VisualElement root, Matrix4x4 offset, Rect currentGlobalClip) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:536)
UnityEngine.Experimental.UIElements.Panel.Repaint (UnityEngine.Event e) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/Panel.cs:564)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:236)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (Int32 instanceID, IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:78)
UnityEngine.GUIUtility.ProcessEvent (Int32 instanceID, IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:175)

Windows 10 Unity 2017.3.1f1

Repro Steps:

  1. Ceate a new project
  2. Download https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2b4 source zip do not use the unity package as it seems that this unity package is not the correct version
  3. Open the SteamVR input window and click “Save and generate”

Expected Behavior Inputs are generated

Observed Behavior It starts generating inputs and it gets stuck while showing errors in the console.

Note The Unity package in this link https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2b4 Seems to be an incorrect version, it doesnt contain the same files as the zip file

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zitecommented, Jan 16, 2019

Thanks for the reports. I’m updating the beta branch again with my changes so the zip files will correctly reflect the unitypackage that is intended for people to use. The beta 5 release should fix these problems. https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.2

0reactions
zitecommented, Jan 31, 2019

Fixed in current release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SteamVR v2.2b4 NullReferenceException in ...
I have tried to delete Player and re-introduce it and to re-save and generate the bindings and nothing has changed. If clicked, the...
Read more >
Problems with Steam VR-input action manifest
When I open the SteamVR-Input-menu under window>SteamVRInput, it shows multiple in- and outputs of the same type. I tried to delete them ...
Read more >
Media player controls not working - SteamVR
Launch SteamVR Media Player. · Open Task Manager. · (Windows 10) Click More Details · Find the steamvr_media_player.exe entry and expand it ·...
Read more >
Steam VR fatal error every 20-30min : r/WindowsMR
Playing VR chat I seem to be crashing every 20-30min with it saying steamvr fatal error Could there be any setting that I...
Read more >
Unity & Steam VR Startup Errors
1 from the asset store. You have to initialize the VR Input in your Project. Go to Window -> SteamVR Input (you can...
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