Skip to main content
This topic has been closed for replies.

28 replies

Inspiring
October 27, 2015
What's new/fixed will be coming in the next Utilities ?
Up and Coming
March 15, 2016
"czesak" wrote:

NullReferenceException: Object reference not set to an instance of an object
OVRCameraRig.UpdateAnchors () (at Assets/OVR/Scripts/OVRCameraRig.cs:135)
OVRCameraRig.Update () (at Assets/OVR/Scripts/OVRCameraRig.cs:109)


I'm occasionally seeing a similar message with 1.3.0; anyone else having that problem?
Inspiring
March 15, 2016
OVRCameraRig.cs:135 has this:
OVRPose tracker = OVRManager.tracker.GetPose(0d);
It would only fail if OVRManager.tracker wasn't assigned in OVRManager.Awake(). Do you have an active OVRManager in the scene? If you are using multiple OVRCameraRigs, make sure to put the OVRManager on a separate, stand-alone GameObject in the scene, because the ones on the OVRCameraRig prefabs will conflict. This is a known issue we will fix in a future release.
Participant
March 25, 2016
I've been following the instructions here...

https://developer.oculus.com/documentation/game-engines/latest/concepts/book-unity/

I'm getting the same error  at OVRPose tracker = OVRManager.tracker.GetPose(0d);

I'm using Unity 5.3.4.f1 on a Mac running El Capitan, and Oculus Utilities 012 Beta.   I am trying to build for the Samsung Gear VR.

I imported only the Unity Oculus Utilities into my Unity project and turned on Virtual Reality Supported in the Player settings.  Looking at the last error it seems there is something missing from the Unity 5.3.4.f1 install to support the OVRPlugin.

I have not installed any runtimes or anything else other than the Utilities listed above.  

The main error:

"
NullReferenceException: Object reference not set to an instance of an object
OVRCameraRig.UpdateAnchors () (at Assets/OVR/Scripts/OVRCameraRig.cs:135)
OVRCameraRig.Update () (at Assets/OVR/Scripts/OVRCameraRig.cs:109)


If I make a simple scene by placing a plane on the floor and dropping in a OVRPlayerController only, I am able to move around but the console is spammed with that error.


Also it starts with this error.
"Couldn't open /Applications/Unity/Unity.app/Contents/VR/oculus/macosx64/OVRPlugin.bundle/Contents/MacOS/OVRPlugin, error: dlopen(/Applications/Unity/Unity.app/Contents/VR/oculus/macosx64/OVRPlugin.bundle/Contents/MacOS/OVRPlugin, 2): Library not loaded: @rpath/LibOVRRT_0.framework/Versions/5/LibOVRRT_0
  Referenced from: /Applications/Unity/Unity.app/Contents/VR/oculus/macosx64/OVRPlugin.bundle/Contents/MacOS/OVRPlugin
  Reason: image not found"
Participant
March 25, 2016
Fixed it - didn't have the runtime - thought the computer could read my mind :D  Must install runtime to use the Oculus Utilities.  https://developer.oculus.com/downloads/pc/0.5.0.1-beta/Oculus_Runtime_for_OS_X/
Inspiring
March 25, 2016
@DrewFX Thanks for following up with the solution.
AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
Participant
March 26, 2016
I'm making a tutorial on this (video) so will post when done.  Guess I should show the PC solution too when I get that working.
Participant
November 25, 2017
Hi everyone. I know I'm late to this thread but I'm still seeing this error on Unity v2017.2.0f3, Oculus Utilities v1.20.0, OVRPlugin v0.0.0, SDK v0.0.0 using Macbook with High Sierra. It continually spams the console when running the demo scene. Is anyone else still having same issue? Or have I missed a step somewhere....