{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/206","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/206/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/206/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/206","id":68149763,"number":206,"title":"Restarting Device fails","user":{"login":"linknum23","id":628667,"avatar_url":"https://avatars.githubusercontent.com/u/628667?v=3","gravatar_id":"","url":"https://api.github.com/users/linknum23","html_url":"https://github.com/linknum23","followers_url":"https://api.github.com/users/linknum23/followers","following_url":"https://api.github.com/users/linknum23/following{/other_user}","gists_url":"https://api.github.com/users/linknum23/gists{/gist_id}","starred_url":"https://api.github.com/users/linknum23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linknum23/subscriptions","organizations_url":"https://api.github.com/users/linknum23/orgs","repos_url":"https://api.github.com/users/linknum23/repos","events_url":"https://api.github.com/users/linknum23/events{/privacy}","received_events_url":"https://api.github.com/users/linknum23/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/runtime","name":"runtime","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-13T17:23:32Z","updated_at":"2015-05-20T12:51:34Z","closed_at":null,"body":"While working on reducing the processor load of the iai_kinect2 interface (The plan is to acquire images at a rate of .25 FPS) I noticed that the kinect device fails if it is restarted. If restarted, a near endless stream of messages like this appear:\r\n\r\n*[DepthPacketStreamParser::handleNewData] remaining data should be 8 bytes but is 11231*\r\n*[DepthPacketStreamParser::handleNewData] working buffer full, resetting it!*\r\n\r\nThe maintainer suggested that I post here as it was problem with this library. To reproduce this bug simply insert a start(),stop() pair in the shut down code (Protonect.cpp,main()) as shown below.\r\n\r\n```C\r\ndev->stop();\r\ndev->start();\r\nlibfreenect2::this_thread::sleep_for(libfreenect2::chrono::milliseconds(200));\r\ndev->stop();\r\ndev->close();\r\n```\r\n \r\nHow hard would this be to fix? Is there a simpler way to reduce the load on the processor other than stopping and starting?"},"comment":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/comments/103873402","html_url":"https://github.com/OpenKinect/libfreenect2/issues/206#issuecomment-103873402","issue_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/206","id":103873402,"user":{"login":"linknum23","id":628667,"avatar_url":"https://avatars.githubusercontent.com/u/628667?v=3","gravatar_id":"","url":"https://api.github.com/users/linknum23","html_url":"https://github.com/linknum23","followers_url":"https://api.github.com/users/linknum23/followers","following_url":"https://api.github.com/users/linknum23/following{/other_user}","gists_url":"https://api.github.com/users/linknum23/gists{/gist_id}","starred_url":"https://api.github.com/users/linknum23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linknum23/subscriptions","organizations_url":"https://api.github.com/users/linknum23/orgs","repos_url":"https://api.github.com/users/linknum23/repos","events_url":"https://api.github.com/users/linknum23/events{/privacy}","received_events_url":"https://api.github.com/users/linknum23/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T12:51:34Z","updated_at":"2015-05-20T12:51:34Z","body":"Fantastic. Thanks for figuring it out:)\n\nOn 04:16, Wed, May 20, 2015 Thiemo Wiedemeyer <notifications@github.com>\nwrote:\n\n> I just tested it, if you add command_seq_ = 0; to the end of the stop\n> method, restarting the device works fine. I will create a small pull\n> request for it.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/OpenKinect/libfreenect2/issues/206#issuecomment-103805056>\n> .\n>\n"}}