Get Oculus Identity crashed the game


Our game is developed through UE 4.14.0 github version, and it is a Gear VR project. We are going to get Oculus Identity, but this node in blueprint always crashes our game. We follow the instruction in to use Verify Entitlement to verifies the user is authorized to run the application and this works well. But once we want to Get Oculus Identity, the game always crashes. This is the last problem we need to solve before submitting our game, please help!!!
The log is : LogOutputDevice:Warning: Script Stack: MenuPlayer_BP_C.ExecuteUbergraph_MenuPlayer_BP
MenuPlayer_BP_C.InpTchEvt_K2Node_InputTouchEvent_1[link text][1]

Hello zshj0914,

I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any other blueprints/settings that may be involved with this issue?

Hi Rudy,

So I created a clean project by UE 4.14 Github version, and I drew these nodes in GameInstance Blueprints, and followed the setting up Oculus online platform instruction, and downloaded the app through Oculus Store. The result was, good, the project did not crash, Verify Entitlement works well, and it prints log “Login Oculus Successfully” but I could not still get Oculus Identity, there was no log to show “My oculus ID and name” or “Fail to get Oculus Identity”, here is the screen shot and log file. Also I wonder the correct way to use Get Oculus Identity this function. Do I need write some code in Build.cs file? The instruction in just very simple, and can’t help at all.

Thank you very much!

[link text][2]

After doing running more tests I have written up a report for the “Get Oculus Identity” node not working as expected. I have provided a link to the public tracker. Please feel free to use the link provided for future updates. Thank you for your time and information.

Link: Unreal Engine Issues and Bug Tracker (UE-40034)

Make it a great day

is it going to be fixed some time? seems half year has passed…


Here are some steps that one must complete for oculus identity to work:

In addition to enabling the plugin, you must also:

  1. Set the Oculus online subsystem as
    your game’s active online subsystem
  2. Mark the Oculus online subsystem as
    “enabled” in the config
  3. Provide a valid Oculus AppID in the

Once all of those are enabled, the identity information should be available. You should be able to see if the Oculus OSS has successfully been initialized in the logs of your application when you boot.

Hello Jeffrey,

I do all these things above, but I got such error

LogOnline:Error: Oculus: Failed to initialize the Oculus Platform SDK! Error code: -1
LogOnline:Warning: Oculus: Oculus API failed to initialize!
LogOnline:Warning: Oculus: Oculus platform service not available. Skipping entitlement check.
LogBlueprintUserMessages: [BP_GearVRHud_C_0] Login Oculus Failed

I think the -1 error code mean ovrPlatformInitialize_Uninitialized, but what is exactly it means?

That is an oculus api function. It is failing to initialize the oculus service. All I see in oculus documentation is sample code like this:

if (ovr_PlatformInitializeWindows(appID) != ovrPlatformInitialize_Success)
 // Exit. Initialization failed which means either the oculus service isn’t on the
 machine or they’ve hacked their DLL

I don’t see a specific enumeration of returns from that function other than ovrPlatformInitialize_Success(aka 0), so perhaps it always returns either 0 or -1 with no other info as to why it failed.

Maybe the phone doesn’t have the oculus api installed?