Raygun4iOS not reporting all exceptions

Shane

Posted on
Apr 17 2014

I am hoping someone can help. I have downloaded the latest Raygun4iOS.framework (1.2.0) and included it in my iOS 7.1 iPhone project. In the application:didFinishLaunchingWithOptions method, I included the following (to check that communication was working):

Raygun rg = [Raygun sharedReporterWithApiKey:@"****"]; [rg crash];

When viewing my application in the Raygun dashboard, it displayed with a "NotProvided" message, with the expected time.

However, when then changing the code (in the app delegate) to simply:

[Raygun sharedReporterWithApiKey:@"*****"];

And then in the rootviewcontroller adding the following in the ViewDidAppear method (which will blatantly cause an outOfRange exception):

NSArray *array = @[@"Test1", @"Test2"]; self.title = array[9];

This causes the app to crash but does not display in my dashboard. I can see the relevant crashlog on my device but cannot for the life of me figure out what I have missed so that this will not be sent and displayed in Raygun dashboard. My api key is definitely correct, and as mentioned I have the latest framework installed. I also uploaded the relevant DSYM zip files, but it still seems to make no difference.

Is anyone able to help with any insight?

Thank you


martin308

Posted on
Apr 17 2014

Hi Shane, I will investigate this for you and get back to you


Shane

Posted on
Apr 17 2014

Thank you so much Martin.


martin308

Posted on
Apr 22 2014

Hi Shane,

I have done some investigation into this and it would seem that this crash happens early enough that the crash reporter does not have time to send the crash reports. They are being persisted to disk and will be sent if it gets enough time to send them. If you remove your invalid array access then you should see the persisted errors appear in your dashboard.


Shane

Posted on
Apr 22 2014

Thank you Martin. I will give this a go!


Reply