{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/psi/issues/16","repository_url":"https://api.github.com/repos/Microsoft/psi","labels_url":"https://api.github.com/repos/Microsoft/psi/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/psi/issues/16/comments","events_url":"https://api.github.com/repos/Microsoft/psi/issues/16/events","html_url":"https://github.com/Microsoft/psi/issues/16","id":378081995,"node_id":"MDU6SXNzdWUzNzgwODE5OTU=","number":16,"title":"Kinect sample crashes due to empty Face list","user":{"login":"admayber","id":44822281,"node_id":"MDQ6VXNlcjQ0ODIyMjgx","avatar_url":"https://avatars2.githubusercontent.com/u/44822281?v=4","gravatar_id":"","url":"https://api.github.com/users/admayber","html_url":"https://github.com/admayber","followers_url":"https://api.github.com/users/admayber/followers","following_url":"https://api.github.com/users/admayber/following{/other_user}","gists_url":"https://api.github.com/users/admayber/gists{/gist_id}","starred_url":"https://api.github.com/users/admayber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admayber/subscriptions","organizations_url":"https://api.github.com/users/admayber/orgs","repos_url":"https://api.github.com/users/admayber/repos","events_url":"https://api.github.com/users/admayber/events{/privacy}","received_events_url":"https://api.github.com/users/admayber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-06T23:44:27Z","updated_at":"2018-11-06T23:44:27Z","closed_at":null,"author_association":"NONE","body":"The Kinect face tracking + speech-to-text sample throws an uncaught exception on the first frame when running. I determined that the error is due to KinectFaceDetector.Faces emitting a list with zero items under a Select operation, in these two lines:\r\n\r\n`var mouthOpenAsFloat = kinectFaceDetector.Faces.Select((List<Microsoft.Psi.Kinect.Face.KinectFace> list) =>`\r\n`var landmarks = kinectFaceDetector.Faces.Select((List<Microsoft.Psi.Kinect.Face.KinectFace> list) =>`\r\n\r\nIn both cases, the code block inside the Select crashes due to an empty list. I correct it by adding list.Count > 0 tests in both blocks; however, I'm not sure if this is the intended operation of the Select operator or if it should not have fired at all.\r\n"}}
{"actor":{"display_login":"admayber"}}