×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Exclamation Panic KERN-EXEC 3

    Hello all,
    I am getting "Thread TEST::TEST Panic KERN-EXEC 3" error in the following piece of code in this http request. After searched very long I didn't find any solution. Please help .............

    ******************************************************************************

    TBool CTESTContainerView::HandleAbcMenuItemSelectedL( TInt aCommand )
    {
    // TODO: implement selected event handler
    iTESTContainer->iEdit1->GetText(Logonid); <---------------------------- CEikEdwin (iEdit1)
    iTESTContainer->iSecret1->GetText(password); <---------------------------- CEikEdwin (iSecret1)
    TBuf<50> id_pass;
    id_pass.Copy(Logonid);
    id_pass.Append(_L("\n"));
    id_pass.Append(password);
    TBuf8<1024> aUrlData;

    aUrlData.Copy(_L8("http://TEST.cisusa.net/rest/index.php?c=checklogin&m=user&username="));
    aUrlData.Append(Logonid);
    aUrlData.Append(_L8("&password="));
    aUrlData.Append(password);
    HttpPost(aUrlData); <-----------------------------(Creating Thread TEST::TEST Panic KERN-EXEC 3)
    CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
    informationNote->ExecuteLD(id_pass);
    return ETrue;
    }
    void CTESTContainerView::HttpPost(const TDesC8& aUrlData)
    {

    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->CancelTransaction();

    // Start transaction
    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->IssueHTTPGetL(aUrlData);

    }
    ******************************************************************************
    Last edited by dev_Cis; 2011-11-14 at 14:00.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    Basically you should keep breakpoints in HttpPost() (CancelTransaction() and IssueHTTPGetL() ) method and check which line causing panic.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    Thanks for reply savaj, i used break-point in debugging at "aUrlData.Copy(_L8("http://TEST.cisusa.net/rest/index.php?c=checklogin&m=user&username="));" and the error occurs exactly at the place where i put the arrow with the bold panic statement.

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    Why don't you "Step In" in function HttpPost()?

  5. #5
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    Actually it was working well before, the same code stooped working today. The function call doesn't switch to the function i.e. the controller does not proceed to the function before crashing.

  6. #6
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    void CTESTContainerView::HttpPost(const TDesC8& aUrlData)
    {

    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->CancelTransaction(); //put breakpoint on this line.

    // Start transaction
    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->IssueHTTPGetL(aUrlData);

    }
    Put breakpoint on above mentioned line and check what happens.

  7. #7
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    ***************************************************************************
    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->CancelTransaction();........ <----------------------------------(Putting break point here)
    .....................
    void CClientEngine::CancelTransaction()
    {

    if(!iRunning) <-----------------------------------------------------(generating panic here)
    return;

    // Close() also cancels transaction (Cancel() can also be used but
    // resources allocated by transaction must be still freed with Close())
    iTransaction.Close();

    // Not running anymore
    iRunning = EFalse;
    HBufC* resTxCancelled = StringLoader::LoadLC(R_HTTP_TX_CANCELLED);
    iObserver.ClientEvent(*resTxCancelled);
    CleanupStack::PopAndDestroy(resTxCancelled);

    }
    ***************************************************************************
    Last edited by dev_Cis; 2011-11-15 at 06:17.

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    It is not possible. May be its crashing after it returning from that function. Put breakpoint in IssueHTTPGetL() method.

  9. #9
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    debug result putting break point in IssueHTTPGetL() method,
    but
    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->CancelTransaction();
    this line has been commented otherwise emulator closes before.


    *******************************************************************************
    void CClientEngine::IssueHTTPPostL(const TDesC8& aUri,
    const TDesC8& aContentType,
    const TDesC8& aBody)
    {
    // Parse string to URI
    TUriParser8 uri;
    uri.Parse(aUri);

    // Copy data to be posted into member variable; iPostData is used later in
    // methods inherited from MHTTPDataSupplier.
    delete iPostData;
    iPostData = 0;
    iPostData = aBody.AllocL();

    // Create HTTP connection
    TRAPD(err, SetupConnectionL()); <-----------------------------------------------------(the function below)
    // User didn't select an IAP
    if (err == KErrNotReady) {
    HBufC* resTxCancelled = StringLoader::LoadLC(R_HTTP_TX_CANCELLED);
    iObserver.ClientEvent(*resTxCancelled);
    CleanupStack::PopAndDestroy(resTxCancelled);
    return;
    }
    ******************************************************

    void CClientEngine::SetupConnectionL()
    {
    TInt bearerFilter = EApBearerTypeAllBearers;
    TInt currentProfileId=0;

    // Check whether we are offline or online
    iRepository->Get(KProEngActiveProfile, currentProfileId); <---------------------------------------------(now generating panic here)

    // Close the connection only if
    // a) this is not the first time and
    // b) the profile has changed and
    // c) either the previous or the current profile is Offline (5 = Offline)
    if (iPrevProfileId != -1 && iPrevProfileId != currentProfileId &&
    (iPrevProfileId == 5 || currentProfileId == 5))
    {
    // Close and uninitialize
    iConnectionSetupDone = EFalse;
    iSession.Close();
    iConnection.Close();
    iSocketServ.Close();
    }

    // Save current profile id
    iPrevProfileId = currentProfileId;

    ...................................................................
    .....................................................
    Last edited by dev_Cis; 2011-11-15 at 10:31.

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

    Re: Panic KERN-EXEC 3

    if you get Kern-Exec 3 on that line, then I would assume that either the iRepository is NULL or it it invalid, thus do check that you do construct the iRepository before trying to use it.

    Also if you do get now different panic, please do remember to mention what it is now.

  11. #11
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    It is the same error on Kern-Exec 3 on the line iRepository
    but if i remove the commented...

    ***********************
    void CTESTContainerView::HttpPost(const TDesC8& aUrlData)
    {

    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->CancelTransaction(); <-----------------------(this line)

    // Start transaction
    STATIC_CAST(CTESTAppUi*, iAvkonAppUi )->iEngine->IssueHTTPGetL(aUrlData);

    }
    ************************


    I get the same error Kern-Exec 3

    ************************
    void CClientEngine::CancelTransaction()
    {
    // RDebug::Print(_L("Harshal %s"), iRunning);

    if(!iRunning) <----------------------------------------(here)
    return;


    // Close() also cancels transaction (Cancel() can also be used but
    // resources allocated by transaction must be still freed with Close())
    iTransaction.Close();

    // Not running anymore
    iRunning = EFalse;
    HBufC* resTxCancelled = StringLoader::LoadLC(R_HTTP_TX_CANCELLED);
    iObserver.ClientEvent(*resTxCancelled);
    CleanupStack::PopAndDestroy(resTxCancelled);

    }
    ************************
    Last edited by dev_Cis; 2011-11-15 at 11:37.

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

    Re: Panic KERN-EXEC 3

    if(!iRunning) can not produce Kern-Exec 3. more likely your iEngine is not valid pointer.

  13. #13
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    Or probably after returning from CancelTransaction() its crashing in IssueHTTPGetL() at same line. "Step In" and "Step Out" properly in those functions to get exact line causing panic. And as said earlier what about "iRepository"?

  14. #14
    Registered User
    Join Date
    Nov 2011
    Posts
    71

    Re: Panic KERN-EXEC 3

    iRepository on watch expression showing 'cannot address the memory location ..........'.

  15. #15
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Panic KERN-EXEC 3

    That's the reason for your crash. Initialize it before using.

Similar Threads

  1. KERN EXEC 3 PANIC
    By s.baalajee in forum Symbian
    Replies: 5
    Last Post: 2010-04-12, 14:47
  2. Panic - Kern Exec 3
    By ganeshs87 in forum Symbian
    Replies: 9
    Last Post: 2010-03-09, 10:35
  3. Panic KERN-EXEC 3
    By rohitnegi in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-02-26, 08:57
  4. getting panic KERN - EXEC 3
    By rohitnegi in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-02-22, 11:01
  5. Panic KERN-EXEC 3
    By vivek_mics in forum Symbian
    Replies: 7
    Last Post: 2006-11-25, 07:10

Posting Permissions

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