Can't run sketch…"Data buffer" issue

jimjim
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. java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:162) at java.io.BufferedInputStream.read(BufferedInputStream.java:325) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177) at java.io.InputStreamReader.read(InputStreamReader.java:184) at java.io.BufferedReader.fill(BufferedReader.java:154) at java.io.BufferedReader.readLine(BufferedReader.java:317) at java.io.BufferedReader.readLine(BufferedReader.java:382) at processing.mode.java.runner.MessageSiphon.run(MessageSiphon.java:58) at java.lang.Thread.run(Thread.java:744)

Tagged:
Sign In or Register to comment.