Forum Discussion

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

Cant run latest SDK

Hi!
I cant run latest SDK, I get

Unhandled exception at 0x00F37BE1 in SensorBoxTest.exe: 0xC0000005: Access violation reading location 0x00000000.


Any other users having problems?

8 Replies

  • I'm having issues as well, it seems the new circular buffer class in ovr_sensorfilter is throwing access violation errors at run time...any ideas?
  • I'm having problems with it too. The config util won't allow me to complete the calibration for head-tracking and wants me to spin around like a damn gyro-scope, yet it still fails!
  • The crash bug and the calibration problems are two different things. The crash bug was already reported here: viewtopic.php?f=34&t=4655 but the response was 'don't allocate the SensorFusion objects on the stack before running the SDK init command'. I didn't realize it had broken the built in sensor box test though.
  • Actually I just tested the SensorBox sample on my system and it doesn't crash, and reading the way they initialize the SDK, I wouldn't expect it to, so you must be having a different problem. Can you provide a stack trace?
  • I cant run the calibration tool on my virtual dev machine because it wont let me calibrate it since the device ID on the monitor is wrong (The USB part works but there is a cehck in the calibariton tool). If i ran the SensorBox on my real machine it worked. But my real program that is based on the minimal example does not, will have to try your link and see if it helps, thanks
  • mmm, I call init before the FusionResult.AttachToSensor(pSensor);

    int ovr_freepie_init(float dt)
    {
    OVR::System::Init();

    pManager = *DeviceManager::Create();
    pHMD = *pManager->EnumerateDevices<HMDDevice>().CreateDevice();

    if (!pHMD)
    return 1;

    sensorPrediction = dt;
    enableSensorPrediction = sensorPrediction > 0;


    pSensor = *pHMD->GetSensor();

    HMDInfo hmdInfo;
    pHMD->GetDeviceInfo(&hmdInfo);

    if (pSensor)
    FusionResult.AttachToSensor(pSensor);
    if(enableSensorPrediction)
    FusionResult.SetPrediction(sensorPrediction);

    return 0;
    }