Skip to main content

Java Exception "Image Fetcher" java.lang.OutOfMemoryError

1 reply [Last post]
terymas
Offline
Joined: 2007-09-03
Points: 0

Hi all, I try to load image with MediaTracker and Toolkit.getDefaultToolkit.getImage...
I created several project with smale .png without issues.

I now, I try to load several png 1920x1080 and I have this issue : (
My BD play on Power DVD but not on PS3 I can't see my images.

I though in BD-J that we can load 45MB ? and my images made 1MB, I don't understand...

Tery

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
markkurvers
Offline
Joined: 2008-07-04
Points: 0

> Hi all, I try to load image with MediaTracker and
> Toolkit.getDefaultToolkit.getImage...
> I created several project with smale .png without
> issues.
>
> I now, I try to load several png 1920x1080 and I have
> this issue : (
> My BD play on Power DVD but not on PS3 I can't see my
> images.
>
> I though in BD-J that we can load 45MB ? and my
> images made 1MB, I don't understand...
>
> Tery

Hey,

I think the problem is that while PNG images might be compressed to 1 MB, they are loaded into the image memory uncompressed (to allow them to be drawn on the screen). This means that a full HD image that is stored as uncompressed ARGB in memory takes up about 1920 x 1080 x 4 = 8 MB of memory (6 MB if they are stored RGB).

So if image memory is limited to 45 MB you could theoretically load a maximum of 5 full HD images.

Hope this helps.

Message was edited by: markkurvers