Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
lorond's avatar
lorond
Honored Guest
10 years ago

ovrHmd_CreateDebug does not create virtual device

Why would ovrHmd_CreateDebug(ovrHmd_DK2, &HDM) failing with 0xfffff445 return value (called right after ovr_Initialize, which in turn returned ovrSuccess)? I'm unable to run any sample from SDK 0.6.0.0.
Runtime 0.6.0.0. is installed, Oculus Runtime service is running. GPU is 980 gtx, which is definitely support DX11. Driver version is 350.12.

4 Replies

  • lorond's avatar
    lorond
    Honored Guest
    I just started OVRServer_xxx.exe (both x86 and x64 are fine) manually from C:\Program Files (x86)\Oculus\Service. ovrHmd_CreateDebug work fine. Why oculus service does not start ovrserver?
  • So I take it you don't actually have any headsets and are just testing the SDK?
  • lorond's avatar
    lorond
    Honored Guest
    "cybereality" wrote:
    So I take it you don't actually have any headsets and are just testing the SDK?

    I'll get DK2 headset in a month or two (there are several problems getting dk to another side of the planet), so right now I can only work with virtual device. In previous version, 0.5.*, there was no problems. In 0.6 version OVRServer just not starting, though OVRServiceLauncher is running as service. So both ovrHmd_Create and ovrHmd_CreateDebug returns 0xfffff445. With manually started OVRServer ovrHmd_Create returns 0xfffffc11 (different error) and ovrHmd_CreateDebug works fine.

    By the way, there is an minor but annoying bug in samples since 0.6.0.0 version (Win32_BasicVR.h):

    result = ovrHmd_Create(0, &HMD);
    if (result != ovrSuccess) ovrHmd_CreateDebug(ovrHmd_DK2, &HMD); // Use debug one, if no genuine Rift available
    VALIDATE(result == ovrSuccess, "Oculus Rift not detected.");


    This code always failing without physical device connected - call to ovrHmd_CreateDebug is useless. Assigning result is missing.

    Same for calling ovrHmd_ConfigureTracking several lines below - virtual device does not support tracking and sample will exit with error "Failed to configure tracking".