• 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: App never reaches applicationDidFinishLaunching method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App never reaches applicationDidFinishLaunching method


  • Subject: Re: App never reaches applicationDidFinishLaunching method
  • From: Livio Isaia <email@hidden>
  • Date: Wed, 02 Oct 2013 16:51:50 +0200

Il giorno 02/ott/2013, alle ore 05:39, Jens Alfke <email@hidden> ha scritto:

>
> On Oct 1, 2013, at 5:47 PM, Livio Isaia <email@hidden> wrote:
>
>> I mean that it reaches the awakeFromNib method of AppDelegate class and then seems to remain in
>> NSApplicationMain -> [NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] -> libobjc.A.dylib`objc_msgSend:
>> without reaching the applicationDidFinishLaunching method of AppDelegate.
>> I doesn't crash nor show any error message. It just continues looping…!
>
> Any kind of crash/hang in objc_msgSend means something is calling an invalid object pointer, and nearly always it’s because the object was unexpectedly dealloced. The first thing to try is Enable Zombie Objects; this should identify what object got dealloced.
>
> —Jens

Thanks Jens,
the problem was in the nib file: a NSMatrix had a size of 40000! The fact is that I never changed that size, and it happen to change itself again after I reset it...
Anyway, after I fixed that problem, the compiler gives me other crashes (EXC BAD ACCESS) in other parts of the app if I run it with "Activate Breakpoints" (and doesn't with "Deactivate Breakpoints"!).

I find this a very strange behavior.

I must say that I updated Xcode from 4 to 5: does it matter?

Thank you.
Regards,
livio.

_______________________________________________

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: App never reaches applicationDidFinishLaunching method
      • From: Lee Ann Rucker <email@hidden>
    • Re: App never reaches applicationDidFinishLaunching method
      • From: Dave <email@hidden>
References: 
 >App never reaches applicationDidFinishLaunching method (From: Livio Isaia <email@hidden>)
 >Re: App never reaches applicationDidFinishLaunching method (From: Jens Alfke <email@hidden>)

  • Prev by Date: Window too large for Versions Browser
  • Next by Date: Re: Window too large for Versions Browser
  • Previous by thread: Re: App never reaches applicationDidFinishLaunching method
  • Next by thread: Re: App never reaches applicationDidFinishLaunching method
  • Index(es):
    • Date
    • Thread