Search code examples
processingkinect

How can I solve R6025 pure vital function call error when I run a sketch of Processing for Kinect v1?


I need help with using Kinect v1 with Processing. When I ran Processing, an R6025 pure vital function call error occurred. I attached the images of the error message. Error message1: R6025 pure vital function call alert Error message2: error in console window

This is the detail of my equipment and software. Windows 10 laptop (40GB disk left) Kinect v1 for Windows Processing 4.2 SimpleOpenNI version 1.96 library in Processing

And this is the code which I used.

import SimpleOpenNI.*;
SimpleOpenNI kinect;

void setup() {
 size(640,480);
 kinect = new SimpleOpenNI(this);

 kinect.enableDepth();
 kinect.enableRGB();
}

void draw() {
 kinect.update();
  
 image(kinect.depthImage(),0,0);
 image(kinect.rgbImage(), 640,0);
}

Below are the methods I tried.

  1. Checking Java and graphic driver version
  2. Reinstall Visual C++ and Processing(lower version and last version)
  3. Uninstall antivirus software
  4. Run the system file checker
  5. Perform a Clean Boot
  6. Run as administrator authority
  7. Use other libraries in Processing

Solution

  • Based on your feedback in the comments above it seems to be an issue with OpenNI (when initialising the Kinect Driver).

    It's great news it works with the Kinect for Windows SDK.

    I recommend trying a Processing library that wraps the Kinect for Windows SDK such as Bryan Chung's Kinect4WidowsSDK library (via Contribution Manager): Kinect4WindowsSDK select in a list of 3 kinect related libraries inside the Contribution Manager Window

    (Hopefully the library example just work. This library relies on the Kinect SDK to be preinstalled (the path to Kinect10.dll to be added to the PATH environment variable))