Stream problems/too many open files
Stream problems/too many open files
- Subject: Stream problems/too many open files
- From: "Martin Redington" <email@hidden>
- Date: Fri, 16 May 2008 17:53:04 +0100
I'm having some strange problems with Xcode 3.1 and Xcode 2.5 on Leopard.
These seem to be related.
These may also be related to an issue I thought I'd posted about here
previously (although I might not have done).
Basically, my original problem was that, when running my app from
Xcode, writes to stderr were either throwing exceptions, or going to
the console log, instead of the Xcode Console (3.1)/Run Log (2.5).
Recently, with no apparent trigger, the symptoms have changed as follows:
On Xcode 2.5, writes to stderr seem to generate an Xcode alert with
the following message:
====
File: /SourceCache/DevToolsIDE/DevToolsIDE-799/pbxinterface/Debugger.subproj/PBXLSExecutableLauncher.m
Line: 446
Object: <PBXLSExecutableLauncher:0x0c336160>
Method: task:outputData:
received data from task but expecting it to be on a stream!
====
I also seem to be getting the message something like:
Xcode has detected too many open files, and may be unstable.
On Xcode 3.1, I only see this latter alert - I don't get the "received
data from task, but expected it to be on a stream one"
I'm pretty certain that my logging code is what's triggering this. It
writes to a log file unless a certain environment variable is set,
when it writes to stderr, so that I can see the log messages easily in
Xcode's run log.
The standard error filehandle is retrieved via
NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardError];
In the Xcode 3.1 case, and indeed some of the 2.5 code, that logging
code isn't in use, and the stderr writes are just normal NSLog calls.
I've tried deleting my preferences, but that seems to have had no effect.
--
http://www.mildmanneredindustries.com/
_______________________________________________
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