error message: out of memory

Do you need help installing or using ZunTzu? Would you like to report a bug?

Moderators: Ichibrothers, Cambronne

Post Reply
User avatar
alonsii
Posts: 12
Joined: 22 Jul 2009, 06:39
Location: barcelona
Contact:

error message: out of memory

Post 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)"
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post 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.
Jerome, ZunTzu developer.
User avatar
alonsii
Posts: 12
Joined: 22 Jul 2009, 06:39
Location: barcelona
Contact:

Post 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....
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post 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.
Jerome, ZunTzu developer.
User avatar
alonsii
Posts: 12
Joined: 22 Jul 2009, 06:39
Location: barcelona
Contact:

Post 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:
Post Reply