Can't run sketch…"Data buffer" issue

edited July 2014 in Kinect

Using MacOSX 10.7.5 below is code and error message:

import SimpleOpenNI.*; SimpleOpenNI context;

void setup(){ size(640*2, 480); context = new SimpleOpenNI(this); if (context.isInit() == false){ println("Can't init SimpleOpenNI, maybe the camera is not connected!"); exit(); return; } context.setMirror(true); context.enableDepth(); context.enableRGB(); }

void draw(){ context.update(); background(200, 0, 0); image(context.depthImage(), 0, 0); image(context.rgbImage(), context.depthWidth() + 10, 0); } Getting

SimpleOpenNI Version 1.96 send_cmd: Data buffer is 322 bytes long, but got 334 bytes freenect_fetch_zero_plane_info: send_cmd read 334 bytes (expected 322) freenect_camera_init(): Failed to fetch zero plane info for device After initialization:

terminate called throwing an exception Could not run the sketch (Target VM failed to initialize). Make sure that you haven't set the maximum available memory too high. For more information, read revisions.txt and Help → Troubleshooting. Stream closed at at at sun.nio.cs.StreamDecoder.readBytes( at sun.nio.cs.StreamDecoder.implRead( at at at at at at at

Sign In or Register to comment.