×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:FEP causing browser to crash on S60 2nd and 3rd Editions (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
lpvalente (Talk | contribs)
m (Lpvalente - - Solution)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{KBKI}}
+
{{Archived|timestamp=20120418154519|user=[[User:Lpvalente|Lpvalente]]}}
__NOTOC__
+
[[Category:Known Issue]][[Category:Symbian C++]][[Category:S60 2nd Edition (initial release)]][[Category:S60 3rd Edition (initial release)]][[Category:S60 2nd Edition FP1]][[Category:S60 2nd Edition FP2]][[Category:S60 2nd Edition FP3]]
__NOEDITSECTION__
+
{|border="2" cellspacing="0" cellpadding="4" width="100%"
+
|colspan = "2"|
+
=====3d-party FEP causing browser to crash =====
+
|KIS000411
+
  
|-
+
{{ArticleMetaData <!-- v1.2 -->
|
+
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
=====Overview=====
+
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|colspan = "2"|There is a bug in S60 browser code that can cause a crash with 3rd-party FEPs. &nbsp;After installing a 3rd-party FEP, the browser crashes on launch, causing a KERN-EXEC 3 panic.
+
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= S60 2nd Edition, S60 2nd Edition FP1, S60 2nd Edition FP2, S60 2nd Edition FP3,  S60 3rd Edition
 +
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20060921
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory=
 +
|id= KIS000411
 +
}}
  
|-
+
==Overview==
|
+
{{Abstract|There is a bug in S60 browser code that can cause a crash with 3rd-party FEPs. After installing a 3rd-party FEP, the browser crashes on launch, causing a KERN-EXEC 3 panic.}}
=====Reported against=====
+
|colspan = "2"|S60 2nd Edition, FP2 and FP3<br>S60 3rd Edition
+
  
|-
+
==Description==
|
+
This bug can be worked around by implementing your own MAknEditingStateIndicator that has empty methods. This &nbsp;will avert the browser from crashing but may have unexpected behavior with some other components, so extended testing with other editors is advised.<br>To implement this indicator interface you will need a header file which is not part of the SDK until S60 3rd Edition, Feature Pack 1. The header (akneditstateindicator.h), included in the S60 3rd Edition, FP1 SDK, can be used also with previous S60 platform versions that are affected by this issue.
=====Date identified=====
+
|colspan = "2"|September 21, 2006
+
  
|-
+
==Solution==
|
+
The dummy indicator implementation would be something like this:
=====Symptoms=====
+
|colspan = "2"|-
+
  
|-
+
<code cpp>
|
+
// FepIndicator.h:
=====Detailed description=====
+
#include <akneditstateindicator.h>  // for MAknEditingStateIndicator
|colspan = "2"|This bug can be worked around by implementing your own MAknEditingStateIndicator that has empty methods. This &nbsp;will avert the browser from crashing but may have unexpected behavior with some other components, so extended testing with other editors is advised.<br>To implement this indicator interface you will need a header file which is not part of the SDK until S60 3rd Edition, Feature Pack 1. The header (akneditstateindicator.h), included in the S60 3rd Edition, FP1 SDK, can be used also with previous S60 platform versions that are affected by this issue.
+
class CFepIndicator : public CBase, public MAknEditingStateIndicator
 +
    {
 +
public:
 +
        enum TIndicatorState
 +
            {
 +
            EStateNone = 1,
 +
            EStateNumeric,
 +
            EStateAlphabat
 +
            };
 +
public:
 +
    static CFepIndicator* NewL();
 +
    ~CFepIndicator();
 +
    virtual void SetState(TIndicatorState aState);
 +
    // From MAknEditingStateIndicator
 +
    void SetState(TAknEditingState aState);
 +
    CAknIndicatorContainer* IndicatorContainer();
 +
      // ...
 +
    };
 +
// FepControl.cpp:
 +
void CExampleFepControl::ConstructL()
 +
    {
 +
    CreateWindowL();
 +
    SetNonFocusing();
 +
    RWindow& window = Window();
 +
    window.SetOrdinalPosition(0, ECoeWinPriorityFep);
 +
    TPoint fepControlPos(0, 0);
 +
    SetExtent(fepControlPos, TSize(0,0));
 +
    window.SetExtent(fepControlPos, TSize(0,0));
 +
    window.SetNonFading(ETrue);
 +
    // Create multi-tap input engine
 +
    iMultiTapEngine = CExampleFepMultiTapEngine::NewL(*this);
 +
    // Create status pane indicator
 +
    iIndicator = CFepIndicator::NewL();
 +
    CAknEnv::Static()->SwapEditingStateIndicator(iIndicator);
 +
    }
 +
// FepIndicator.cpp:
 +
void CFepIndicator::SetState(TAknEditingState */aState*/)
 +
    {
 +
    }
 +
    CAknIndicatorContainer* CFepIndicator::IndicatorContainer()
 +
    {
 +
    return NULL;
 +
    }
  
|-
+
</code>
|
+
=====How to reproduce=====
+
|colspan = "2"|-
+
 
+
|-
+
|
+
=====Solution=====
+
|colspan = "2"|The dummy indicator implementation would be something like this:<br>//------------------------------------------------------------------------------<br>// FepIndicator.h:<br><nowiki>#</nowiki>include <nowiki><</nowiki>akneditstateindicator.h<nowiki>></nowiki> &nbsp;// for MAknEditingStateIndicator<br>class CFepIndicator : public CBase, public MAknEditingStateIndicator<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>{</nowiki><br>public:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enum TIndicatorState<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>{</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EStateNone = 1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EStateNumeric,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EStateAlphabat<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>}</nowiki>;<br>public:<br>&nbsp;&nbsp;&nbsp;&nbsp;static CFepIndicator* NewL();<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>~</nowiki>CFepIndicator();<br>&nbsp;&nbsp;&nbsp;&nbsp;virtual void SetState(TIndicatorState aState);<br>&nbsp;&nbsp;&nbsp;&nbsp;// From MAknEditingStateIndicator<br>&nbsp;&nbsp;&nbsp;&nbsp;void SetState(TAknEditingState aState);<br>&nbsp;&nbsp;&nbsp;&nbsp;CAknIndicatorContainer* IndicatorContainer();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// ...<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>}</nowiki>;<br>// FepControl.cpp:<br>void CExampleFepControl::ConstructL()<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>{</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;CreateWindowL();<br>&nbsp;&nbsp;&nbsp;&nbsp;SetNonFocusing();<br>&nbsp;&nbsp;&nbsp;&nbsp;RWindow& window = Window();<br>&nbsp;&nbsp;&nbsp;&nbsp;window.SetOrdinalPosition(0, ECoeWinPriorityFep);<br>&nbsp;&nbsp;&nbsp;&nbsp;TPoint fepControlPos(0, 0);<br>&nbsp;&nbsp;&nbsp;&nbsp;SetExtent(fepControlPos, TSize(0,0));<br>&nbsp;&nbsp;&nbsp;&nbsp;window.SetExtent(fepControlPos, TSize(0,0));<br>&nbsp;&nbsp;&nbsp;&nbsp;window.SetNonFading(ETrue);<br>&nbsp;&nbsp;&nbsp;&nbsp;// Create multi-tap input engine<br>&nbsp;&nbsp;&nbsp;&nbsp;iMultiTapEngine = CExampleFepMultiTapEngine::NewL(*this);<br>&nbsp;&nbsp;&nbsp;&nbsp;// Create status pane indicator<br>&nbsp;&nbsp;&nbsp;&nbsp;iIndicator = CFepIndicator::NewL();<br>&nbsp;&nbsp;&nbsp;&nbsp;CAknEnv::Static()-<nowiki>></nowiki>SwapEditingStateIndicator(iIndicator);<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>}</nowiki><br>&nbsp;// FepIndicator.cpp:<br>void CFepIndicator::SetState(TAknEditingState */aState*/)<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>{</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>}</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;CAknIndicatorContainer* CFepIndicator::IndicatorContainer()<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>{</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;return NULL;<br>&nbsp;&nbsp;&nbsp;&nbsp;<nowiki>}</nowiki><br>&nbsp;&nbsp;&nbsp;&nbsp;//------------------------------------------------------------------------------
+
 
+
|-
+
[[Category:Known Issue]]
+

Latest revision as of 17:39, 11 November 2012

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Compatibility
Platform(s): S60 2nd Edition, S60 2nd Edition FP1, S60 2nd Edition FP2, S60 2nd Edition FP3, S60 3rd Edition
S60 3rd Edition (initial release)
S60 2nd Edition FP3
S60 2nd Edition FP2
S60 2nd Edition FP1
S60 2nd Edition (initial release)
Article
Created: User:Technical writer 1 (21 Sep 2006)
Last edited: lpvalente (11 Nov 2012)

[edit] Overview

There is a bug in S60 browser code that can cause a crash with 3rd-party FEPs. After installing a 3rd-party FEP, the browser crashes on launch, causing a KERN-EXEC 3 panic.

[edit] Description

This bug can be worked around by implementing your own MAknEditingStateIndicator that has empty methods. This  will avert the browser from crashing but may have unexpected behavior with some other components, so extended testing with other editors is advised.
To implement this indicator interface you will need a header file which is not part of the SDK until S60 3rd Edition, Feature Pack 1. The header (akneditstateindicator.h), included in the S60 3rd Edition, FP1 SDK, can be used also with previous S60 platform versions that are affected by this issue.

[edit] Solution

The dummy indicator implementation would be something like this:

// FepIndicator.h:
#include <akneditstateindicator.h> // for MAknEditingStateIndicator
class CFepIndicator : public CBase, public MAknEditingStateIndicator
{
public:
enum TIndicatorState
{
EStateNone = 1,
EStateNumeric,
EStateAlphabat
};
public:
static CFepIndicator* NewL();
~CFepIndicator();
virtual void SetState(TIndicatorState aState);
// From MAknEditingStateIndicator
void SetState(TAknEditingState aState);
CAknIndicatorContainer* IndicatorContainer();
// ...
};
// FepControl.cpp:
void CExampleFepControl::ConstructL()
{
CreateWindowL();
SetNonFocusing();
RWindow& window = Window();
window.SetOrdinalPosition(0, ECoeWinPriorityFep);
TPoint fepControlPos(0, 0);
SetExtent(fepControlPos, TSize(0,0));
window.SetExtent(fepControlPos, TSize(0,0));
window.SetNonFading(ETrue);
// Create multi-tap input engine
iMultiTapEngine = CExampleFepMultiTapEngine::NewL(*this);
// Create status pane indicator
iIndicator = CFepIndicator::NewL();
CAknEnv::Static()->SwapEditingStateIndicator(iIndicator);
}
// FepIndicator.cpp:
void CFepIndicator::SetState(TAknEditingState */aState*/)
{
}
CAknIndicatorContainer* CFepIndicator::IndicatorContainer()
{
return NULL;
}
This page was last modified on 11 November 2012, at 17:39.
69 page views in the last 30 days.