• 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.1 frequently hangs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 3.1 frequently hangs


  • Subject: Re: XCode 3.1 frequently hangs
  • From: "Larry Emdur" <email@hidden>
  • Date: Wed, 30 Jul 2008 19:03:32 -0700

On Wed, Jul 30, 2008 at 11:56 AM, Andrew Pontious <email@hidden> wrote:
>
> On Jul 30, 2008, at 3:42 AM, Aaron Burghardt wrote:
>
>> Before you uninstall/reinstall, I have another suggestion.  Since it is
>> hanging on an lstat() call, it appears to be an issue that can be diagnosed
>> at the file system level.  Try using fs_usage to determine the path that is
>> the problem, using my Terminal example below.  WIth fs_usage running,
>> recreate the symptom.  When Xcode hangs, go back to the Terminal window and
>> see what the last file path is.  Since fs_usage is reporting the amount of
>> time spent in the system call, I expect the lstat() that is causing the hang
>> won't have returned yet.  In that case, the menu command View -> Clear
>> Scrollback will clear the Terminal window, and when the call does return, it
>> should be at the top of the Terminal window buffer.  The last numeric column
>> is the time spent in the system call, so that will help determine which
>> lstat() is the problem.
>>
>> Also, looking at the backtrace, it appears Xcode is indexing the file you
>> just edited.  Can you comment out any single #include and affect the
>> symptom?
>>
>> # Get Xcode's PID
>> $ ps aux | grep Xcode.app
>> aburgh   48965   0.0  4.6   774920 191568   ??  S    Mon09AM  20:33.92
>> /Developer/Applications/Xcode.app/Contents/MacOS/Xcode -psn_0_684199
>> aburgh   58869   0.0  0.0   599780    468 s005  R+    6:01AM   0:00.00
>> grep Xcode.app
>>
>> # Use the PID to limit fs_usage's output
>> $ sudo fs_usage -f filesys 48965 | grep lstat
>> 06:08:10  lstat
>> k/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/usb/IOUSBLib.h
>>    0.000021   Xcode
>> 06:08:10  lstat             /Volumes/test/MyProject/usbtest-Info.plist
>>                                     0.000015   Xcode
>> 06:08:10  lstat             /Volumes/test/MyProject
>>                                      0.000004   Xcode
>> 06:08:10  lstat             sers/aburgh/Desktop/Another USB Notification
>> Example/USBNotificationExample.c    0.000010   Xcode
>> 06:08:10  lstat
>> /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/IOCFPlugIn.h
>>     0.000011   Xcode
>> 06:08:10  lstat
>> /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/IOReturn.h
>>     0.000009   Xcode
>
> This would just be to tell which file was involved, correct? It's true that
> it might tell us something if it's always the same file.
>
> Larry, if you could try this investigation with fs_usage, I would appreciate
> it. We've had reports of this issue, but we've never been able to reproduce
> it under laboratory conditions.
>
> Please email me directly with your findings.
>
> Also, you don't actually need to uninstall 3.1 and to install 3.0. Just
> install 3.0 in a different location, and only install the relocatable
> portion, so that the portions of 3.1 in e.g. /usr/bin don't get overwritten.
> Those pieces aren't needed during normal Xcode operations anyway, since
> Xcode always uses the relocatable versions.

The result of fs_usage showed that it is always the same file:

lstat             net/kpi_interface.h
                           10.154884 W Xcode

All other files are very quick: around 0.000003s
 _______________________________________________
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

  • Follow-Ups:
    • Re: XCode 3.1 frequently hangs
      • From: Aaron Burghardt <email@hidden>
References: 
 >Re: XCode 3.1 frequently hangs (From: Greg Guerin <email@hidden>)
 >Re: XCode 3.1 frequently hangs (From: Larry Emdur <email@hidden>)
 >Re: XCode 3.1 frequently hangs (From: Andrew Pontious <email@hidden>)
 >Re: XCode 3.1 frequently hangs (From: "Larry Emdur" <email@hidden>)
 >Re: XCode 3.1 frequently hangs (From: Aaron Burghardt <email@hidden>)
 >Re: XCode 3.1 frequently hangs (From: Andrew Pontious <email@hidden>)

  • Prev by Date: Re: X-Code 3.0: unable to enable SCM in a project
  • Next by Date: How do you link to a framework?
  • Previous by thread: Re: XCode 3.1 frequently hangs
  • Next by thread: Re: XCode 3.1 frequently hangs
  • Index(es):
    • Date
    • Thread