{"action":"created","issue":{"url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/162","labels_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/162/comments","events_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/162/events","html_url":"https://github.com/gali8/Tesseract-OCR-iOS/issues/162","id":66174087,"number":162,"title":"G8Tesseract.mm:pixForImage EXC_BAD_ACCESS ","user":{"login":"hydex86","id":1034490,"avatar_url":"https://avatars.githubusercontent.com/u/1034490?v=3","gravatar_id":"","url":"https://api.github.com/users/hydex86","html_url":"https://github.com/hydex86","followers_url":"https://api.github.com/users/hydex86/followers","following_url":"https://api.github.com/users/hydex86/following{/other_user}","gists_url":"https://api.github.com/users/hydex86/gists{/gist_id}","starred_url":"https://api.github.com/users/hydex86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydex86/subscriptions","organizations_url":"https://api.github.com/users/hydex86/orgs","repos_url":"https://api.github.com/users/hydex86/repos","events_url":"https://api.github.com/users/hydex86/events{/privacy}","received_events_url":"https://api.github.com/users/hydex86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-03T15:57:57Z","updated_at":"2015-04-08T22:36:20Z","closed_at":"2015-04-08T16:07:04Z","body":"I am trying to capture images with this framework and an iPhone 6 running iOS 8.2. When I try to scan the original image captured from UIImagePickerController:\r\n\r\n```\r\n- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {\r\n    chosenImage = info[UIImagePickerControllerOriginalImage];\r\n    [picker dismissViewControllerAnimated:YES completion:NULL];\r\n    [self recognizeImageWithTesseract:chosenImage];\r\n}\r\n```\r\n\r\nI got an EXC_BAD_ACCESS in line:\r\n\r\n```\r\ndata[x] = (pixels[x * 4] << 24) | (pixels[x * 4 + 1] << 16) |\r\n                        (pixels[x * 4 + 2] << 8) | pixels[x * 4 + 3];\r\n```\r\n\r\nOn this class:\r\n\r\n```\r\nG8Tesseract:pixForImage {\r\n...\r\ncase 32:\r\n            // Maintain byte order consistency across different endianness.\r\n            for (int y = 0; y < height; ++y, pixels += bytesPerRow, data += wpl) {\r\n                for (int x = 0; x < width; ++x) {\r\n                    data[x] = (pixels[x * 4] << 24) | (pixels[x * 4 + 1] << 16) |\r\n                        (pixels[x * 4 + 2] << 8) | pixels[x * 4 + 3];\r\n                }\r\n            }\r\n            break;\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/comments/91056344","html_url":"https://github.com/gali8/Tesseract-OCR-iOS/issues/162#issuecomment-91056344","issue_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/162","id":91056344,"user":{"login":"hydex86","id":1034490,"avatar_url":"https://avatars.githubusercontent.com/u/1034490?v=3","gravatar_id":"","url":"https://api.github.com/users/hydex86","html_url":"https://github.com/hydex86","followers_url":"https://api.github.com/users/hydex86/followers","following_url":"https://api.github.com/users/hydex86/following{/other_user}","gists_url":"https://api.github.com/users/hydex86/gists{/gist_id}","starred_url":"https://api.github.com/users/hydex86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydex86/subscriptions","organizations_url":"https://api.github.com/users/hydex86/orgs","repos_url":"https://api.github.com/users/hydex86/repos","events_url":"https://api.github.com/users/hydex86/events{/privacy}","received_events_url":"https://api.github.com/users/hydex86/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T22:36:20Z","updated_at":"2015-04-08T22:36:20Z","body":"@kevincon I updated to latest version and everything works fine. Thank you very much!"}}