• 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: Debugging sporadic crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging sporadic crashes


  • Subject: Re: Debugging sporadic crashes
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 7 Jun 2010 23:45:26 +0200

Le 7 juin 2010 à 16:39, Gabriel Zachmann a écrit :

> I have an application with LSBackgroundOnly = on, and LSUIElement = off.
>
> Unfortunately, it crashes occasionally, or, rarely, it just hangs for a minute (with beach ball) then comes back to life.
>
> So far, I have been unable to find a case where this happens deterministically.
>
> So, could you please enlighten me about ways to narrow down the possible places in the code where it crashes or hangs?
>
> For some reason, there seem to be no crash reports (as should be created by CrashReporter).
>
> Sprinkling the code with NSLog's doesn't sound very appealing - surely, there must be a better way?
>
> All kinds of suggestions, insights, and tips will be highly appreciated.
>
> Best regards,
> Gabriel.
>

Make sure you don't get a crash report in neither the computer Library folder (/Library/Log/) nor your home Library. You should get a crash report if your application crashes.

Use /Developer/Application/Performance Tools/Spin Control.app to auto sample it when it hangs (use preferences to sample only your app).

And also have a look in Console.app to see if you have some message about your application just before it crashes.

> PS:
> I am not quite sure this is the right list, so if there is a better list to aski this question, please let me know.
>


Discussions about tools (compiler, debugger, profiler, …) usually take place on Xcode-users list.

-- Jean-Daniel




_______________________________________________

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: 
 >Debugging sporadic crashes (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Debugging sporadic crashes
  • Next by Date: Re: Custom field editor context menu
  • Previous by thread: Re: Debugging sporadic crashes
  • Next by thread: [Moderator] Reminder WWDC is under NDA
  • Index(es):
    • Date
    • Thread