VR (Oculus Rift) Crash on UE 4.8.3

Hey there,

Trying to get my application working with the Oculus Rift and I’m getting this crash any time I try to launch. Everything is blueprint based and nothing interacts with the VR system through any blueprint commands as of yet. It looks like I get a single frame through the headset, and then the application crashes.

The crash report I get is as follows:

MachineId:402E9B5A4EB37AA21A86EA9F2638AE6D
EpicAccountId:fe73bc3b609a4d32a10a1105cdcc7e12

Unknown exception - code 00000001 (first/second chance not available)

"Assertion failed: View.ViewRotation == CurrentFrame->CachedViewRotation[eyeIdx] [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Plugins\Runtime\OculusRift\Source\OculusRift\Pr

UE4Editor_Core!FDebug::AssertFailed() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:355]
UE4Editor_OculusRift!OculusRift::FViewExtension::PreRenderView_RenderThread()
UE4Editor_Renderer!RenderViewFamily_RenderThread() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\renderer\private\scenerendering.cpp:1328]
UE4Editor_Renderer!TGraphTask<`FRendererModule::BeginRenderingViewFamily'::`17'::EURCMacro_FDrawSceneCommand>::ExecuteTask() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\public\async\taskgraphinterfaces.h:753]
UE4Editor_Core!FTaskThread::ProcessTasks() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:430]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:273]
UE4Editor_RenderCore!RenderingThreadMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\rendercore\private\renderingthread.cpp:284]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\rendercore\private\renderingthread.cpp:385]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:73]

Not too sure how to proceed from here. Is there any extra information I can give?

Thanks!

couple questions, What OS are you using (oculus doesnt work on Windows 10 yet). Does your game crash if you try to play it normally? Have you had any other problems trying to test things on your rift?

Also, idk how new you are to oculus but before you start messing around with all the settings know this: the rift should be running in direct mode, always. I have yet to ever see a reason to extend the desktop, setting that up is a rediculous pain and it never displays correctly in the rift. Make sure your rift is plugged in and on before you open your game (light should be orange). to test it, hit the drop down arrow next to play and do vr preview (though im sure you knew that one already).

Hey there, thanks for replying. I’m running Windows 8.1 with the latest runtime and NVIDIA drivers (on SLI’d GTX670s). Other Rift applications work OK and my game works normally outside of VR mode.

hmmmm. try this, go to windows>plugins, under virtual reality make sure that oculus is checked on. then check off the other vr plugins. Restart, build your project, then see if its working

Hello Knifa,

I have a few questions for you as well that will help narrow down what issue it is that you are experiencing.

  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 blueprints that may be involved?
  4. Could you provide the current oculus runtime that you are using (Example 6.0.1)
  5. Could you make sure that you completely shutdown your computer and restart it after installing the runtime (windows 8 doesn’t always fully shut down when using the restarting)?

Hi Rudy,

Thanks for responding.

  1. The Rift works OK in a clean project.
  2. N / A
  3. I have quite a few blueprints but none of them interact with the Rift in any way. I had some polling for rotations before but I have removed them and still get the same crash. My full project is available here.
  4. I am using version 0.6.0.1 (the latest at time of writing.)
  5. Attempted a full restart to no avail, alas.

Let me know if I can provide anything else that might be helpful.

I’ve discovered the cause. Setting number of players > 1 (i.e, for network testing) and launching in VR preview mode will consistently cause a crash.

Launching in VR Preview mode with numbers of players > 1 will consistently cause a crash on 4.8.3.

The first instance works fine but the other instances will crash right away and take the entire editor with it.

Hello Knifa,

I was able to reproduce this issue on our end. I have written up a report ( UE-20109) and I have submitted to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information

Make it a great day