SymbiSoft / mosync

Automatically exported from code.google.com/p/mosync
0 stars 0 forks source link

Out of memory error on Java devices #1119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install and Run MoSync
2. Import and run example MapDemo on Java Devices e.g. Nokia 5310, and 
SonyEricsson W950i.

What is the expected output? What do you see instead?
I expect the program to be properly running. Application gives out of memory 
error.

Please use labels and text to provide additional information.
Tested on Java device: Nokia 5310 XpressMusic
2.5 Pyramid on Window XP

Original issue reported on code.google.com by naveed.a...@gtempaccount.com on 29 Jun 2011 at 1:19

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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