|
From: Adam R. M. <ama...@ma...> - 2006-06-04 01:44:36
|
On Jun 3, 2006, at 17:33, coder wrote:
>
> Le 3 juin 06 =E0 19:33, Adam R. Maxwell a =E9crit :
>
>> I've been using the latest iTM2 at work (now that syntax highlighting
>> prefs stick!), and so far I like the new project mechanism. One
>> thing I've noticed is that the thread count in Activity Monitor
>> increases if I use the "Stop" button on the toolbar (usually the
>> typeset button) to stop a failed compile. If I use the exit button
>> on the console window, the thread count goes down properly.
>
> I do not experience this actually, but I might have not fallen into
> the expected situation.
> I am running 10.4.6 on intel
It was quite reproducible on my dual 1.8 G5 at work. I can't even =20
open or create a new project document on my G4 PowerBook at home, =20
though, which is very strange. I get a beachball with the following =20
sample snippet (until it runs out of memory). This is with iTM2p13.
Analysis of sampling pid 5185 every 10.000000 milliseconds
Call graph:
286 Thread_0f07
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
286 -[iTM2PDocumentController =20
openDocumentWithContentsOfURL:display:error:]
> AFAIR, this was a problem a long time ago and Gerben added some code
> to TeXShop to remove the tasks not killed...
NSTask and threads don't play well together, unfortunately...we use a =20=
threadsafe task wrapper and message queue in BibDesk for its TeX =20
preview, which helped quite a bit.
>
>> I'd look at this myself, but I can't get iTM2 to compile properly
>> from source. For BibDesk, I have Xcode prefs set up to use a
>> customized location for build products and intermediate products, so
>> a) we don't pollute the source tree b) no paths are hard-coded, and
>> c) frameworks are found without changing search paths. However, that
>> breaks the assumption of ../build that's made in all the iTM2
>> subprojects. I think an xcconfig could be used to work around this,
>> but haven't had time to look at it.
>
> While migrated from powerpc to intel, I certainly had to change some
> settings because the path did change...
> Now it should work by double clicking the apropriate script.
> However, I wish I had known about .xcconfig files long before, it
> would have saved me so much time while trying to setup the various
> projects... I should investigate this further when I have some time.
I tried the build scripts, but ended up with build products in my ~/=20
BuildProducts directory, so linking failed early on. The Omni =20
frameworks use xcconfig files pretty heavily, so I might take a look =20
at their build script.
-- adam
|