Adium

Opened 15 years ago

Closed 15 years ago

#1980 closed defect (fixed)

Beachball on startup; never connects

Reported by: iansmith@gmail.com Owned by: evands
Milestone: Adium X 1.0 Component: None
Version: Severity: normal
Keywords: Cc:
Patch Status:

Description (last modified by Zachary West)

Not sure why it happened. Jabber may be involved, as I'm told my Jabber away message didn't go away when I set my status to available again.

Below is a sample:

Analysis of sampling pid 25224 every 10.000000 milliseconds
Call graph:
    284 Thread_100f
      284 start
        284 _start
          284 NSApplicationMain
            284 -[NSApplication run]
              284 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
                284 _DPSNextEvent
                  284 AEProcessAppleEvent
                    284 aeProcessAppleEvent
                      284 dispatchEventAndSendReply(AEDesc const*, AEDesc*)
                        284 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
                          284 _NSAppleEventManagerGenericHandler
                            284 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
                              284 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
                                284 -[NSApplication(NSAppleEventHandling) _handleAEOpen:]
                                  284 -[NSApplication _sendFinishLaunchingNotification]
                                    284 -[NSApplication _postDidFinishNotification]
                                      284 -[NSNotificationCenter postNotificationName:object:userInfo:]
                                        284 _CFXNotificationPostNotification
                                          284 __CFXNotificationPost
                                            284 _nsnote_callback
                                              284 -[NSNotificationCenter postNotificationName:object:userInfo:]
                                                284 _CFXNotificationPostNotification
                                                  284 __CFXNotificationPost
                                                    284 _nsnote_callback
                                                      284 -[ESAccountNetworkConnectivityPlugin adiumFinishedLaunching:]
                                                        284 -[AIPreferenceController informObserversOfChangedKey:inGroup:object:]
                                                          284 -[CBGaimAccount preferencesChangedForGroup:key:object:preferenceDict:firstTime:]
                                                            284 -[CBGaimAccount updateStatusForKey:]
                                                              284 -[CBGaimAccount connect]
                                                                284 -[CBGaimAccount finishCreateNewGaimAccount]
                                                                  284 +[SLGaimCocoaAdapter sharedInstance]
                                                                    284 -[NSLock lock]
                                                                      284 pthread_mutex_lock
                                                                        284 semaphore_wait_signal_trap
                                                                          284 semaphore_wait_signal_trap
    284 Thread_1103
      284 _pthread_body
        284 forkThreadForFunction
          284 +[SLGaimCocoaAdapter _createThreadedGaimCocoaAdapter]
            284 -[SLGaimCocoaAdapter init]
              284 -[SLGaimCocoaAdapter initLibGaim]
                284 gaim_core_init
                  284 adiumGaimCoreUiInit
                    284 initGaimOTRSupprt
                      284 -[NSObject(RunLoopMessenger) mainPerformSelector:returnValue:]
                        284 -[NSObject(NSMainThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:]
                          284 -[NSObject(NSMainThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:modes:]
                            284 -[NSConditionLock lock]
                              284 pthread_cond_wait
                                284 semaphore_wait_signal_trap
                                  284 semaphore_wait_signal_trap
    284 Thread_1203
      284 _pthread_body
        284 forkThreadForFunction
          284 -[AWBonjourAccount prepareBonjourThread]
            284 CFRunLoopRun
              284 CFRunLoopRunSpecific
                284 __CFRunLoopRun
                  284 mach_msg
                    284 mach_msg_trap
                      284 mach_msg_trap
    284 Thread_1303
      284 _pthread_body
        284 _backgroundActivity
          284 accept
            284 accept

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

Sort by top of stack, same collapsed (when >= 5):
        semaphore_wait_signal_trap        568
        accept        284
        mach_msg_trap        284
Sample analysis of process 25224 written to file /dev/stdout
Sampling process 25224 each 10 msecs 300 times

Change History (4)

comment:1 Changed 15 years ago by Zachary West

Description: modified (diff)
Version: 0.85

comment:2 Changed 15 years ago by Chris Forsythe

field_haspatch: 0
Milestone: Adium X 1.0

comment:3 Changed 15 years ago by Evan Schoenberg

Owner: changed from nobody to Evan Schoenberg
Status: newassigned

comment:4 Changed 15 years ago by Evan Schoenberg

Resolution: fixed
Status: assignedclosed

(In [14335]) Fixed a potential threadlock at launch, I believe. Wants for more testing, and the threadlock is rare, so I'm not going to backport it. Fixes #1980

Note: See TracTickets for help on using tickets.