• 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 3.0 Hangs on Build or Save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 3.0 Hangs on Build or Save


  • Subject: Re: Xcode 3.0 Hangs on Build or Save
  • From: John Stiles <email@hidden>
  • Date: Tue, 19 Feb 2008 09:49:44 -0800

Yup, we see this on a very regular basis as well. I think it's attempting to build its "Code Sense" index on a separate thread but the main thread ends up blocking on it somehow, so you end up waiting with a SPOD until the index is built. For a large app this can be minutes of downtime.

I don't know a workaround, but please file a radar and attach any samples you can get, so Apple will take this issue seriously. In the past I've only heard that they don't have a reproducible case and so AFAIK they are not working on it actively.


Bridger Maxwell wrote:
Perhaps a sampling of the Xcode process will help.  It looks almost exactly
the same every time it freezes.  Also, if this is the wrong place to be
posting this someone tell me and I will stop.
 Thank You,
   Bridger Maxwell

Sampling process 5064 for 3 seconds with 1 millisecond of run time between
samples

Sampling completed, processing symbols...

Analysis of sampling Xcode (pid 5064) every 1 millisecond

Call graph:

    1555 Thread_2503

      1555 0x1fc6

        1555 NSApplicationMain

          1555 -[NSApplication run]

            1555 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]

              1555 _DPSNextEvent

                1555 BlockUntilNextEventMatchingListInMode

                  1555 ReceiveNextEventCommon

                    1555 RunCurrentEventLoopInMode

                      1555 CFRunLoopRunInMode

                        1555 CFRunLoopRunSpecific

                          1555 __CFRunLoopDoObservers

                            1555 -[XCRunLoopMonitor _runLoopWillRun]

                              1555 -[NSConditionLock lockWhenCondition:]

                                1555 -[NSConditionLock
lockWhenCondition:beforeDate:]

                                  1555 -[NSCondition waitUntilDate:]

                                    1555 pthread_cond_timedwait_relative_np

                                      1555 _pthread_cond_wait

                                        1555 semaphore_timedwait_signal_trap

                                          1555
semaphore_timedwait_signal_trap

    1555 Thread_2603

      1555 thread_start

        1555 _pthread_start

          1555 auto_collection_thread(void*)

            1555 pthread_cond_wait$UNIX2003

              1555 __semwait_signal

                1555 __semwait_signal

    1555 Thread_2703

      1555 thread_start

        1555 _pthread_start

          1555 fe_fragment_thread

            1555 pthread_cond_wait$UNIX2003

              1555 __semwait_signal

                1555 __semwait_signal

    1555 Thread_2803

      1555 thread_start

        1555 _pthread_start

          1555 __NSThread__main__

            1555 -[NSThread main]

              1555 -[XCInvocationQueue
_processInvocationsInThreadSlotNumber:]

                1555 pthread_cond_wait$UNIX2003

                  1555 __semwait_signal

                    1555 __semwait_signal

    1555 Thread_2903

      1555 thread_start

        1555 _pthread_start

          1555 __NSThread__main__

            1555 -[NSThread main]

              1555 -[XCInvocationQueue
_processInvocationsInThreadSlotNumber:]

                1555 -[XCInvocationQueue
_processNextInvocationInThreadSlotNumber:]

                  1555 -[NSInvocation invoke]

                    1555 __invoking___

                      1555 -[PBXProjectIndex _indexBackground:]

                        1555 -[PBXDevKitIndexingEngine
indexFileAtAbsolutePath:withSettings:]

                          1555 ObjcParse::ObjcParse(TokenStream*,
ParseErrorStream*, ObjcActions*, int)

                            1555 ObjcParse::nextToken()

                              1555 Cpp::nextToken()

                                1555 Cpp::nextToken0()

                                  1555 Cpp::header(Token*, TokenType)

                                    1555 Cpp::sysStream(char const*,
TokenType, signed char)

                                      1555
PBXIndexCppActions::getSystemPathForHeader(char const*, char*)

                                        1555 -[NSString(TSPathUtilities)
PBX_stringByResolvingSymlinksInPath]

                                          1555 -[NSString(NSPathUtilities)
_stringByResolvingSymlinksInPathUsingCache:]

                                            1555 lstat

                                              1555 lstat

    1555 Thread_2a03

      1555 thread_start

        1555 _pthread_start

          1555 __NSThread__main__

            1555 -[NSThread main]

              1555 -[NSUIHeartBeat _heartBeatThread:]

                1555 -[NSConditionLock lockWhenCondition:]

                  1555 -[NSConditionLock lockWhenCondition:beforeDate:]

                    1555 -[NSCondition waitUntilDate:]

                      1555 pthread_cond_timedwait_relative_np

                        1555 _pthread_cond_wait

                          1555 semaphore_timedwait_signal_trap

                            1555 semaphore_timedwait_signal_trap


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

        5       _pthread_start

        5       thread_start


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

        __semwait_signal        4665

        semaphore_timedwait_signal_trap        3110

        lstat        1555

Sample analysis of process 5064 written to file /dev/stdout


On Feb 17, 2008 9:33 AM, Bridger Maxwell <email@hidden> wrote:

Hello,  Xcode has been hanging so often that it is becoming nearly
impossible for me to work in it.  Every time I save, or build a project, I
get the beachball for about two minutes, in which the Xcode process shows up
as "Not Responding."  The thing that frustrates me is that this never
happened before, but appeared quite suddenly, and I have no idea why.  Also,
it only happens in one of my projects.  Are there any caches or preferences
that I can clear to stop this from happening?  Perhaps I just need to prune
my project directory?  It is a framework used in other projects also, so I
am hesitant to delete the project and then create a new one with the same
source code files, as I may forget a build step or something.  Any help
would be greatly appreciated, as I am on a time crunch for this project.


Thank You, Bridger Maxwell

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Xcode 3.0 Hangs on Build or Save (From: "Bridger Maxwell" <email@hidden>)
 >Re: Xcode 3.0 Hangs on Build or Save (From: "Bridger Maxwell" <email@hidden>)

  • Prev by Date: Re: Scroll an NSTextView to a new place
  • Next by Date: Re: Beep when typing
  • Previous by thread: Re: Xcode 3.0 Hangs on Build or Save
  • Next by thread: Exited abnormally: Broken pipe
  • Index(es):
    • Date
    • Thread