Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App crashing in iPad simulator with no useful console info

please forgive the total newbie here - I am running an app in the simulator, and sometimes when it crashes it posts useful info in the console, other times absolutely nothing. When it posts nothing, what would be good steps to follow to start tracking down the cause of the crash?

like image 992
brucem Avatar asked Apr 21 '11 08:04

brucem


2 Answers

First of all open the debugger after the crash and look at the stacktrace.

In addition to that you could enable NSZombieEnabled for the executable when those vague bad access errors show up.

Debugger with stacktrace(top left window), XCode3

enter image description here

Stacktrace Xcode4

enter image description here

like image 63
Nick Weaver Avatar answered Nov 13 '22 17:11

Nick Weaver


I can continuously reproduce this kind of behavior with our app. It uses ARC so im pretty sure nothing gets over released, and we have zombies enabled. Xcode will say "Paused" instead of displaying a list of threads, the "Continue" button is active, but doesn't do anything, and entering bt on the (gdb) prompt says No stack.

This is driving me crazy!

like image 29
Maciej Swic Avatar answered Nov 13 '22 18:11

Maciej Swic