{"action":"created","issue":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/242","labels_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/242/comments","events_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/242/events","html_url":"https://github.com/ResearchKit/ResearchKit/issues/242","id":83248761,"number":242,"title":"State restoration makes the image capture step to fail","user":{"login":"rsanchezsaez","id":444313,"avatar_url":"https://avatars.githubusercontent.com/u/444313?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanchezsaez","html_url":"https://github.com/rsanchezsaez","followers_url":"https://api.github.com/users/rsanchezsaez/followers","following_url":"https://api.github.com/users/rsanchezsaez/following{/other_user}","gists_url":"https://api.github.com/users/rsanchezsaez/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchezsaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchezsaez/subscriptions","organizations_url":"https://api.github.com/users/rsanchezsaez/orgs","repos_url":"https://api.github.com/users/rsanchezsaez/repos","events_url":"https://api.github.com/users/rsanchezsaez/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchezsaez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jwe-apple","id":11575859,"avatar_url":"https://avatars.githubusercontent.com/u/11575859?v=3","gravatar_id":"","url":"https://api.github.com/users/jwe-apple","html_url":"https://github.com/jwe-apple","followers_url":"https://api.github.com/users/jwe-apple/followers","following_url":"https://api.github.com/users/jwe-apple/following{/other_user}","gists_url":"https://api.github.com/users/jwe-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/jwe-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwe-apple/subscriptions","organizations_url":"https://api.github.com/users/jwe-apple/orgs","repos_url":"https://api.github.com/users/jwe-apple/repos","events_url":"https://api.github.com/users/jwe-apple/events{/privacy}","received_events_url":"https://api.github.com/users/jwe-apple/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/milestones/1","html_url":"https://github.com/ResearchKit/ResearchKit/milestones/1.1","labels_url":"https://api.github.com/repos/ResearchKit/ResearchKit/milestones/1/labels","id":1122512,"number":1,"title":"1.1","description":"","creator":{"login":"jwe-apple","id":11575859,"avatar_url":"https://avatars.githubusercontent.com/u/11575859?v=3","gravatar_id":"","url":"https://api.github.com/users/jwe-apple","html_url":"https://github.com/jwe-apple","followers_url":"https://api.github.com/users/jwe-apple/followers","following_url":"https://api.github.com/users/jwe-apple/following{/other_user}","gists_url":"https://api.github.com/users/jwe-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/jwe-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwe-apple/subscriptions","organizations_url":"https://api.github.com/users/jwe-apple/orgs","repos_url":"https://api.github.com/users/jwe-apple/repos","events_url":"https://api.github.com/users/jwe-apple/events{/privacy}","received_events_url":"https://api.github.com/users/jwe-apple/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":37,"state":"open","created_at":"2015-05-21T04:05:03Z","updated_at":"2015-06-03T07:15:10Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-06-01T01:05:52Z","updated_at":"2015-06-03T10:20:59Z","closed_at":"2015-06-02T19:26:29Z","body":"Restoring the app to an image capture step makes the view controller unstable.\r\n\r\n*Steps to reproduce*\r\n1. Launch `ORKTest` from Xcode.\r\n2. Open the *Image Capture* task.\r\n3. Go to step 4 (image capture step).\r\n4. Send the app to background and hit stop on Xcode so the state is stored.\r\n5. Launch `ORKTest` again, it should restore to the image capture step.\r\n6. Try capturing an image.\r\n\r\nIf you try to capture an image after state restoration, a zoomed portion of the image is shown on screen and a *\"The captured image could not be saved\"* error is shown.\r\n\r\nIf you then tap \"*Recapture image*\", the layout of the hand template breaks and the error message is not dismissed. If you press \"Capture\", it goes to the next step instead of capturing a new image. Capture also fails when you reach *step 7* (additional image capture step).\r\n\r\nEnding the task and restarting it fixes it."},"comment":{"url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/comments/108289004","html_url":"https://github.com/ResearchKit/ResearchKit/issues/242#issuecomment-108289004","issue_url":"https://api.github.com/repos/ResearchKit/ResearchKit/issues/242","id":108289004,"user":{"login":"rsanchezsaez","id":444313,"avatar_url":"https://avatars.githubusercontent.com/u/444313?v=3","gravatar_id":"","url":"https://api.github.com/users/rsanchezsaez","html_url":"https://github.com/rsanchezsaez","followers_url":"https://api.github.com/users/rsanchezsaez/followers","following_url":"https://api.github.com/users/rsanchezsaez/following{/other_user}","gists_url":"https://api.github.com/users/rsanchezsaez/gists{/gist_id}","starred_url":"https://api.github.com/users/rsanchezsaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsanchezsaez/subscriptions","organizations_url":"https://api.github.com/users/rsanchezsaez/orgs","repos_url":"https://api.github.com/users/rsanchezsaez/repos","events_url":"https://api.github.com/users/rsanchezsaez/events{/privacy}","received_events_url":"https://api.github.com/users/rsanchezsaez/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T10:20:59Z","updated_at":"2015-06-03T10:20:59Z","body":"Actually, I missed the layout problem during review of [PR #250](https://github.com/ResearchKit/ResearchKit/pull/250). Fixed now in [PR #265](https://github.com/ResearchKit/ResearchKit/pull/265)."}}