OpenKinect-for-Processing
OpenKinect-for-Processing copied to clipboard
1473 fails *every other* time
For some reason the 1473 doesn't work every other time. I suspect this has something to do with the kinect not shutting down properly. The error message is:
Unable to claim interface -7
Could not claim interface on audio: -99
Failed to open motor subddevice or it is not disabled.
Failed to open audio subdevice or it is not disabled.
There are no kinects, returning null
Amusingly, if you just try again it works. In other words, with the following code, after it fails I click the mouse and it comes to life.
void setup() {
kinect = new Kinect(this);
kinect.initDepth();
}
void mousePressed() {
kinect = new Kinect(this);
kinect.initDepth();
}
@ThomasLengeling did you ever try with a 1473? Do you have one? I've attempted various things to make sure the kinect "shuts down" when the Processing sketch closes but no luck.
I wonder if this is just a 1473 bug and not our library. I don't see anything about this in https://github.com/OpenKinect/libfreenect/.
I'll give it a look, strange behavior. I don't think I have a 1473 model, I can try to access one.
I wonder if its relative to this issue #39
Unfortunately it doesn't work for me. I need to run the sketch twice in order for the Kinect to work. Any other way to properly shut down the depth before exiting the app?
I have the same issue...
This is also happening to me as well, with model 1473. "Unable to claim interface -7 Could not claim interface on audio: -99" errors alternate with the errors "upload_firmware: failed to find firmware file. upload_firmware failed: -2" on every other run, not sure if they're related.
As a data point, I also observed the same behaviour with 1473 on every other time while ago, but never had a chance reporting it, so I guess this is a prevailing reproduceable issue.