×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    121

    Weird Problem with find box Kern-Exec-3

    following is my constructL of container function which hangs on

    iFindBox = CAknSearchField::NewL( *this, CAknSearchField::EFixed, NULL, 30 );
    line giving kern-exec-3
    i.e.

    This panic is raised when an unhandled exception occurs. Exceptions have many causes, but the most common are access violations caused, for example, by dreferencing NULL. Among other possible causes are: general protection faults, executing an invalid instruction, alignment checks, etc.


    I m also pasting the debug log that is been created



    CreateWindowL();


    iContactListBox = new (ELeave) CAknSingleGraphicStyleListBox;
    iContactListBox->ConstructL(this,EAknListBoxMultiselectionList);
    iContactListBox->SetContainerWindowL(*this);
    iContactListBox->SetListBoxObserver(this);
    iContactListBox->SetCurrentItemIndex( 0 );



    iContactListBox->CreateScrollBarFrameL(ETrue);
    iContactListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);


    iContactListBox->ActivateL();

    iContactListBox->DrawNow();

    iFilteredTextListBoxModel = static_cast<CAknFilteredTextListBoxModel*>( iContactListBox->Model() );

    iFindBox = CAknSearchField::NewL( *this, CAknSearchField::EFixed, NULL, 30 );
    CleanupStack::PushL(iFindBox);
    iFilteredTextListBoxModel->CreateFilterL( iContactListBox, iFindBox );
    CleanupStack::Pop(iFindBox);

    iFindBox->MakeVisible(ETrue);
    iFindBox->SetFocus(ETrue);
    iFindBox->ActivateL();
    iFindBox->DrawNow();
    SizeChanged();

    icons1 =new(ELeave) CAknIconArray(2);
    CleanupStack::PushL(icons1);
    icons1->ConstructFromResourceL(R_ICON_TESTICONS);

    // Sets graphics as ListBox icon.
    iContactListBox->ItemDrawer()->ColumnData()->SetIconArray(icons1);

    CleanupStack::Pop(); // icons






    SetRect(aRect);
    ActivateL();








    log created when i activate the view..



    31.230 content size: 14.0000x14.0000
    31.235 content size: 14.0000x14.0000
    31.240 content size: 14.0000x14.0000
    31.245 content size: 14.0000x14.0000
    31.250 content size: 324.0000x14.0000
    31.255 content size: 324.0000x14.0000
    31.265 content size: 14.0000x236.0000
    31.270 content size: 14.0000x236.0000
    31.275 content size: 328.0000x10.0000
    31.280 content size: 328.0000x10.0000
    31.285 content size: 10.0000x64.0000
    31.285 content size: 10.0000x64.0000
    31.295 content size: 328.0000x64.0000
    31.295 content size: 9.0000x20.0000
    31.300 content size: 324.0000x236.0000
    31.300 AKNSKINS: (Error) "CAknsAppSkinInstance::GetLayoutBitmap Srv update failed -1"
    31.355 content size: 12.0000x12.0000
    31.355 content size: 12.0000x12.0000
    31.360 content size: 12.0000x12.0000
    31.555 content size: 28.0000x32.0000
    31.565 content size: 20.0000x32.0000
    31.575 content size: 28.0000x32.0000
    31.605 content size: 27.9990x32.0000
    31.610 content size: 20.0000x32.0000
    31.615 content size: 28.0000x32.0000
    31.690 FontProvider: Category=4, TextPane Height=12; mapped request=10; typeface=Series 60 Sans SemiBold, actual range=11(a,d,exa,exd=7 3 1 0)
    31.740 content size: 24.0000x26.0000
    31.750 CEikEdwin: Alignment found null CEikEdwin::iTextView
    31.765 Thread Operator::Operator Panic KERN-EXEC 3

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Weird Problem with find box Kern-Exec-3

    here would be one example that works: http://wiki.forum.nokia.com/index.ph...rch%2C_example

    so, maybe you could check what you are doing differently.

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    121

    Re: Weird Problem with find box Kern-Exec-3

    Hi ,
    Thanks for replying..
    actually previously all views were working properly..
    on checking i found i m getting Kern - EXec 3 whenever i m activating a control in the container..

    any idea why this is happening ?
    also i get a warning message

    29.240 *PlatSec* WARNING - Capability check would have failed - A Message (function number=0x09c00aa3) from Thread Operator[b0005212]0001::Operator, sent to Server !DBMS server, was checked by Thread EDBSRV.EXE[100012a5]0002::!DBMS server and was found to be missing the capabilities: ReadUserData .
    30.305 Thread Operator::Operator Panic KERN-EXEC 3

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Weird Problem with find box Kern-Exec-3

    you might want to add the mkissing capability, dunno if it helps, but at least it might.

    Could you try finding the actual line that gives the error, basically just run it in the meulator line-by-line untill it crashes.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: Weird Problem with find box Kern-Exec-3

    Quote Originally Posted by sohilr View Post
    on checking i found i m getting Kern - EXec 3 whenever i m activating a control in the container..

    any idea why this is happening ?
    The typical reason is that something is NULL. Debug the code and enable Just in time debugging in the emulator (Tools/Preferences on the top - anyway, it is enabled by default as I remember), and the debugger will catch the panic. Then you can check your call stack.
    also i get a warning message

    29.240 *PlatSec* WARNING - Capability check would have failed - A Message (function number=0x09c00aa3) from Thread Operator[b0005212]0001::Operator, sent to Server !DBMS server, was checked by Thread EDBSRV.EXE[100012a5]0002::!DBMS server and was found to be missing the capabilities: ReadUserData .
    This is trying to say that the application "Operator" (I guess it is yours) uses some API that require ReadUserData capability.
    30.305 Thread Operator::Operator Panic KERN-EXEC 3
    This is your panic.

  6. #6
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    121

    Re: Weird Problem with find box Kern-Exec-3

    Thanks for helping..


    I have a active object which is reading the database...but there it does not give any error..
    however as said when i m switching between the views

    on debugging my code it panics at this line

    iFindBox = CAknSearchField::NewL( *this, CAknSearchField::EFixed, NULL, 30 );

    in one of the views..
    and at
    iEditor->ActivateL();

    on another..
    earlier these views were working fine...there was no issue with them..

    what i will try is add capabilities to the project files..

  7. #7
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    121

    Re: Weird Problem with find box Kern-Exec-3

    Hi after debugging from the log this is what i found was very common


    31.690 AKNSKINS: (Error) "CAknsAppSkinInstance::GetLayoutBitmap Srv update failed -1"
    32.725 CEikEdwin: Alignment found null CEikEdwin::iTextView



    I have already used the BaseConstructL of AppUi as

    BaseConstructL(EAknEnableSkin);


    is there anything that i m missing ?

  8. #8
    Regular Contributor
    Join Date
    Oct 2007
    Posts
    121

    Re: Weird Problem with find box Kern-Exec-3

    well i search through the forum and found someone had post on

    AKNSKINS: (Error) "CAknsAppSkinInstance::GetLayoutBitmap Srv update failed -1"

    he changed the epoc stck size..
    so did i..

    and strangely it solved the problem..

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-29, 06:43
  2. The kern exec 3 error!
    By ericfengjieming2007 in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-09-19, 11:20
  3. search box problem
    By amitS in forum Symbian
    Replies: 2
    Last Post: 2007-06-05, 09:56
  4. Weird problem in playing midi with 3300
    By shuto198 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2003-09-04, 20:01
  5. Please Solve my problem with List Box
    By Nilesh_Kul in forum Symbian User Interface
    Replies: 10
    Last Post: 2003-04-17, 23:13

Posting Permissions

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