Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#102 closed Defect (Fixed)

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

Reported by: ScottM Owned by: anonymous
Component: Chat Core (IRC) Version: 2.0 (Mac)
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 (6)

comment:1 Changed 15 years ago by cryo@…

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.

comment:2 Changed 15 years ago by thomas@…

  • Owner changed from timothy to anonymous
  • Status changed from new to assigned

100% reproducible here. Accepting the bug.

comment:3 Changed 15 years ago by thomas@…

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:] ()

comment:4 Changed 15 years ago by eridius

  • priority changed from normal to high
  • Severity changed from critical to major

comment:5 Changed 15 years ago by timothy

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [2579].

comment:6 Changed 14 years ago by anonymous

  • Component changed from Colloquy (GUI) to Chat Core (IRC)
Note: See TracTickets for help on using tickets.