Opened 12 years ago

Closed 12 years ago

#400 closed Defect (Works for Me)

Colloquy is chewing up 10% of my CPU doing nothing?

Reported by: Eric Seidel <colloquy@…> Owned by: timothy
Component: Colloquy (Mac) Version: 2.2 (Mac)
Severity: Normal Keywords:
Cc:

Description

Colloquy is chewing up 10% of my CPU doing nothing?

Sample attached:

Analysis of sampling pid 3169 every 10.000000 milliseconds
Call graph:
    387 Thread_0f1f
      387 start
        387 _start
          387 main
            387 NSApplicationMain
              387 -[NSApplication run]
                387 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
                  387 _DPSNextEvent
                    387 BlockUntilNextEventMatchingListInMode
                      387 ReceiveNextEventCommon
                        387 RunCurrentEventLoopInMode
                          387 CFRunLoopRunSpecific
                            387 __CFRunLoopRun
                              387 mach_msg
                                387 mach_msg_trap
                                  387 mach_msg_trap
    387 Thread_1003
      387 _pthread_body
        387 forkThreadForFunction
          387 +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:]
            387 CFRunLoopRunSpecific
              387 __CFRunLoopRun
                387 mach_msg
                  387 mach_msg_trap
                    387 mach_msg_trap
    387 Thread_1103
      387 _pthread_body
        387 __CFSocketManager
          387 select
            387 select
    387 Thread_1203
      387 _pthread_body
        387 forkThreadForFunction
          387 +[NSURLCache _diskCacheSyncLoop:]
            387 CFRunLoopRunSpecific
              387 __CFRunLoopRun
                387 mach_msg
                  387 mach_msg_trap
                    387 mach_msg_trap
    387 Thread_1303
      387 _pthread_body
        387 forkThreadForFunction
          379 +[MVIRCChatConnection(MVIRCChatConnectionPrivate) _irssiRunLoop]
            321 g_main_iterate
              193 poll
                193 poll
              44 g_main_iterate
              40 g_hook_next_valid
                22 g_hook_next_valid
                10 g_hook_ref
                  10 g_hook_ref
                8 g_hook_unref
                  8 g_hook_unref
              13 g_get_current_time
                12 gettimeofday
                  8 __gettimeofday
                    8 __gettimeofday
                  2 dyld_stub___commpage_gettimeofday
                    2 dyld_stub___commpage_gettimeofday
                  1 __commpage_gettimeofday
                    1 __commpage_gettimeofday
                  1 gettimeofday
                1 g_get_current_time
              7 g_timeout_check
                7 g_timeout_check
              7 g_timeout_prepare
                7 g_timeout_prepare
              4 g_hook_unref
                4 g_hook_unref
              4 g_malloc
                4 malloc
                  2 malloc
                  2 szone_malloc
                    2 szone_malloc
              3 free
                2 szone_size
                  2 szone_size
                1 free
              3 szone_free
                3 szone_free
              2 __stub_getrealaddr
                2 __stub_getrealaddr
              1 g_hook_first_valid
                1 g_hook_ref
                  1 g_hook_ref
            30 NSPopAutoreleasePool
              15 NSPopAutoreleasePool
              6 _NSAddHandler2
                3 _NSAddHandler2
                3 _NSCurrentThread
                  2 __pthread_getspecific
                    2 __pthread_getspecific
                  1 _NSCurrentThread
              5 _NSCurrentThread
                5 __pthread_getspecific
                  5 __pthread_getspecific
              1 __kCFAllocatorSystemDefault
                1 _NSRemoveHandler2
                  1 _NSRemoveHandler2
              1 _setjmp
                1 _setjmp
              1 dyld_stub_objc_exception_try_exit
                1 dyld_stub_objc_exception_try_exit
              1 objc_collecting_enabled
                1 objc_collecting_enabled
            9 g_hook_next_valid
              9 g_hook_next_valid
            6 -[NSAutoreleasePool initWithCapacity:]
              3 NSPushAutoreleasePool
                3 _NSCurrentThread
                  3 __pthread_getspecific
                    3 __pthread_getspecific
              2 _NSCurrentThread
                2 __pthread_getspecific
                  2 __pthread_getspecific
              1 -[NSAutoreleasePool initWithCapacity:]
            6 free
              6 free
            2 +[NSAutoreleasePool allocWithZone:]
              2 _NSCurrentThread
                1 __pthread_getspecific
                  1 __pthread_getspecific
                1 dyld_stub_pthread_getspecific
                  1 dyld_stub_pthread_getspecific
            2 objc_msgSend
              2 objc_msgSend
            1 objc_exception_try_enter
              1 objc_exception_try_enter
            1 restFP
              1 restFP
            1 szone_free
              1 szone_free
          4 NSPopAutoreleasePool
            2 NSPopAutoreleasePool
            2 restFP
              2 restFP
          1 +[NSAutoreleasePool allocWithZone:]
            1 +[NSAutoreleasePool allocWithZone:]
          1 -[NSAutoreleasePool initWithCapacity:]
            1 -[NSAutoreleasePool initWithCapacity:]
          1 __stub_getrealaddr
            1 __stub_getrealaddr
          1 g_main_iterate
            1 g_main_iterate
    387 Thread_1403
      387 _pthread_body
        387 forkThreadForFunction
          387 +[WebFileDatabase _syncLoop:]
            387 -[NSRunLoop run]
              387 -[NSRunLoop runMode:beforeDate:]
                387 CFRunLoopRunSpecific
                  387 __CFRunLoopRun
                    387 mach_msg
                      387 mach_msg_trap
                        387 mach_msg_trap
    387 Thread_1503
      387 _pthread_body
        387 CAPThread::Entry(CAPThread*)
          387 HALRunLoop::OwnThread(void*)
            387 CFRunLoopRunSpecific
              387 __CFRunLoopRun
                387 mach_msg
                  387 mach_msg_trap
                    387 mach_msg_trap

Total number in stack (recursive counted multiple, when >=5):
        6       _pthread_body
        5       CFRunLoopRunSpecific
        5       _NSCurrentThread
        5       __CFRunLoopRun
        5       __pthread_getspecific
        5       mach_msg
        5       mach_msg_trap

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        1935
        select        387
        poll        193
        g_main_iterate        45
        g_hook_next_valid        31
        NSPopAutoreleasePool        17
        __pthread_getspecific        13
        g_hook_unref        12
        g_hook_ref        11
        __gettimeofday        8
        free        7
        g_timeout_check        7
        g_timeout_prepare        7

Change History (1)

comment:1 Changed 12 years ago by timothy

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

THis was also a bug of the old networking code (polling). No longer a problem. Please try with the 3/12 nightly. Reopen if this issue still occurs.

Note: See TracTickets for help on using tickets.