-
Notifications
You must be signed in to change notification settings - Fork 375
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
JVM crash on M1 / MacOS with tess4j #238
Comments
The exception appears to have happened deep down in Tesseract native code. Is your application running in single thread or multi-thread? Have you tried using |
The app is running in multi-thread. I haven't tried Tesseract1 class, but I will and update here. |
After switching to Tesseract1 the application was able to serve around 50 requests, and then crashed the JVM with the following: |
You may want to dispose of and start a new instance after so many OCR operations because of memory leaks in native code. |
A SImple springboot app with tess4j (5.4.0). One controller method to upload the image for OCR
It processes 3 images successfully and crashes on the 4th with the threaddump:
App error:
The text was updated successfully, but these errors were encountered: