• 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: "Aron Nopanen" <email@hidden>
  • Date: Tue, 5 May 2009 12:55:15 +1200

On Jul 31, 2008, at 10:40 PM, Andrew Pontious wrote:
> On Jul 31, 2008, at 9:34 PM, Larry Emdur wrote:
>> On Thu, Jul 31, 2008 at 3:49 AM, Aaron Burghardt <email@hidden> wrote:
>>> On Jul 30, 2008, at 10:03 PM, Larry Emdur wrote:
>...
>>> Do any of the kpi_interface.h files hang if you stat them in Terminal?
Such as:
>>>
>>> $ for file in `locate kpi_interface.h` ; do stat $file ; done
>>
>> No, its practically instant when I run that command
>>
>>> If you don't have a "locate" database, just stat each version on the
command line.
>>> Do the files open quickly in apps other than Xcode?
>> I just ran open <FILE> on all the files listed in locate, and they all
opened
>> instantly.
>>
>> Following Mike's advice, another interesting thing is that if I
>> disconnect from the network, I dont see the problem! In this
>> situation, fs_usage gives me:
>>
>> lstat    net/kpi_interfacefilter.h       0.003654 W Xcode
>>
>> Laz
>
> That's very interesting! Thanks for the info. I appreciate you doing these
> investigations for us.
>
> Sorry if you said this already, but does this happen if you reboot and try
again?
> -- Andrew

To add my findings to this long-ago conversation:

I've been having the same problem; i.e., Xcode sometimes hangs for long
periods of time, and Activity Monitor / fs_usage show that certain calls to
'lstat' are taking a very long time (1 minute).

All of the 'problem' lstat calls are for relative paths beginning with
'net/', such as 'net/base' or 'net/url_request'.

It appears that Xcode is making these lstat calls with a working directory
of '/', such that this resolves to an lstat request for '/net/base' or
'/net/url_request'. As I understand the /net filesystem, OS X will attempt
to locate a host with the name 'base' or 'url_request' and mount a remote
filesystem under /net.

In any case, this results in a DNS request being sent for host 'base' or
'url_request'. The DNS relay on my horrible, useless DLink router responds
to this with a 'server error' after a delay of about 10 seconds. These DNS
delays appear to be the cause of the lstat delays. I've verified this
behavior using a simple test program that makes an analogous call to lstat.

As for Laz above, disconnecting from the network is a workaround for the
problem.

While my DNS relay is contributing to the problem, I consider this a an
Xcode bug, and I'll probably raise it with Apple.

-Aron

 _______________________________________________
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: Andrew Pontious <email@hidden>
  • Prev by Date: A good book to learn cocoa in xcode 3.2.1
  • Next by Date: Re: Can't set breakpoint in library
  • Previous by thread: Re: A good book to learn cocoa in xcode 3.2.1
  • Next by thread: Re: XCode 3.1 frequently hangs
  • Index(es):
    • Date
    • Thread