• 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: Strange app crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange app crash


  • Subject: Re: Strange app crash
  • From: Roland King <email@hidden>
  • Date: Sat, 02 Jan 2016 11:20:42 +0800

> On 2 Jan 2016, at 10:54, SevenBits <email@hidden> wrote:
>
> Okay, I reproduced the error. Setting an exception breakpoint didn’t help; the app crashes anyway, leading me to believe that the problem either a) is not an uncaught exception or b) it is an exception, but occurs before the ObjC runtime is initialized.
>
> I’ve run the app outside of Xcode and got the following crash report:
>
> https://gist.github.com/SevenBits/dfff392c19f0332d81ef
>

well it’s not a) because it is an uncaught exception, you can see that because it has the word exception all over the crash logs and it’s not been caught
and b) is meaningless

So what do you know - that it’s sending respondsToSelector() to something which isn’t an object. So usual things, turn on NSZombies, turn on the address sanitizer, whatever else you can find on that options page which looks handy. Address sanitizer is new, I haven’t used it, but I’ve heard wonderful things about it. GuardMalloc too if you like. The crash is so early you may as well just turn on the lot.

I’d also try stuffing it through instruments to see if I can work out which bits of my code have already been run by the time it gets here. It’s unpacked the NIB, made windows, views too, so it’s run some stuff.

Start with those. You could breakpoint in NSApplication updateWindows and poke around your threads see what else may be going on, not sure I’d go right there however. Would be interesting to see what selector it’s asking something whether it responds to.




_______________________________________________

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


References: 
 >Re: Strange app crash (From: Roland King <email@hidden>)

  • Prev by Date: Re: Strange app crash
  • Next by Date: Re: Strange app crash
  • Previous by thread: Re: Strange app crash
  • Next by thread: Re: Strange app crash
  • Index(es):
    • Date
    • Thread