-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cannot enlarge memory arrays error after trying to run recognize on a second image #100
Comments
@davidworkman9, hi had you got any solution. |
@ashokkumarjuly unfortunately no, I never found a way around this. |
Hello @ashokkumarjuly I am getting the same error for files that are too large. My main issue is this error doesn't get caught in the catch function. Should this be a separate issue? @davidworkman9 do you mind sharing your work around? |
@rmadisonhaynie sorry if I wasn't clear, I never found a workaround for this. It was only for a pet project that I haven't worked on since I ran into this. |
I ran into the same issue and found two ways around it.
|
@ryanfb could you be more specific how to compile with '-s ALLOW_MEMORY_GROWTH=1' ? |
@yurymuski: I added |
ALLOW_MEMORY_GROWTH=1 is now added to the CMakeLists.txt (https://github.com/jeromewu/tesseract/blob/4.1.0-tesseract.js/CMakeLists.txt#L468), hope it helps. |
This works great the first time a user uploads an image, but the second time on the same session, the following error is thrown:
Even if I pick the same image twice in a row I get this error.
The text was updated successfully, but these errors were encountered: