#27 Crash on typing

closed
nobody
None
5
2004-09-23
2004-08-25
Jens Ayton
No

In current version of ShadowIRC (a13, built from CVS) ShadowIRC
crashes as soon as I attempt to type anything. It appears to be
looping in event handling code, eventually crashing in HIObject
code.

Given the simplicity of the ShadowIRC functions involved, it looks
like a data structure is corrupt. (The loop suggests that the input
field might be embedded in itself...)

Crash log attached.

Discussion

  • Jens Ayton
    Jens Ayton
    2004-08-25

    Crash log

     
    Attachments
  • Jens Ayton
    Jens Ayton
    2004-08-26

    Logged In: YES
    user_id=338897

    Scratch that. What's happening is:

    * InputLineControlTextEventHandler() is called as one would expect.
    * If it returns eventNotHandledErr (i.e., normal text input), the event is
    passed up to the window and MWTextEventHandler() is called.
    * MWTextEventHandler () calls IADHandleTextEvent().
    * IADHandleTextEvent () calls SendEventToControl(theIAD).
    * InputLineControlTextEventHandler() is called. It returns
    eventNotHandledErr, so the event is passed up to the window. Hilarious
    recursion occurs.

    How this could be happening to me but not to the implementor is
    something of a mystery. It's 2:30 am, so my finding-out-what-should-be-
    happening skills aren't up to scratch.

     
  • Jens Ayton
    Jens Ayton
    2004-09-23

    Logged In: YES
    user_id=338897

    OK, updated from CVS today and it now works.

     
  • Jens Ayton
    Jens Ayton
    2004-09-23

    • status: open --> closed