bogus nonsense error messages when processing big images
Posted: 2011-10-15T13:12:14-07:00
When I try to process huge images, I often get a variety of apparently nonsense error messages.
I guess the problem is just that I don't have enough memory (since identical operations on smaller images succeed), so some memory allocation fails causing subsequent errors. Such errors should be detected and reported correctly. If the problem is insufficient memory, it must say "not enough memory". Otherwise, one is left to wonder what's wrong with the input images.
Additionally, whenever possible, memory availability should be checked _before_ starting a potentially long operation, so as to avoid having the user wait a long time only for a failure, but that's a separate issue that I've already reported.
I guess the problem is just that I don't have enough memory (since identical operations on smaller images succeed), so some memory allocation fails causing subsequent errors. Such errors should be detected and reported correctly. If the problem is insufficient memory, it must say "not enough memory". Otherwise, one is left to wonder what's wrong with the input images.
Additionally, whenever possible, memory availability should be checked _before_ starting a potentially long operation, so as to avoid having the user wait a long time only for a failure, but that's a separate issue that I've already reported.