{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/598","repository_url":"https://api.github.com/repos/OpenKinect/libfreenect2","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/598/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/598/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/598/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/598","id":137052738,"number":598,"title":"Protonect ignores ^C","user":{"login":"hanyazou","id":493387,"avatar_url":"https://avatars.githubusercontent.com/u/493387?v=3","gravatar_id":"","url":"https://api.github.com/users/hanyazou","html_url":"https://github.com/hanyazou","followers_url":"https://api.github.com/users/hanyazou/followers","following_url":"https://api.github.com/users/hanyazou/following{/other_user}","gists_url":"https://api.github.com/users/hanyazou/gists{/gist_id}","starred_url":"https://api.github.com/users/hanyazou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanyazou/subscriptions","organizations_url":"https://api.github.com/users/hanyazou/orgs","repos_url":"https://api.github.com/users/hanyazou/repos","events_url":"https://api.github.com/users/hanyazou/events{/privacy}","received_events_url":"https://api.github.com/users/hanyazou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-28T13:21:34Z","updated_at":"2016-03-08T13:20:08Z","closed_at":null,"body":"Overview Description:\r\nThe Protonect does not show the window nor images and ignore ^C and ESC key though kill command and ^\\ can stop the Protonect.\r\n\r\n<!-- Check https://github.com/OpenKinect/libfreenect2/wiki/Troubleshooting if you haven't done so. -->\r\n\r\nVersion, Platform, and Hardware Bug Found:\r\n\r\n1. `git log -1 --oneline`\r\n>    9c80ccd usb: Issue reboot command on Mac OS X\r\n\r\n2. `uname -a`\r\n>    Darwin iMac.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64\r\n\r\n3. `lsusb -t`\r\n>  Bus 000.Dev 001: USB 2.0 Bus,\r\n  Bus 000.Dev 001: USB 2.0 Bus,\r\n  Bus 000.Dev 001: USB 3.0 Bus,\r\n    |__ Bus 020.Dev 018: NuiSensor Adaptor, 480M\r\n    |__ Bus 020.Dev 026: iPad, 480M\r\n    |__ Bus 020.Dev 019: NuiSensor Adaptor, 5G\r\n        |__ Bus 020.Dev 003: Xbox NUI Sensor, 5G\r\n    |__ Bus 026.Dev 001: Hub, 480M\r\n        |__ Bus 026.Dev 002: FaceTime HD Camera (Built-in), 480M\r\n    |__ Bus 029.Dev 001: Hub, 480M\r\n        |__ Bus 029.Dev 002: Hub, 480M\r\n            |__ Bus 029.Dev 003: BRCM20702 Hub, 12M\r\n                |__ Bus 029.Dev 006: Bluetooth USB Host Controller, 12M\r\n\r\n4. `lspci -nn`\r\n>  lspci: command not found\r\n\r\nSteps to Reproduce:\r\n\r\n1. execute ./bin/Protonect\r\n2. hit control + C key\r\n3. repeat 1. and 2.\r\n\r\nActual Results:\r\nProtonect does not show the window nor any images and ignores ^C\r\n\r\nExpected Results:\r\nshow the window and image and stop when I hit ^C\r\n\r\nReproducibility:\r\n1/100~1/1000\r\n\r\nAdditional Information:\r\nThe Protonect seems not to receive any frames at all though no error messages were displayed. So listener.waitForNewFrame(frames); in the main loop won't return and the variable protonect_shutdown could not take effect.\r\n\r\nIt might be better to use  SyncMultiFrameListener::waitForNewFrame(FrameMap &frame, int milliseconds) instead. But that is not implemented on Mac OS X (and Windows?). It seems that we should add wait(_mutexT &aMutex, const libfreenect2::chrono::duration& rel_time) in tinythread.h at first.\r\n\r\nAny comments?"},"comment":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/comments/193782482","html_url":"https://github.com/OpenKinect/libfreenect2/issues/598#issuecomment-193782482","issue_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/598","id":193782482,"user":{"login":"hanyazou","id":493387,"avatar_url":"https://avatars.githubusercontent.com/u/493387?v=3","gravatar_id":"","url":"https://api.github.com/users/hanyazou","html_url":"https://github.com/hanyazou","followers_url":"https://api.github.com/users/hanyazou/followers","following_url":"https://api.github.com/users/hanyazou/following{/other_user}","gists_url":"https://api.github.com/users/hanyazou/gists{/gist_id}","starred_url":"https://api.github.com/users/hanyazou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanyazou/subscriptions","organizations_url":"https://api.github.com/users/hanyazou/orgs","repos_url":"https://api.github.com/users/hanyazou/repos","events_url":"https://api.github.com/users/hanyazou/events{/privacy}","received_events_url":"https://api.github.com/users/hanyazou/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T13:20:07Z","updated_at":"2016-03-08T13:20:07Z","body":"Okey. Before implementing wait_for, I'd like to add more std::chrono mimic in src/tinythread. Current implementation of chrono in tinythread.h is minimal. I think we can borrow some lines from existing implementation if its license allows.\r\n\r\nFor example, http://llvm.org/svn/llvm-project/libcxx/trunk/include/chrono is provided under MIT and BSD like license. Can we copy some part of that into libfreenect2's src/tinythread/chrono? Is MIT license compatible and acceptable to the project?\r\n\r\nAnd could you tell me what is the goal of supporting old standard, C++03? Is there any concrete target which does not support modern compiler? I can propose better idea if I understood the purpose. "}}