objective c - SIGSEGV crash without any direct trace of my app's code -
several users of 1 of apps having random crashes. crash log doesn't contain reference methods written myself , hence, hard read. crash hard reproduce can't use tooling such nszombieenabled gain more information.
based on crash report (see below) have assumption it's because app's nswindow object requested (or informed) resize in animated way (hence, timer , delay information) there's button (nsbutton) causing issue (probably it's deallocated since i'm having sigsegv). however, don't understand why reason "selector name found in current argument registers: methodforselector:".
can reveil more useful information crash log allowing me understand what's causing issue?
exception type: sigsegv exception codes: segv_maperr @ 0x295eeda4bec0 crashed thread: 0 application specific information: selector name found in current argument registers: methodforselector: thread 0 crashed: 0 libobjc.a.dylib 0x00007fff848c70dd objc_msgsend + 29 1 appkit 0x00007fff833a6aef safearcweaklystore + 113 2 appkit 0x00007fff833b2a5b -[nsactioncell settarget:] + 99 3 appkit 0x00007fff83610de1 -[nsactioncell copywithzone:] + 285 4 appkit 0x00007fff83611157 -[nsbuttoncell copywithzone:] + 98 5 appkit 0x00007fff8360f81b -[nsbutton baselineoffsetfrombottom] + 370 6 appkit 0x00007fff835289c6 -[nsview(nsconstraintbasedlayout) nsli_lowerattribute:intoexpression:withcoefficient:forconstraint:] + 750 7 foundation 0x00007fff8b86f003 lower_1_attribute + 157 8 foundation 0x00007fff8b86e9e6 -[nslayoutconstraint _lowerintoexpression:reportingconstantisrounded:] + 101 9 foundation 0x00007fff8b86e686 -[nslayoutconstraint _containergeometrydidchange] + 87 10 appkit 0x00007fff8341b8c6 _nsviewenumerateconstraints + 252 11 appkit 0x00007fff8352854b __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke_2 + 322 12 foundation 0x00007fff8b86e48e -[nsisengine withbehaviors:performmodifications:] + 154 13 appkit 0x00007fff833ca1aa -[nsview(nsconstraintbasedlayout) _withautomaticengineoptimizationdisabled:] + 69 14 appkit 0x00007fff835283e8 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke + 481 15 appkit 0x00007fff83401bcf -[nsview(nsconstraintbasedlayout) _setlayoutengine:] + 232 16 appkit 0x00007fff835284e0 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke_2 + 215 17 foundation 0x00007fff8b86e48e -[nsisengine withbehaviors:performmodifications:] + 154 18 appkit 0x00007fff833ca1aa -[nsview(nsconstraintbasedlayout) _withautomaticengineoptimizationdisabled:] + 69 19 appkit 0x00007fff835283e8 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke + 481 20 appkit 0x00007fff83401bcf -[nsview(nsconstraintbasedlayout) _setlayoutengine:] + 232 21 appkit 0x00007fff835284e0 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke_2 + 215 22 foundation 0x00007fff8b86e48e -[nsisengine withbehaviors:performmodifications:] + 154 23 appkit 0x00007fff833ca1aa -[nsview(nsconstraintbasedlayout) _withautomaticengineoptimizationdisabled:] + 69 24 appkit 0x00007fff835283e8 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke + 481 25 appkit 0x00007fff83401bcf -[nsview(nsconstraintbasedlayout) _setlayoutengine:] + 232 26 appkit 0x00007fff835284e0 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke_2 + 215 27 foundation 0x00007fff8b86e48e -[nsisengine withbehaviors:performmodifications:] + 154 28 appkit 0x00007fff833ca1aa -[nsview(nsconstraintbasedlayout) _withautomaticengineoptimizationdisabled:] + 69 29 appkit 0x00007fff835283e8 __52-[nsview(nsconstraintbasedlayout) _setlayoutengine:]_block_invoke + 481 30 appkit 0x00007fff83401bcf -[nsview(nsconstraintbasedlayout) _setlayoutengine:] + 232 31 appkit 0x00007fff835281df make_and_host_engine + 248 32 appkit 0x00007fff83ced3ce -[nsview(nsconstraintbasedlayout) _rebuildlayoutfromscratch] + 134 33 appkit 0x00007fff83b6fd91 -[nswindow _setwindowresolution:displayifchanged:] + 279 34 appkit 0x00007fff83739361 -[nswindow _updateinheritedbackingscalefactoranddisplayifchanged:] + 131 35 appkit 0x00007fff83609237 __67-[nswindow _updatesettingssendingscreenchangenotificationifneeded:]_block_invoke + 193 36 appkit 0x00007fff83482bdb nsperformwithscreenupdatesdisabled + 64 37 appkit 0x00007fff8346c4c6 -[nswindow _updatesettingssendingscreenchangenotificationifneeded:] + 365 38 appkit 0x00007fff83469b54 -[nswindow _setframe:updateborderviewsize:] + 1098 39 appkit 0x00007fff8346912c -[nswindow _oldplacewindow:] + 1117 40 appkit 0x00007fff8346851d -[nswindow _setframecommon:display:stashsize:] + 2561 41 appkit 0x00007fff83560be3 -[nswindow setvalue:forkey:] + 180 42 foundation 0x00007fff8b84f9d1 -[nsobject(nskeyvaluecoding) setvalue:forkeypath:] + 338 43 appkit 0x00007fff8365c926 _nsstopanimation + 98 44 appkit 0x00007fff8365c1fb __40+[nsanimationmanager performanimations:]_block_invoke_2 + 756 45 appkit 0x00007fff83482bdb nsperformwithscreenupdatesdisabled + 64 46 appkit 0x00007fff8365beff __40+[nsanimationmanager performanimations:]_block_invoke + 129 47 appkit 0x00007fff8365ba66 +[nsanimationmanager performanimations:] + 1155 48 appkit 0x00007fff8358cbf6 -[nsscreendisplaylink _fire] + 398 49 corefoundation 0x00007fff8d76b2e4 __cfrunloop_is_calling_out_to_a_timer_callback_function__ + 19 50 corefoundation 0x00007fff8d76af73 __cfrunloopdotimer + 1058 51 corefoundation 0x00007fff8d7de53d __cfrunloopdotimers + 300 52 corefoundation 0x00007fff8d726608 __cfrunlooprun + 2023 53 corefoundation 0x00007fff8d725bd8 cfrunlooprunspecific + 295 54 hitoolbox 0x00007fff8fc4356f runcurrenteventloopinmode + 234 55 hitoolbox 0x00007fff8fc432ea receivenexteventcommon + 430 56 hitoolbox 0x00007fff8fc4312b _blockuntilnexteventmatchinglistinmodewithfilter + 70 57 appkit 0x00007fff834278ab _dpsnextevent + 977 58 appkit 0x00007fff83426e58 -[nsapplication nexteventmatchingmask:untildate:inmode:dequeue:] + 345 59 appkit 0x00007fff8341caf3 -[nsapplication run] + 593 60 appkit 0x00007fff83399244 nsapplicationmain + 1831 61 libdyld.dylib 0x00007fff891e25c9 start + 0 thread 0 crashed x86-64 thread state: rip: 0x00007fff848c70dd rbp: 0x00007fff57ac7fd0 rsp: 0x00007fff57ac7f98 rax: 0x0000000000000001 rbx: 0x00007fff83d68df7 rcx: 0x00007fff833a7973 rdx: 0x00007fff83d68df7 rdi: 0x000060000011a820 rsi: 0x00007fff83d66b5c r8: 0x0000000000000000 r9: 0xffffffffffffffff r10: 0x00007fff83d66b5c r11: 0x0000295eeda4bea8 r12: 0x000060000011a820 r13: 0x00007fff848c70c0 r14: 0x00006000002e2d28 r15: 0x0000000000000000 rflags: 0x0000000000010202 cs: 0x000000000000002b fs: 0x0000000000000000 gs: 0x0000000000000000
thanks!
xcode 6+ has awesome feature list users crashes , re simulate them in iphone or simulator check out ... helps or gotta in hard way trace down "demystification"
http://www.raywenderlich.com/23704/demystifying-ios-application-crash-logs
Comments
Post a Comment