Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on example #1

Open
bastida117 opened this issue Aug 17, 2017 · 5 comments
Open

Crash on example #1

bastida117 opened this issue Aug 17, 2017 · 5 comments

Comments

@bastida117
Copy link

I've been trying to run the example but every time I get, crash in

G8Tesseract.mm
returnCode = _tesseract->Recognize(_monitor);

And log shows 6 times this same error, then the crash is reproduced

DocumentsOCR_Example[2295:586588] [Camera] Failed to capture still image with request <CAMMutableStillImageCaptureRequest burstIdentifier:(null) irisIdentifier(null)> (Error Domain=CAMCaptureControllerErrorDomain Code=-22100 "(null)")

@mmbabaev
Copy link
Contributor

Looks like that it is ios 10.3 / swift version / Xcode version bug.
A root of the problem lies in this log:

libMobileGestalt MobileGestaltSupport.m:153: pid 300 (DocumentsOCR_Example) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2017-08-18 01:07:51.671360+0300 DocumentsOCR_Example[300:14960] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see rdar://problem/11744455)

If I find solution, I'll notify u here

@kutakmir
Copy link

Same issue on iOS 11.1, Xcode 9.1. @mmbabaev great library though!

@corocraft
Copy link

Hello, I have same issue on iOS 11.1, Xcode 9.1.

@pnevesi9
Copy link

hello, i am having the same issue in ios 11.1 xcode 9.1. does it still work if i manage to implement in my own project?

@BAOYANGZHOU
Copy link

BAOYANGZHOU commented May 16, 2018

using [self.tesseract recognize] in a dispatch_get_global_queue() which in a block meet the issue, i fix this issue by invoking dispatch_get_main_queue() first, and then invoke dispatch_get_global_queue(). here is my code, hope this can help you :

dispatch_async(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH,0), ^{
self.tesseract.image = [image g8_blackAndWhite];
[self.tesseract recognize];
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants