Re: How do I debug weak_unregister_no_lock?
Re: How do I debug weak_unregister_no_lock?
- Subject: Re: How do I debug weak_unregister_no_lock?
- From: Gideon King <email@hidden>
- Date: Wed, 15 Jan 2014 18:14:04 +1000
OK, I have a single pane inspector which chains to another single pane inspector using pushPane. For this one particular pane, sometimes when we pop back to the parent, it gave the error.
I tried putting a dealloc in my class and nilling out everything, but still got the problem. I then added
self.inspector = nil;
self.parentSlice = nil;
to my dealloc, and since then I have not been able to reproduce the problem at all.
I have created a number of subclasses of OUISingleViewInspectorPane but it is only this particular one that triggers the problem.
I don’t know if you want to create a dealloc method for OUIInspectorPane which nils those two references… It would obviously be better to know the cause and fix it, but in the absence of that, perhaps this will fix the issue for everyone.
Regards
Gideon
On 15 Jan 2014, at 5:56 pm, Kyle Sluder <email@hidden> wrote:
> On Jan 14, 2014, at 9:05 PM, Quincey Morris <email@hidden> wrote:
>>
>>> On Jan 14, 2014, at 18:34 , Gideon King <email@hidden> wrote:
>>>
>>> Although it is always happening at the same point in the code, I really have no idea where to look for debugging it.
>>
>> I have no answers, but a couple of observations.
>>
>> First, you seem to be crashing in the dealloc (or destructor, if it’s a C++ class) of class OUIInspectorPane. I’d suggest you focus on properties of that class whose value is a weak object reference.
>
> Gah. We tried _so hard_ to find this bug before shipping our iOS 7 apps. We still have no idea what causes it, but it always seems to happen in the ARC-generated autodestructor of an OUIInspectorPane.
>
> Can you describe the contents of your inspectors? For a while we had a hunch it involved some OmniOutliner-specific piece of UI.
_______________________________________________
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