Ticket #102 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Pasting multi-lines in text-entry box causes crash/hang.

Reported by: ScottM Assigned to: anonymous
Priority: high Component: Chat Core (IRC)
Version: 2.0 (2C12) Severity: major
Keywords: text-entry box Cc:

Description

I attempted to paste 7 lines of text into the text-entry box, which auto-resized correctly, but upon pressing return, Colloquy hung and had to be forcibly quit.

The lines of text were like this:

Motd: - ipso facto delorum ipso facto delorum ipso facto delorum ipso Motd: - ipso facto delorum ipso facto delorum ipso facto delorum ipso, Motd: - ipso facto delorum ipso facto delorum ipso facto delorum, Motd: - ipso facto delorum ipso facto delorum ipso facto delorum ipso, Motd: - ipso facto delorum ipso facto delorum ipso facto delorum, Motd: - ipso.

100% repeatable, but nothing shows up in a process sample with Activity Viewer.

Change History

04/06/05 14:36:16 changed by cryo@diku.dk

I pasted this (from the source to Synergy) and it hung: // Hardcoded virtual key table. Oddly, Apple doesn't document the // meaning of virtual key codes. The whole point of *virtual* key // codes is to make them hardware independent so these codes should // be constant across OS versions and hardware. Yet they don't // tell us what codes map to what keys so we have to figure it out // for ourselves.

04/06/05 15:37:36 changed by thomas@deniau.org

  • owner changed from timothy to anonymous.
  • status changed from new to assigned.

100% reproducible here. Accepting the bug.

04/06/05 15:43:04 changed by thomas@deniau.org

GDB backtrace :

(gdb) bt
#0  0x900074c8 in mach_msg_trap ()
#1  0x90007018 in mach_msg ()
#2  0x90a059dc in +[NSMachPort sendBeforeTime:streamData:components:to:from:msgid:reserved:] ()
#3  0x90a25e34 in -[NSMachPort sendBeforeTime:streamData:components:from:msgid:] ()
#4  0x90a19a74 in -[NSConcretePortCoder sendBeforeTime:sendReplyPort:] ()
#5  0x90a03d48 in -[NSConnection sendInvocation:] ()
#6  0x909fcfd0 in -[NSObject(NSForwardInvocation) forward::] ()
#7  0x90836810 in _objc_msgForward ()
#8  0x00037244 in -[JVDirectChatPanel sendMessage:] (self=0x6b64b0, _cmd=0x1, message=0x688c860) at /Users/thomas/Documents/Dev/Colloquy/trunk/JVDirectChatPanel.m:937
#9  0x00021edc in -[JVChatRoomPanel sendMessage:] (self=0x6b64b0, _cmd=0x1, message=0x688c860) at /Users/thomas/Documents/Dev/Colloquy/trunk/JVChatRoomPanel.m:323
#10 0x00036fd4 in -[JVDirectChatPanel send:] (self=0x6b64b0, _cmd=0x1, sender=0xbfffea08) at /Users/thomas/Documents/Dev/Colloquy/trunk/JVDirectChatPanel.m:907
#11 0x000375c8 in -[JVDirectChatPanel textView:returnKeyPressed:] (self=0x6b64b0, _cmd=0x1, textView=0x28, event=0xa93a4) at /Users/thomas/Documents/Dev/Colloquy/trunk/JVDirectChatPanel.m:1000
#12 0x00006e90 in -[MVTextView triggerKeyEvent:] (self=0x673200, _cmd=0x1, event=0x6538100) at /Users/thomas/Documents/Dev/Colloquy/trunk/MVTextView.m:82
#13 0x00006aac in -[MVTextView interpretKeyEvents:] (self=0x673200, _cmd=0x1, eventArray=0x6538100) at /Users/thomas/Documents/Dev/Colloquy/trunk/MVTextView.m:34
#14 0x92e3ac50 in -[NSTextView keyDown:] ()

04/09/05 13:40:08 changed by eridius

  • priority changed from normal to high.
  • severity changed from critical to major.

04/30/05 15:50:38 changed by timothy

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [2579].

12/16/05 06:46:07 changed by anonymous

  • component changed from Colloquy (GUI) to Chat Core (IRC).