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.
bogus nonsense error messages when processing big images
-
- Posts: 17
- Joined: 2011-10-10T09:04:08-07:00
- Authentication code: 8675308
Re: bogus nonsense error messages when processing big images
Again, this is issue with your OS. You can change the memory allocation method of your OS to ensure memory is pre-allocated and ImageMagick will gracefully exit with "unable to allocate memory" otherwise your OS will "kill" the ImageMagick with the "Killed" exception message. The best solution is to force image pixels to disk with "-limit area 0".
-
- Posts: 17
- Joined: 2011-10-10T09:04:08-07:00
- Authentication code: 8675308
Re: bogus nonsense error messages when processing big images
No, I'm not talking about the "killed" error message here. I get strange error messages that are clearly generated by ImageMagick, not the OS.
Even if the failure to allocate is due to the OS, ImageMagick should output a meaningful error message.
Even if the failure to allocate is due to the OS, ImageMagick should output a meaningful error message.
-
- Posts: 17
- Joined: 2011-10-10T09:04:08-07:00
- Authentication code: 8675308
Re: bogus nonsense error messages when processing big images
I mean, regarding the first part of my original post (the bogus error messages).
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: bogus nonsense error messages when processing big images
Perhaps you should report what sort of 'bogus' messages you are referring to!
I know of no such messages that IM would generate, unless some -debug or -monitor operational control is enabled!
I know of no such messages that IM would generate, unless some -debug or -monitor operational control is enabled!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/