objective c - iOS crash libobjc.A.dylib objc_msgSend -


i getting crash shown below in crashlytics.

i unable understand coming form within app. unfortunately have never been able generate crash myself, occurring in wild.

there 1 reference app name, , there nothing leads show in app coming from.

is fact there no data in app occurs, indication of issue occurring during didfinishlaunchingwithoptionsand not getting far enough show further detail? or there other reason log lacking in data show issue is?

could advise how may able track down?

    thread : crashed: com.apple.main-thread 0  libobjc.a.dylib                0x0000000195de3bd0 objc_msgsend + 16 1  corefoundation                 0x0000000183fd9458 cfrelease + 524 2  corefoundation                 0x0000000183fe5a18 -[__nsarraym dealloc] + 152 3  libobjc.a.dylib                0x0000000195de9724 (anonymous namespace)::autoreleasepoolpage::pop(void*) + 564 4  corefoundation                 0x0000000183fdd074 _cfautoreleasepoolpop + 28 5  foundation                     0x0000000184f0e588 -[nsautoreleasepool release] + 148 6  uikit                          0x0000000188be03f4 -[uiapplication _run] + 588 7  uikit                          0x0000000188bdaf40 uiapplicationmain + 1488 8  _the_app_name_                 0x0000000100031e20 main (main.m:16) 9  libdyld.dylib                  0x000000019647aa08 start + 4  crashed: com.apple.main-thread exc_bad_access kern_invalid_address @ 0x00000000f5b2beb8 

i adding following in relation comments placed on thread. code main ui related change, other usual label setting etc, can't see issue with.

the code below added appdelegate.m, didfinishlaunchingwithoptions.

i wondering, crash not have been able re-produce, , whilst happening daily in handful of cases, if timing issue, , ui not being available receive messages.

i welcome thoughts, , if agree, if should instead move code viewdidload in viewcontroller instead.

[[uitabbaritem appearance] settitletextattributes:[nsdictionary dictionarywithobjectsandkeys:                                                                [uicolor lightgraycolor], nsforegroundcolorattributename,                                                                [uifont fontwithname:@"helvetica neue" size:16],                                                                nsfontattributename, nil] forstate:uicontrolstatenormal];             [[uitabbaritem appearance] settitletextattributes:[nsdictionary dictionarywithobjectsandkeys:                                                                [uicolor darkgraycolor], nsforegroundcolorattributename,                                                                [uifont fontwithname:@"helvetica neue" size:16],                                                                nsfontattributename,                                                                nil] forstate:uicontrolstateselected];      [[uitabbar appearance] setbartintcolor:[uicolor colorwithred:0.44 green:0.99 blue:0.45 alpha:1]];      [[uinavigationbar appearance] setbartintcolor:[uicolor colorwithred:0.44 green:0.99 blue:0.45 alpha:1]];      [[uinavigationbar appearance] settintcolor:[uicolor darkgraycolor]];      [[uinavigationbar appearance] settitletextattributes:@{nsforegroundcolorattributename : [uicolor darkgraycolor], nsfontattributename : [uifont fontwithname:@"helvetica neue" size:22]}];      [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstylelightcontent]; 

after searching in code, stumbled across post on here objc_msgsend [__nsarraym dealloc] crash report crashlytics.

it seems crashlytics had bug in 3.0.9, , cause of issue.

updated sdk , okay.


Comments