objective c - Google Analytics 3.12 crashes on iOS -


i'm new ios development , have crash on ios app (developed vendor). have learnt read logs , see:

2015-06-15 19:00:51.628 my_app[2540:113596] warning: googleanalytics 3.12 void gaiuncaughtexceptionhandler(nsexception *) (gaiuncaughtexceptionhandler.m:48): uncaught exception: *** -[__nsarrayi objectatindex:]: index 0 beyond bounds empty array 2015-06-15 19:00:51.636 my_app[2540:113791] info: googleanalytics 3.12 -[gaianalyticspropertiesstore propertyrecordfortrackingid:] (gaianalyticspropertiesstore.m:464): record tracking id my_tracking_id not found 2015-06-15 19:00:51.640 my_app[2540:113791] verbose: googleanalytics 3.12 -[gaibatchingdispatcher persist:]  

i want know if google analytics causing crash or else triggering crash. api calls fine , other parts of app working fine.

edit additonal stacktrace

*** terminating app due uncaught exception 'nsrangeexception', reason: '*** -[__nsarrayi objectatindex:]: index 0 beyond bounds empty array' *** first throw call stack: (     0   corefoundation                      0x000000010656cc65 __exceptionpreprocess + 165     1   libobjc.a.dylib                     0x0000000106205bb7 objc_exception_throw + 45     2   corefoundation                      0x000000010646317e -[__nsarrayi objectatindex:] + 190     3   my_app                            0x0000000105396095 -[promotiondetailviewcontroller tableview:cellforrowatindexpath:] + 4213     4   uikit                               0x00000001076faa28 -[uitableview _createpreparedcellforglobalrow:withindexpath:willdisplay:] + 508     5   uikit                               0x00000001076d9248 -[uitableview _updatevisiblecellsnow:isrecursive:] + 2853     6   uikit                               0x00000001076ef8a9 -[uitableview layoutsubviews] + 210     7   uikit                               0x0000000107679a2b -[uiview(calayerdelegate) layoutsublayersoflayer:] + 536     8   quartzcore                          0x00000001073d1ec2 -[calayer layoutsublayers] + 146     9   quartzcore                          0x00000001073c66d6 _zn2ca5layer16layout_if_neededepns_11transactione + 380     10  quartzcore                          0x00000001073c6546 _zn2ca5layer28layout_and_display_if_neededepns_11transactione + 24     11  quartzcore                          0x0000000107332886 _zn2ca7context18commit_transactionepns_11transactione + 242     12  quartzcore                          0x0000000107333a3a _zn2ca11transaction6commitev + 462     13  quartzcore                          0x00000001073340eb _zn2ca11transaction17observer_callbackep19__cfrunloopobservermpv + 89     14  corefoundation                      0x000000010649fca7 __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 23     15  corefoundation                      0x000000010649fc00 __cfrunloopdoobservers + 368     16  corefoundation                      0x0000000106495a33 __cfrunlooprun + 1123     17  corefoundation                      0x0000000106495366 cfrunlooprunspecific + 470     18  graphicsservices                    0x0000000109f4ca3e gseventrunmodal + 161     19  uikit                               0x00000001075f9900 uiapplicationmain + 1282     20  my_app                            0x00000001053de35f main + 111     21  libdyld.dylib                       0x0000000108a15145 start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception 

one way debug issue add symbolic breakpoint on objectatindex: may result in many hits objectatindex: before debugger hits 1 you're after it's guaranteed find it.

steps in xcode 4:

view > navigators > breakpoint navigator click '+' , choose add symbolic breakpoint in pop-up type in "objectatindex:" in symbol text field , click done 

at runtime, if can't tell objectatindex: you're hitting, move slider @ bottom of debug navigator way right.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -