Skip to main content
Up and Coming
April 1, 2016

UE4 4.10.4 + Oculus 1.3 deadlock (with fix)

I accidentally posted this in the support forum instead of developer, so I'm reposting it here.

I integrated the 1.3 SDK changes from GitHub into our copy of UE4 and QA ran into a deadlock when pulling the HDMI cable.  The issue is that in FOculusRiftHMD::DoEnableStereo it calls FOvrSessionShared::Destroy which suspends the rendering thread then resumes it.  Then, right after that Unreal re-suspends it as part of the SetViewportSize call.  There's a bug in the async loading where it can hang on an event in that case, which was fixed in Epic CL 2772990.  I merged that into our branch and it fixed the issue.
    This topic has been closed for replies.

    2 replies

    Up and Coming
    April 5, 2016
    What was happening when you encountered this? The game simply stop rendering? Or was there a crash of some sort? Or something else? I'm having an issue where the rendering thread seems to be idle in the editor, I'm wondering if this might be related?

    Thanks!
    Up and Coming
    April 6, 2016
    Everything stopped, it looked like it had crashed.  If you force a breakpoint it should be pretty easy to see where things are stuck though.  Just check the async loading thread and the main thread.