Re: PropertyLocks?: strange exc_bad_access crash
Re: PropertyLocks?: strange exc_bad_access crash
- Subject: Re: PropertyLocks?: strange exc_bad_access crash
- From: Quincey Morris <email@hidden>
- Date: Mon, 9 Aug 2010 12:36:41 -0700
On Aug 9, 2010, at 11:48, James Maxwell wrote:
> Sorry, no, the initWithCoder happens at program launch, in the main thread - nothing fancy there.
You said "It only happens when running a particular function from its saved state (i.e., from initWithCoder)". That "when" and "from" made it sound very much as if you were creating the background thread in initWithCoder. But never mind, that's apparently not what you meant.
The backtrace suggests that either:
a. It's trying to acquire a lock on the 'inputMemory' property of the HSMM_Sequencer object.
b. It's trying to acquire a lock on a property of an object that's in the 'inputMemory' array.
Either way, you likely have one of these problems:
1. Your archive was decoded correctly, but the encode was incorrect.
2. Your archive was decoded incorrectly (or incompletely).
3. You inadvertently have a threading error that destroys an object's internal state, which could relate to any object in the archive.
4. You inadvertently over-released something and therefore have a pure memory management error, which could relate to any object in the archive.
So you have a bit of work to do to pin it down, perhaps by validating your archive more thoroughly somewhere. Nothing but debugging will get you any further with this, I think.
_______________________________________________
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