TheRealKerni/QuincyKit — Issue #75: Seeking advice: Works with QuincyDemo, can't get to work in my app
Author: mts749
Created: 2011-12-03 12:59:56+00:00
State: open

QuincyKit works perfectly as advertised using QuincyDemo (on the device). When I follow the same pattern in my own code, it does not generate a crash log. When I run the app while the device is tethered I can see that QuincyKit is initialized (I have inserted NSLog() statements) and that a stack trace is produced, but no log is generated. This differs from QuicnyDemo where I see the following in the console:

>Dec 3 07:47:13 unknown ReportCrash[1902] : Formulating crash report for process QuincyDemo[1239]
Dec 3 07:47:13 unknown com.apple.launchd[1] : (UIKitApplication:de.buzzworks.QuincyDemo[0xceda]) Job appears to have crashed: Trace/BPT trap: 5
Dec 3 07:47:13 unknown SpringBoard[15] : Application 'QuincyDemo' exited abnormally with signal 5: Trace/BPT trap: 5
Dec 3 07:47:14 unknown ReportCrash[1902] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/QuincyDemo_2011-12-03-074713_Phone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0

This is what appears under my app:

>Dec 3 07:50:04 unknown Am[1906] : Uncaught exception: *** -[\_\_NSArrayI objectAtIndex:]: index 23 beyond bounds for empty array
Dec 3 07:50:04 unknown Am[1906] : Stack trace: (
0 CoreFoundation 0x371078d7 \_\_exceptionPreprocess + 186
1 libobjc.A.dylib 0x324771e5 objc_exception_throw + 32
2 CoreFoundation 0x3705f275 -[\_\_NSArrayI objectAtIndex:] + 164
3 Am 0x00048ba1 -[RootViewController debug2:] + 44
...

So it clearly is not catching the exception.

I realize that this may not be strictly a QuincyKit issue (may be a plcrashreporter problem, but any advice on how to proceed with debugging this would be very much appreciated.

Martin