×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    13

    OutOfMemoryError on 6220c

    Hi Everyone,

    I have a strange behaviour on the 6220 classic. Our application has approx. a max memory footprint of 1.5 - 2MB (tested). And we get after
    try {DeviceControl.setLights(0, 70);} catch (Throwable e) {….; }
    an OutOfMemory Error any times.

    There are any memory leaks in the VM implementations or know anybody this issue?

    BTW. The Firmware is V3.06 (currently supported V3.23) unfortunately Nokia has temp. stopped the software update support for the 6220 classic.

    Thanks & Regards,
    Walter

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: OutOfMemoryError on 6220c

    I'm not sure the error comes from this method, since it allocates no memory. Are you loading many images? Using many Canvases? Setting non-used objects to null?

    Daniel

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    13

    Re: OutOfMemoryError on 6220c

    Hi Daniel,

    yes of course, we are using images and canvases but we haven’t troubles with the memory management. The Software runs correctly on many phones (S60,S40,Sony,…) with a maximum memory footprint of 1.5 - 2MB.
    I used the totalMemory() method to watch the amount of memory in the VM and the result was ok
    (< 2MB). There isn’t any reason for this behaviour.

    BTW. Unfortunately I found during the mem-tests an other bug into the JSR179 Location API. The memory is permanently increasing during the repeated call form the LocationProvider of the (empty - nothing will alloc) locationUpdated() method. This behaviour is on the other hand only on the 6220 classic!

    My question – is there any date for the “nokia software update support” availability for the 6220 and will this update fix this issues?

    Thanks & Regards,
    Walter

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: OutOfMemoryError on 6220c

    Hell whin,

    could you provide more details on the

    try {DeviceControl.setLights(0, 70);} catch (Throwable e) {….; }
    an OutOfMemory Error any times.
    More in detail:

    1. Do you refer to the problem as result of setLights(), or some code following setLights()?

    2. What is required to test this in addition to setLights() ?

    2.1. Do you need to run the setLights() in row x times, or something else?

    2.2. Does a simple setLights() test result in this problem too?

    Regards,
    r2j7
    Last edited by r2j7; 2008-09-01 at 14:08. Reason: yes
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: OutOfMemoryError on 6220c

    Hi Walter,

    Nokia Software Update support is given by Nokia Care (http://europe.nokia.com/A4144989) not by us in Forum, so I don't have any info on dates or versions that are coming out. I'll try to ask internally to see if something's coming for 6220.

    Daniel

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    13

    Re: OutOfMemoryError on 6220c

    Hi,

    >> Do you refer to the problem as result of setLights(), or some code following setLights()?

    Yes.

    >>What is required to test this in addition to setLights() ?
    >>Do you need to run the setLights() in row x times, or something else?
    >>Does a simple setLights() test result in this problem too?

    Try this method
    .
    ..
    public void light() {
    if (t == null) {
    t = new Timer();

    TimerTask tt = new TimerTask() {
    public void run() {
    try {
    DeviceControl.setLights(0, 70);
    } catch (Throwable e) {
    Log.logErrorNoUi(e);
    }
    }
    };
    t.schedule(tt, 2500L, 7500L);
    }
    }

    ,but I think this problem is a internal side effect of the memory management on a random position, because setLights normally alloc no mem.

    >>I'll try to ask internally to see if something's coming for 6220.

    Many Thanks!

    Regards,
    Walter

  7. #7
    Registered User
    Join Date
    Oct 2006
    Posts
    13

    Re: OutOfMemoryError on 6220c

    Hi all,

    no idea, no answers and no support?

    Regards,
    Walter

  8. #8
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: OutOfMemoryError on 6220c

    Next time add code tags around your code so it is easier tio read, but my suggestion off the top of my head: try without anonymous classes.

    Hartti

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×