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
Error on iOS 17 for Legacy Model (OEM 0) #867
Comments
It looks like the core issue is essentially where we left off the discussion for #804. The LSTM model ( While I sympathize with the fact that this is annoying, unfortunately there is not much I can personally do. There does not appear to be anything objectively wrong with the Tesseract.js code, seeing as it runs on every platform including iOS prior to iOS v17. Apple requires you to own a new(ish) iPhone and Mac to debug iOS browsers, and I own neither, so I cannot investigate iOS 17-specific behaviors. Somebody else would have to investigate this. |
@rin-st Using various devices from Browserstack, I attempted to replicate this error using the Legacy demo site from #804 (seen here) and while I was able to do so for Fails:
Succeeds:
This would seem to indicate that Apple fixed the problem, however that conclusion is contradicted by your bug report. Therefore, can you (1) check whether or not you get an error recognizing a simple image using the site linked below and (2) confirm that you are definitely using iOS |
@Balearica Thank you for quick response!
Sorry for confusing. I rechecked version of my device and it was 17.1.2 🤦 . I updated it to 17.2 and problem disappeared. So to sum up. It doesn't work with Thank you! |
Great, that explains the difference. Thanks for following up.
Yes, it sounds like there was a bug introduced by Apple in iOS |
Issue is mostly copypaste of #804 but with newer versions and slightly different error message
Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
5.0.4
Describe the bug
On iOS 17's Safari/WebKit, when
is called, the following runtime error will occur:
Error: RuntimeError: call_indirect to a null table entry (evaluating '(Tf=b._emscripten_bind_TessBaseAPI_Recognize_1= b.asm.Dd).apply(null,arguments)')
No errors on MacOS, Android and iOS 16
To Reproduce
Steps to reproduce the behavior:
Set up Tesseract on a Nextjs project
Visit Next website on an iOS device running iOS 17.2.1
Upload image
See error
Input image:
My passport photo (Iphone 14 pro) with Machine readable zone (MRZ). Tried ~10+ different photos. Interested in recognizing MRZ.
Expected behavior
Tesseract will recognize the text in the image and output successfully.
Device Version:
Other OEM versions doesn't cause an error, but recognizing doesn't work as expected
The text was updated successfully, but these errors were encountered: