Git Product home page Git Product logo

Comments (2)

johnbcarpenter avatar johnbcarpenter commented on September 26, 2024

via one of daniel's link on another crashing issue... i think this may be a good solution:
from http://groups.google.com/group/openkinect/browse_frm/thread/df3f3ee312145dff?pli=1

"The best solution that I've found so far (which is hacky and may make those actually familiar with USB driver programming smack their foreheads), is to edit src/usb_libusb10.c in libfreenect to restart isochronous transfers that die. After editing, it should read:

     FN_WARNING("Isochronous transfer error: %d ", xfer->status);
     libusb_submit_transfer(xfer);
     //strm->dead_xfers++;

You'll still get error messages (unless you comment out the warning line, I suppose), and the framerate may be affected, but the streams will at least stop freezing up."

but i'm to sure how to rebuild the openkinect library--can someone help me with this? the basic processing library examples use a build.xml file with ant in eclipse, but i'm having trouble figuring out which files/folders to open in eclipse.

i've managed to rebuild the libKinect.jnilib file (i think) from the xcode project in the wrappers folder, but not sure if just opening the xcode project file and changing the couple lines in usb_libusb10.c and hitting build is the correct way to do it... i'm also not sure where to start on recreating the openkinect.jar file. thanks

from libfreenect.

johnbcarpenter avatar johnbcarpenter commented on September 26, 2024

ok, pretty sure you can just rebuild the libKinect.jnilib using the xcode project, but i don't think that was my issue... think my issue was a memory leak in the kinect.getRawDepth() call... you can see it in the point cloud example. if someone runs into this issue trying to do an 8 hour + install prior to this bug being fixed, i set up a system that has processing quit the app every four hours (using a conditional statement testing the hour / minute / second and then restarting the app with cron. i.e processing app quits at 3:59:58 and cron opens it up again at 4:00:00. will submit a bug about the memory leak.

from libfreenect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.