×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    j9 KERN-EXEC 3 on S60 5th Edition JIT enabled

    Hello!

    I'm getting the KERN-EXEC 3 panic during executing my MIDlet. After locating the method, where the application crashes I was confused for a while, cuz it crashes during returning from SOME method. The value before return is determined (System.out for observing). Moreover, the method works fine for some time, and during occasion value of time it just crashes the JVM with KERN-EXEC 3 (NullPointer exception or access violation). All attempts to workaround this issue have failed. The reason, I suppose, is the JIT compiler. It's enabled on devices on which the issue presents. The current list of devices is Nokia 5228, Nokia 5230, Nokia 5800. On other devices my MIDlet works fine (SonyEricsson, Nokia S40 and even Nokia 6120 classic that is the S60).

    Any ideas to resolve this issue? Maybe there is some option to disable JIT on device?

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: j9 KERN-EXEC 3 on S60 5th Edition JIT enabled

    what are you accessing when you crash?

  3. #3
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: j9 KERN-EXEC 3 on S60 5th Edition JIT enabled

    HI,

    can you provide us in which sequence use case you are getting this crash.
    We need more information on this inorder to suggest the fix for this issue.

    j9 crash, seems to be coming due to a null pointer or a data abort in vm thread context.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    Re: j9 KERN-EXEC 3 on S60 5th Edition JIT enabled

    I'm just trying to get the actual value of the field. Actually it's a height of the image in image descriptor class. Just field, nothing more. But this happens in layout validation during calculating the heights of components of my layout's containers. The crash happens randomly but always during getting the height. Actually during trying to execute 'return int_val' instruction from the chain of calls, that supposed to return the value. I use two (at least) System.out's to detect the point of crash. And listening to Sysout's by another j2me tool for assist. Just before return I've got my Sysout message. But in the method, that trying to get the value, the app crashes upon assigning the value to local variable or during return instruction (it's hardly to be sure, but I guess that it's the return instruction):

    This is the snippet of the code structure to explain what's going on:

    class TableLayout {
    ...

    private int getCellPreferredHeight(int col, int row) {
    int h = 0;
    ...
    System.out.println("#1");
    h = component.getMinHeight(); // <-- the crash happens there (component is not null)
    System.out.println("#2 h=" + h);
    ...
    }

    ...
    }


    class Component {
    ImageRef img;

    public int getMinHeight() {
    int height = img.getHeight();
    System.out.println("#3 height=" + height);
    return height;
    }
    }

    class ImageRefImpl implements ImageRef {
    Image refImage;
    int heigth;

    ...
    other code
    ...

    public getHeight() {
    System.out.println("#4 height=" + height);
    return height;
    }
    }

    The Sysouts that I have, are (for instance, the height equals to 20):
    #1
    #4 height=20
    #3 height=20

    And that's all. There is no "#2 h=20" sysout due the KERN EXEC 3 happens.

    Yesterday I've totally cut off the ImageRefImpl class and now I'm working with the Image class directly. The KERN EXEC is not happening now seems to be (need more time to be sure). But I'm not sure that this wont repeat again in other piece of code. I think we need to figure out what the reason of this issue and how to fix or workaround it.

  5. #5
    Registered User
    Join Date
    Oct 2004
    Posts
    3

    Re: j9 KERN-EXEC 3 on S60 5th Edition JIT enabled

    KERN EXEC still exist. But midlet crashes very rarely.

Similar Threads

  1. App. closed. KERN-EXEC 3 5th edition
    By mahendra_g1 in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-10-05, 07:37
  2. App. closed. KERN-EXEC 3 (5th edition)
    By mahendra_g1 in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-10-03, 11:31
  3. Replies: 4
    Last Post: 2008-03-10, 09:04
  4. S60 3rd edition, kern exec 3 on dialogs
    By Symbian_Challenge_0418 in forum Symbian
    Replies: 2
    Last Post: 2008-02-27, 10:07

Posting Permissions

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