OpenKinect-for-Processing icon indicating copy to clipboard operation
OpenKinect-for-Processing copied to clipboard

1473 fails *every other* time

Open shiffman opened this issue 9 years ago • 6 comments

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/.

shiffman avatar Oct 30 '15 22:10 shiffman

I'll give it a look, strange behavior. I don't think I have a 1473 model, I can try to access one.

ThomasLengeling avatar Nov 02 '15 02:11 ThomasLengeling

I wonder if its relative to this issue #39

ThomasLengeling avatar Nov 02 '15 02:11 ThomasLengeling

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?

savvasio avatar Dec 13 '15 18:12 savvasio

I have the same issue...

AndreasRef avatar Mar 01 '16 13:03 AndreasRef

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.

NickCrews avatar Mar 02 '16 01:03 NickCrews

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.

smokhov avatar Mar 08 '16 04:03 smokhov