• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode uses 100% of cpu while debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode uses 100% of cpu while debugging


  • Subject: Re: Xcode uses 100% of cpu while debugging
  • From: Walter <email@hidden>
  • Date: Thu, 20 Sep 2007 03:51:23 -0400
  • Thread-topic: Xcode uses 100% of cpu while debugging

The "sacrificial virgin" account didn't help.  Moving to another machine
gave the same results.

Here is the sampling of Xcode while the cpu is pegged at 100%:

Analysis of sampling pid 6872 every 10.000000 milliseconds
Call graph:
    1000 Thread_0f07
      1000 0xa3b9
        1000 0xa492
          1000 NSApplicationMain
            1000 -[NSApplication run]
              1000 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
                1000 _DPSNextEvent
                  1000 BlockUntilNextEventMatchingListInMode
                    1000 ReceiveNextEventCommon
                      1000 RunCurrentEventLoopInMode
                        1000 CFRunLoopRunInMode
                          1000 CFRunLoopRunSpecific
                            1000 _performFileHandleSource
                              1000 -[NSNotificationCenter
postNotificationName:object:userInfo:]
                                1000 _CFXNotificationPostNotification
                                  1000 __CFXNotificationPost
                                    1000 _nsnote_callback
                                      999 -[PBXTSTask
fileActivityNotification:]
                                        999 -[PBXTSByteStream sendBytes:]
                                          999 -[PBXTSUTF8BufferFilter
stream:processBytes:]
                                            999 -[PBXTSByteStream
sendBytes:]
                                              999 -[PBXTSUTF8DecoderFilter
stream:processBytes:]
                                                999 -[PBXTSCharacterStream
sendCharacters:]
                                                  999
-[PBXTSLineBufferFilter stream:processCharacters:]
                                                    994
CFStringGetLineBounds
                                                      676
__CFStrConvertBytesToUnicode
                                                        676
__CFStrConvertBytesToUnicode
                                                      241
CFStringGetLineBounds
                                                      71
CFStringGetCharacters
                                                        71
CFStringGetCharacters
                                                      6
__i686.get_pc_thunk.bx
                                                        6
__i686.get_pc_thunk.bx
                                                    3 CFStringGetCharacters
                                                      3
CFStringGetCharacters
                                                    2
__CFStrConvertBytesToUnicode
                                                      2
__CFStrConvertBytesToUnicode
                                      1 -[NSConcreteFileHandle
readInBackgroundAndNotifyForModes:]
                                        1 -[NSConcreteFileHandle
performActivity:modes:]
                                          1 _NSStartSimpleThread
                                            1 pthread_create
                                              1 _pthread_setup
                                                1 thread_create_running
                                                  1 mach_msg_trap
                                                    1 mach_msg_trap
    1000 Thread_1003
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:]
            1000 semaphore_wait_signal_trap
              1000 semaphore_wait_signal_trap
    1000 Thread_1103
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 -[NSUIHeartBeat _heartBeatThread:]
            1000 -[NSConditionLock lockWhenCondition:]
              1000 semaphore_wait_signal_trap
                1000 semaphore_wait_signal_trap
    1000 Thread_1203
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 -[XCInvocationQueue _processInvocationsInThreadSlotNumber:]
            1000 semaphore_wait_signal_trap
              1000 semaphore_wait_signal_trap
    1000 Thread_1303
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 +[PBXRunSessionModule _startCrashCatchingServiceThread]
            1000 mach_msg_trap
              1000 mach_msg_trap
    1000 Thread_1403
      1000 _pthread_body
        1000 PrivateMPEntryPoint
          1000 kevent
            1000 kevent
    1000 Thread_1503
      1000 _pthread_body
        1000 PrivateMPEntryPoint
          1000 TNodeSyncTask::SyncTaskProc(void*)
            1000 MPWaitOnQueue
              1000 semaphore_wait_signal_trap
                1000 semaphore_wait_signal_trap
    1000 Thread_1603
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 -[PBXTSTask _backgroundWriteThread:]
            1000 -[NSConditionLock lockWhenCondition:]
              1000 semaphore_wait_signal_trap
                1000 semaphore_wait_signal_trap
    1000 Thread_1703
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 select
            1000 select
    1000 Thread_1803
      1000 _pthread_body
        1000 wait4
          1000 wait4
    1000 Thread_1903
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 -[PBXTSTask _backgroundWriteThread:]
            1000 -[NSConditionLock lockWhenCondition:]
              1000 semaphore_wait_signal_trap
                1000 semaphore_wait_signal_trap
    1000 Thread_1a03
      1000 _pthread_body
        1000 forkThreadForFunction
          1000 select
            1000 select
    1000 Thread_1b03
      1000 _pthread_body
        1000 wait4
          1000 wait4
    1000 Thread_1c03
      1000 _pthread_body
        1000 read
          1000 read
    1 Thread_1d03
      1 swtch_pri
        1 swtch_pri
    1 Thread_1e03
      1 swtch_pri
        1 swtch_pri

Total number in stack (recursive counted multiple, when >=5):
        13       _pthread_body
        8       forkThreadForFunction
        6       semaphore_wait_signal_trap

Sort by top of stack, same collapsed (when >= 5):
        semaphore_wait_signal_trap        6000
        select        2000
        wait4        2000
        mach_msg_trap        1001
        kevent        1000
        read        1000
        __CFStrConvertBytesToUnicode        678
        CFStringGetLineBounds        241
        CFStringGetCharacters        74
        __i686.get_pc_thunk.bx        6


On 9/15/07 3:38 PM, "Greg Guerin" <email@hidden> wrote:

> Walter wrote:
>
>> At first I thought it might be the data formatters, but I now have the data
>> formatters disabled and it still happens.
>>
>> I'm using Xcode 2.4.1, but I've had this issue for quite a few versions.
>> Usually I revert to printfs and don't bother setting breakpoints, but that
>> method of debugging is wearing thin.
>
> Try a sacrificial virgin:
>   <http://lists.apple.com/archives/xcode-users/2007/Mar/msg00185.html>
>
> If that doesn't tell you anything, use Activity Monitor.app, double-click
> the all-consuming process in its list, and Sample it.  Then post the
> findings to the list.
>
> For more info on sampling, see 'man sample'.
>
>   -- GG
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Xcode uses 100% of cpu while debugging (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Build failure
  • Next by Date: Re: Build failure
  • Previous by thread: Re: Xcode uses 100% of cpu while debugging
  • Next by thread: Re: Xcode uses 100% of cpu while debugging
  • Index(es):
    • Date
    • Thread