• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to debug crash in NSOperation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug crash in NSOperation?


  • Subject: Re: How to debug crash in NSOperation?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 27 Mar 2017 20:32:22 -0700

> On Mar 27, 2017, at 8:25 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
>
>
> Sent from my iPhone
>
> On 27 Mar 2017, at 23:37, Jens Alfke <email@hidden <mailto:email@hidden>> wrote:
>
>>
>>> On Mar 26, 2017, at 10:04 PM, Gerriet M. Denkmann <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> Yes, you are right. And I have to apologise for not spotting this:
>>>
>>> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: SortedKeys.plist)'
>>
>> I recommend always having an exception breakpoint set, to catch things like this.
>
> This same error occurred twice within 250 days. Running the code for about a year in Xcode is really not feasible.

But when it did occur, it was hard to figure out what was going on, right? So if you have the breakpoint already there, then instead of crashing you stop at the breakpoint, which is much easier to debug.

> If no race condition (and I agree that there should be none) what else could be causing this?

Dunno. It’s somewhere inside Foundation code. If you have the backtrace, looking at the method names can be a clue sometimes.

—Jens

_______________________________________________

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


  • Follow-Ups:
    • Re: How to debug crash in NSOperation?
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >How to debug crash in NSOperation? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to debug crash in NSOperation? (From: Ken Thomases <email@hidden>)
 >Re: How to debug crash in NSOperation? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to debug crash in NSOperation? (From: Jens Alfke <email@hidden>)
 >Re: How to debug crash in NSOperation? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: How to debug crash in NSOperation?
  • Next by Date: New iTunes visual plugin SDK?
  • Previous by thread: Re: How to debug crash in NSOperation?
  • Next by thread: Re: How to debug crash in NSOperation?
  • Index(es):
    • Date
    • Thread