×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Series 60 5th Edition high-level UI bug

    OK... I am seeing spurious abrupt terminations of my app (no exception, no message at all), which occur only on S60 5th edition devices. I have finally tracked it down to the MIDP high-level UI implementation.

    It appears to relate to the construction and tear-down of Forms and their contained Items.

    I've attached a sample app that reproduces the problem.

    I can reproduce this issue on:

    * 5800XpressMusic, 20.0.012.C02.01
    * N97 mini, 12.0.110.C01.01

    It would be of great help to know what (internally) is causing this problem, and if there is any work-around more specific than "don't create and destroy Forms or Items".

    Graham.
    Attached Files Attached Files

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Series 60 5th Edition high-level UI bug

    Curiously, can't reproduce the issue on a Sony Ericsson U1 (1224-3789_R1BA027).

    I seem to be able (at least in the test app), to remove the problem by:

    Replacing:
    Code:
    forms[i].destroy();
    with:
    Code:
    forms[i].destroy();
    System.gc();
    try {
        Thread.sleep(200);
    } catch (InterruptedException e) {
        // ignore
    }
    Or, by never creating any ChoiceGroups of type MULTIPLE.

    Whether these "fix" the problem, or just nudge it further away, I obviously have no idea.

    Graham.

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Exclamation Re: Series 60 5th Edition high-level UI bug

    Any help...?

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Series 60 5th Edition high-level UI bug

    I thought I'd fixed this, by not destroying MULTIPLE ChoiceGroup objects... but on the 5230, I'm now seeing "IllegalStateException: addNotify when already added" (see also this issue), which appears to originate inside the API implementation. I believe these issues are related.

    There is also some suggestion from the testers that the original issue has not entirely gone away, they've seen it again (in spite of my fix) on an N97.

    Graham.
    Last edited by grahamhughes; 2010-08-09 at 09:46.

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Series 60 5th Edition high-level UI bug

    A-ha!!

    The IllegalStateException is my fault... because I was keeping a reference to the ChoiceGroup, then adding it to another Form, it was (quite correctly) complaining. Perhaps a bug in the 5800XM that it doesn't throw an exception in this case...

    In my new test, I'm calling deleteAll() on the Form before dropping my reference to it, and I'm going back to allowing all the Items to become garbage too (including the MULTIPLE typed ChoiceGroup). First test on the N97 seems to suggest that this works - fixing the crash-out issue. Needs more testing.

    Graham.

  6. #6
    Regular Contributor
    Join Date
    May 2004
    Posts
    147

    Re: Series 60 5th Edition high-level UI bug

    So it's good now?

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Series 60 5th Edition high-level UI bug

    Yes, calling deleteAll() on a Form before allowing the Form to become garbage seems to prevent the abrupt termination.

    Graham.

Similar Threads

  1. python high level ui
    By jay_st in forum Symbian
    Replies: 3
    Last Post: 2009-07-01, 08:05
  2. How to start UI designing for Series 60 5th Edition ??
    By rohanwaugh in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-11-11, 06:35
  3. Who to start UI development in Series 60 5th edition??
    By rohanwaugh in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-11-03, 06:14
  4. Regarding to High-level UI of MIDP1.0/2.0
    By michelleNguyen711 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-01-02, 19:31
  5. any way of mixing high level UI with low level UI
    By mayankkedia in forum Mobile Java General
    Replies: 2
    Last Post: 2004-03-08, 13:43

Posting Permissions

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