Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#269 closed Defect (Fixed)

App will occasionally spinlock for minutes at a time when inputting text.

Reported by: spork@… Owned by: timothy
Component: Colloquy (Mac) Version: 2.0 (Mac)
Severity: Normal Keywords: spinlock hang
Cc:

Description

After running for a fairly long period, I've found that when logged in to a silc chat session Colloquy will sometimes spinlock on hitting "enter" after typing. Not sure what exactly made it start doing this today, perhaps server lag?

I had "Spin Control" running, and it spit this out, perhaps it's helpful:

Call graph:

5244 Thread_4807

5244 start

5244 _start

5244 main

5244 NSApplicationMain

5244 -[NSApplication run]

5244 -[NSApplication sendEvent:]

5244 -[NSWindow sendEvent:]

5244 -[NSTextView keyDown:]

5244 -[MVTextView interpretKeyEvents:]

5244 -[MVTextView triggerKeyEvent:]

5244 -[JVDirectChatPanel textView:returnKeyPressed:]

5244 -[JVDirectChatPanel send:]

5244 -[JVChatRoomPanel sendMessage:]

5244 -[JVChatRoomPanel firstChatRoomMemberWithName:]

5244 -[JVChatRoomMember(JVChatMemberPrivate) _selfStoredNickname]

5244 -[ABRecord valueForProperty:]

5244 -[ABRecord nts_ValueForProperty:row:]

5244 getRowForUIDInTable

5244 -[ABAddressBook nts_Reconnect]

5239 nts_OpenDatabase

5238 sleep

5238 nanosleep

5238 mach_wait_until

5238 mach_wait_until

1 _CFShowToFile

1 fputc

1 swbuf

1 fflush

1 _swrite

1 write

1 write

5 operator new(unsigned long)

5 operator new(unsigned long)

5244 Thread_4907

5244 _pthread_body

5244 forkThreadForFunction

5244 +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:]

5244 CFRunLoopRunSpecific

5244 CFRunLoopRun

5244 mach_msg

5244 mach_msg_trap

5244 mach_msg_trap

5244 Thread_6303

5244 _pthread_body

5244 CFSocketManager

5244 select

5244 select

5244 Thread_6403

5244 _pthread_body

5244 forkThreadForFunction

5244 +[NSURLCache _diskCacheSyncLoop:]

5244 CFRunLoopRunSpecific

5244 CFRunLoopRun

5244 mach_msg

5244 mach_msg_trap

5244 mach_msg_trap

5244 Thread_6503

5244 _pthread_body

5244 forkThreadForFunction

5243 -[MVSILCChatConnection(MVSILCChatConnectionPrivate) _silcRunloop]

5169 silc_schedule_one

5168 silc_select

5168 select

5168 select

1 sigprocmask

1 sigprocmask

71 usleep

71 nanosleep

71 mach_wait_until

71 mach_wait_until

1 -[NSRecursiveLock tryLock]

1 pthread_mutex_unlock

1 pthread_mutex_unlock

1 objc_msgSend

1 objc_msgSend

1 pthread_cond_signal

1 pthread_cond_signal

1 irc_get_mask

1 irc_get_mask

5244 Thread_6603

5244 _pthread_body

5244 forkThreadForFunction

5244 +[MVIRCChatConnection(MVIRCChatConnectionPrivate) _irssiRunLoop]

5244 -[NSRunLoop runMode:beforeDate:]

5244 CFRunLoopRunSpecific

5244 CFRunLoopRun

5241 mach_msg

5241 mach_msg_trap

5241 mach_msg_trap

3 CFRunLoopDoTimer

2 irssiRunCallback

2 g_main_iterate

1 g_get_current_time

1 gettimeofday

1 gettimeofday

1 gettimeofday

1 g_main_poll

1 malloc

1 malloc

1 dyld_stub_OSSpinLockUnlock

1 dyld_stub_OSSpinLockUnlock

5244 Thread_6703

5244 _pthread_body

5244 forkThreadForFunction

5244 +_syncLoop:?

5244 -[NSRunLoop run]

5244 -[NSRunLoop runMode:beforeDate:]

5244 CFRunLoopRunSpecific

5244 CFRunLoopRun

5244 mach_msg

5244 mach_msg_trap

5244 mach_msg_trap

5244 Thread_6803

5244 _pthread_body

5244 CAPThread::Entry(CAPThread*)

5244 HALRunLoop::OwnThread?(void*)

5244 CFRunLoopRunSpecific

5244 CFRunLoopRun

5244 mach_msg

5244 mach_msg_trap

5244 mach_msg_trap

5244 Thread_6903

5244 _pthread_body

5244 forkThreadForFunction

5244 -[NSUIHeartBeat _heartBeatThread:]

5244 -[NSConditionLock lockWhenCondition:]

5244 pthread_cond_wait

5244 semaphore_wait_signal_trap

5244 semaphore_wait_signal_trap

5244 Thread_6a03

5244 _pthread_body

5244 forkThreadForFunction

5244 -[MVSILCChatConnection(MVSILCChatConnectionPrivate) _silcRunloop]

5189 silc_schedule_one

5189 silc_select

5189 select

5189 select

54 usleep

54 nanosleep

54 mach_wait_until

54 mach_wait_until

1 silc_mutex_lock

1 silc_mutex_lock

Total number in stack (recursive counted multiple, when >=5):

9 _pthread_body
7 forkThreadForFunction
5 CFRunLoopRunSpecific
5 CFRunLoopRun
5 mach_msg
5 mach_msg_trap

Sort by top of stack, same collapsed (when >= 5):

mach_msg_trap 26217
select 15601
mach_wait_until 5363
semaphore_wait_signal_trap 5244
operator new(unsigned long) 5

Change History (1)

comment:1 Changed 13 years ago by rinoa

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

No longer an issue in Beta r3264.

Note: See TracTickets for help on using tickets.