Elusive bug: Symbol Map Crashes CEikGlobalTextEditor?

Login to reply to this topic.
Wed, 2007-12-19 09:49
Joined: 2003-09-15
Forum posts: 175

Does anyone have any ideas about how to fix or track down this bug..

In my Series 60 2nd edition version of my app this problem doesnt exist
but now it happens and I can reproduce it but can't figure out where it
is failing.

Basically,
Both my app and the basic AknExeditor example in the 3rd edition SDK use a
CEikGlobalTextEditor control.

In AknExeditor I can stress-test the editor by launching the symbol map
multiple times as fast as possible (multiple <*> and presses).
AknExeditorhandles this situation as expected and never crashes.

However, in my app when I perform the same stress test I can always crash my app
with a KERN-EXEC 3 whenever I press <*> to launch the symbol map
but quixkly press before the map has a chance to fully display.

If I give the symbol map time (1 second) to display there is no problem),
and if I don't it crashes. Its almost looks like something has lost focus
so doesn't know what to do with my keypress - after my CEikGlobalTextEditor
loses focus but before the Symbol Map is displayed.

My CEikGlobalTextEditor initialisation is the same as AknExeditor
so my only guess is that there is something happing in OfferKeyEvent
that is going astray. I have no idea what yet.

If any experts have come across this before or know how to fix it please let me
know.

Currently my options are:
(1) have a 1 second after the <*> key press so user can't entre any other
keypresses to the app before the Symbol Map appears

(2)put trace statements everywhere to try and track down the crash-point

(3)binary elimination - not really suitable

(4)Some over clever KERN-EXEC 3 tracking technique to find out exactly
which null pointer access is occurring.

FYI, the same stress-test of my app in the emulator works fine and never crashes.
(unfortunately!)

Any help appreciated.


~~~~


Thu, 2007-12-20 21:40
Joined: 2003-09-15
Forum posts: 175
Re: Elusive bug: Symbol Map Crashes CEikGlobalTextEditor?

Update:
Still trying to track down the root of this bug.

Found something interesting today.

On an normal no-crashing CEikGlobalTextEditor
whenI click '*' to launch the Symbol map
the CBA (soft) keys change to [Next] [Cancel].

However, in my app, when I press the '*' key
to launch the Symbol Map I see the CBA keys quickly flash:
[Select] [Cancel]
.. and then changes to..
[Next] [Cancel]

So there's some double process happening which I suspect is
the culprit.

Not sure why this is happening, need to look further..
Edit/Delete Message
Reply With Quote


~~~~

  • Login to reply to this topic.