-
Notifications
You must be signed in to change notification settings - Fork 200
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
Deskew method errors out when running in docker(linux) #563
Comments
The error is generic, and occurs when the decoder delegate is unable to read the image. Usually occurs when there's not enough resources to continue operations. Looking at your code, you maybe able to reduce the memory usage. Try removing everything but |
Thanks @emcconville . Also I have edited the policy.xml file which has improved. |
@emcconville Am still facing the issue after increasing the values in policy.xml. I have changed my code, removed this part of code from the above after the try block I have a code to save the image which was converted to bytes. |
Look into queue-based task solution. AWS's SQS/lambda or Celery, but there are hundreds of other distributed messaging systems.
That's probably the issue. With a queued system, you can just add more workers, or flag/reject tasks that fail. |
I am ending up with an error when I use the below code when its run in docker.
Error Message:
wand.exceptions.WandRuntimeError: MagickReadImage returns false, but did not raise ImageMagick exception. This can occur when a delegate is missing, or returns EXIT_SUCCESS without generating a raster.
When I run this in local windows, I don't see any error, but failed in docker(linux). It keeps working for few images and fails for few. Please advice.
The text was updated successfully, but these errors were encountered: