JAI memory usage

Posted on Friday 3 August 2007

I’m using Sun’s Java Advanced Imaging libraries for image manipulation on a personal project, as I’ve mentioned before.

Things were working swimmingly, but when I started testing with images from my phone’s camera the following exception started appearing:

Error: One factory fails for the operation “jpeg”
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException

[...]

The problem was not how the image had been created, as I originally suspected, but actually the image size - this seems to be a rather obscure way of telling you I’m out of heap space!. Increase the heap space or try with smaller images, and it should work just fine.


No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI