Page 1 of 1

error message: out of memory

Posted: 11 Apr 2012, 15:54
by alonsii
I took a look on the different questions on this forum and I couldn't find an answer for my problem. If it was solved before sorry for answering again for it.

I'm working on a gamebox, recently changed some of the image files to others with 300 dpi resolution.

I can open the gamebox and also I can do the set up to create an scenario file.
Once i have all the scenario files i add them to the gamebox.

I try to open the gamebox and it starts without problems but when I try to open any of the scenario, the program crashes this error message appears:

"version 1.2.1.14
os Microsoft Windows NT 5.1.2600 Service Pack 2
framework 2.0.50727.42
cpu count 2
System.OutOfMemoryException: Out of memory.
at System.Drawing.Bitmap..ctor(Stream stream)
at ZunTzu.Graphics.c.d..ctor(a A_0, PixelFormat A_1)
at ZunTzu.Graphics.c.a.e()
at ZunTzu.Visualization.y.c.e()
at ZunTzu.Visualization.y.b(Int64 A_0)
at ZunTzu.b.b(String[] A_0)"

Posted: 11 Apr 2012, 17:25
by Jerome
Hi!
I am pretty sure your images are a bit exotic.

Try saving them in the most simple JPEG or PNG format.
Avoid exotic color spaces like CMYK. Use RGB.
Avoid 'progressive' or 'interlaced' images.

Posted: 12 Apr 2012, 11:20
by alonsii
Jerome wrote:Hi!
I am pretty sure your images are a bit exotic.

Try saving them in the most simple JPEG or PNG format.
Avoid exotic color spaces like CMYK. Use RGB.
Avoid 'progressive' or 'interlaced' images.
All are jpeg files with rgb colour.

maps are a bit large 5mb to 10 mb. the gamebox is 132mb.

I cannot understand why I can open the gamebox select all the game components, prepare a setup, without crashing the program, but if I try to select an scenario the program crashes....

Posted: 12 Apr 2012, 12:44
by Jerome
alonsii wrote:All are jpeg files with rgb colour.
All the images are RGB? Good. What about 'progressive'?

I bet at least one of them was saved as 'progressive'.
Could you try opening them in a bitmap editor and saving them again?

Note: re-encoding JPEG images repeatedly degrades quality so you might want to make a copy of your game box to experiment.

Posted: 19 Apr 2012, 08:57
by alonsii
Jerome wrote:
alonsii wrote:All are jpeg files with rgb colour.
All the images are RGB? Good. What about 'progressive'?

I bet at least one of them was saved as 'progressive'.
Could you try opening them in a bitmap editor and saving them again?

Note: re-encoding JPEG images repeatedly degrades quality so you might want to make a copy of your game box to experiment.
Didn't have time to reencoding everything, but I tried to use one of the scenarios as a startup and it opens without problems.... :shock: