Re: Compiling GC apps under OS X 10.8
Re: Compiling GC apps under OS X 10.8
- Subject: Re: Compiling GC apps under OS X 10.8
- From: Shane Stanley <email@hidden>
- Date: Tue, 02 Oct 2012 09:29:08 +1000
On 02/10/2012, at 2:48 AM, Sean McBride <email@hidden> wrote:
>> I have a GC app with a deployment version of 10.6. If I compile it in
>> 4.5 under OS X 10.8, using either 10.8 or 10.7 SDK, and run the
>> resulting app in OS X 10.6, I gets lots of this sort of error:
>>
>> objc[201]: GC: 0x10029cf20 + 24 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>> objc[201]: GC: 0x10029cf20 + 8 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>> objc[201]: GC: 0x10029cf20 + 64 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>> objc[201]: GC: 0x10029cf20 + 72 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>> objc[201]: GC: 0x100290670 + 48 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>> objc[201]: GC: 0x103592630 + 48 isn't in the auto_zone, break on
>> objc_assign_ivar_error to debug.
>>
>> It also occurs under 10.7, although less often and less predictably.
>
> I believe I've seen them too (though am in 10.7 right now). I just brushed them off as harmless warnings... do you think they are more than that?
I had been assuming they are, given that they often coincide with other glitches and crashes. I've run very simple apps that generate them repeatedly, and they seem to crash after a while -- but I might well be mis-attributing the cause. And in some cases they coincide with glitches (eg, text entered in a table cell disappearing on tab/enter). The only reference I can find in searching is a similar message accompanying crashes in Growl.
(I am getting other crashes, too. Showing a save or open panel, or using threaded animation with a progress bar, generates the [NSImage _allocAuxiliaryStorage] + 158 / -[NSImage copyWithZone:] + 66 crash others have reported here, and also disappears in 32-bit mode.)
>
>> Or should I just give up on compiling GC stuff under Xcode versions
>> later than 4.3.3, and therefore 10.8?
>
> Clearly moving to ARC is in order... but it's no small task to just totally change an applications's memory model out from underneath it... :(
I wish. Unfortunately the changes in 10.8 mean any app that uses ARC and AppleScriptObjC is effectively a 10.8-only app. Not the solution to backwards compatibility I'm after.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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