Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Null ref spam on fresh install of EditorXR

Discussion in 'EditorXR' started by VRARDAJ, Dec 3, 2017.

  1. VRARDAJ

    VRARDAJ

    Joined:
    Jul 25, 2017
    Posts:
    95
    Running Windows 10 w/ an i7-6700K @4GHz & a GTX1080. Just installed Unity 2017.2.0p1, installed the Unity package for EditorXR in a brand new project, installed Oculus Utilities (using Rift w/ Touch), and turned on VR Support in Player Settings. I downloaded everything from the links provided here:

    https://blogs.unity3d.com/2017/11/30/learn-how-googles-poly-works-with-unity-editorxr/

    I followed the setup instructions in the V4 guide. When I turn on EditorXR, everything seems to be fine. Head tracking works with no trouble, but as soon as I pick up my controllers I am bombarded by null ref spam.

    1st error:

    This one fires only once -

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Experimental.EditorVR.Workspaces.FilterUI.set_filterList (System.Collections.Generic.List`1 value) (at Assets/EditorVR/Workspaces/Common/Scripts/FilterUI.cs:108)

    2nd error:

    This one throws hundreds of times per second, causing lag in headset -

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Experimental.EditorVR.Workspaces.HierarchyListViewController.UpdateItems () (at Assets/EditorVR/Workspaces/HierarchyWorkspace/Scripts/HierarchyListViewController.cs:127)
    ListView.ListViewControllerBase.UpdateView () (at Assets/EditorVR/Scripts/ListView/ListViewControllerBase.cs:108)

    These null refs prevent most touch controller UI from displaying, so my menus appear to be mostly empty.
    editorxr_error.PNG

    How are there null refs in a fresh install of both the engine and the package in a brand new project? Was this package tested before export? It looks like someone must have committed a mistake just before exporting it. Has anyone dealt with/resolved this? What am I missing?
     
  2. VRARDAJ

    VRARDAJ

    Joined:
    Jul 25, 2017
    Posts:
    95
    Think I figured it out. I figured the Text Mesh Pro install was optional. I was wrong. On reboot, EditorXR threw a warning that said it's required. I installed it, and all is well now.