Open GoogleCodeExporter opened 8 years ago
I am experiencing a similar problem with a Nokia 2730, and using the Nokia SDK
1.0 emulator, and have posted the following in the MoSync forums. I have tested
the device with a couple of example applications including MAUIEx, and MapDemo.
MAUIEx works; MapDemo produces the same result as above (the heap, stack and
data sizes being set to 768KB, 128KB and 1024KB respectively). I am also
experiencing this problem in trying to test my own application on the device.
According to the manufacturer's specifications, the 2730 has a maximum JAR file
size of 1MB, and a maximum data size of 2MB.
On attempting to run either my own application, or MapDemo application, the
device reports "Out of Memory Error" java/lang/OutOfMemory. I have analysed my
own code to ensure that resources that may be being allocated from the heap -
such as fonts and widget skins - are not loaded as static objects. The problem
appears to be related to the size of the JAR file produced by MoSync, and also
the data size:
(1) there appears to be a maximum JAR size of about 244KB above which the
application is displays the out of memory error; and / or
(2) if the data size if set to anything greater than 1MB (1024KB).
Original comment by rwbisso...@googlemail.com
on 24 Aug 2011 at 1:06
With J2ME there also might be other "Out of memory" causes, e.g. individual
files in the jar can't be bigger than a certain amount. The number of files in
the jar can't be more than a certain amount. etc
Original comment by jdd...@gmail.com
on 24 Aug 2011 at 1:10
Original issue reported on code.google.com by
naveed.a...@gtempaccount.com
on 29 Jun 2011 at 1:19