Skip to main content
Participant
March 22, 2018

Virtual Reality SDK Oculus failed to initialize.

Hello, as you have seen in the title I'm having problems to Initialize the Oculus Rift SDK in Unity. I'm working in an app for samsung Gear VR.
the versions I'm using are these:
  • Unity 2017.3.1f1 
  • ovr_unity_utilities_1.24.0
  • OVRPlatformSDK_v1.24.0
  • ovr_avatar_sdk_1.24.0
I'm following the instructions marked in this guide : https://developer.oculus.com/documentation/platform/latest/concepts/pgsg-unity-gsg/

When I put play in my game the following messages appear in my console:
-Virtual Reality SDK Oculus failed to initialize.
Attempting to enable None instead.
-Unity v2017.3.1f1, Oculus Utilities v1.24.0, OVRPlugin v1.24.0, SDK v0.0.0.
UnityEngine.Debug:Log(Object)
OVRManager:Awake() (at Assets/OVR/Scripts/OVRManager.cs:904)



The first one appears as a warning and the second one appears as a message. Also, I've put the 'Gear VR App Id' number in the 'OculusPlatformSettings' and these errors still appearing.

I've made every step from 'Create an App' to 'Configuring Your App for Local Development', but I get stuck in the 'Initialize the SDK and Perform the Entitlement Check' step, basicly that step asked me to create a script for initialize the SDK with my appID but I have no idea how to use it, or if I have to use it.

I created a script like this:

using UnityEngine;
using Oculus.Platform;

public class AppEntitlementCheck: MonoBehaviour {

void Awake ()
{
try
{
Core.AsyncInitialize();
Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);
}
catch(UnityException e)
{
Debug.LogError("Platform failed to initialize due to exception.");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
}

void GetEntitlementCallback (Message msg)
{
if (msg.IsError)
{
Debug.LogError("You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
}
else
{
Debug.Log("You are entitled to use this app.");
}
}
}

Could you explain to me why these error still appearing and if there's a solution?

I'll give thanks to everyone who support me in this topic.

:smile:

This topic has been closed for replies.

44 replies

February 13, 2020
Hi. Possible Solution.
1. oculus website says those three versions of unity is recommended for compatibility:
2017.4 LTS
2018.4 LTS
2019.2

2. add oculus manager instance on the scene is very helpful:
the activate oculus support part 

I cant add links of the documentation pages in my post cause I am new here. 
New Participant
July 14, 2020
Had experienced the same problem, but in my builds:


Unity v2019.3.3f1, Oculus Utilities v1.48.0, OVRPlugin v1.48.0, SDK v0.0.0.


Have played around with the versions of the plugin, re-importing it, and even re-installing Unity. Doesn't seem like an easily reproducable/solvable problem.


In the end, what helped was the update to the 2019.4.1f1 LTS.
September 22, 2020


Had experienced the same problem, but in my builds:


Unity v2019.3.3f1, Oculus Utilities v1.48.0, OVRPlugin v1.48.0, SDK v0.0.0.


Have played around with the versions of the plugin, re-importing it, and even re-installing Unity. Doesn't seem like an easily reproducable/solvable problem.


In the end, what helped was the update to the 2019.4.1f1 LTS.



In case this helps anyone, I was dealing with this [almost] identical error again. Turns out it was only because I had disconnected my Rift and was just trying development using the emulator for one day. Reconnecting my Rift resolved it in this particular case.
Participant
December 11, 2020
I'm having a bizarre error where the XR Plugin fails to initialize ONLY if the program is launched programmatically.  everything runs fine in VR when I click on the icon in Explorer, when launching the program programmatically, I get this:

[Subsystems] Failed to initialize subsystem oculus input [error: 1]

this is in 2020.1.16 and .17 with both stable and preview versions of the Oculus XR Plugin