iOS Crash at [UIViewController setTitle] -
i met crash symbolicated result:
ios9.3.1(13e238) exc_bad_access kern_invalid_address 0x000000001500c018 crashed: com.apple.main-thread 0 libobjc.a.dylib 0x18181db90 objc_msgsend + 16 1 foundation 0x182a8e454 -[nsobject(nskeyvalueobservernotification) willchangevalueforkey:] + 324 2 quartzcore 0x184c8711c ca::layer::set_delegate(objc_object*) + 72 3 uikit 0x1872f2f40 -[uiview _createlayerwithframe:] + 580 4 uikit 0x1872f2a00 uiviewcommoninitwithframe + 688 5 uikit 0x1872f26f0 -[uiview initwithframe:] + 140 6 uikit 0x1872f9fb0 -[uilabel initwithframe:] + 48 7 uikit 0x187394f04 -[uinavigationitemview initwithnavigationitem:] + 200 8 uikit 0x18761de4c -[uinavigationitem _defaulttitleview] + 128 9 uikit 0x18761cfbc -[uinavigationitem _adddefaulttitleviewtonavigationbarifnecessary] + 88 10 uikit 0x18739e610 -[uinavigationitem settitle:] + 260 11 uikit 0x187392c90 -[uiviewcontroller settitle:] + 144 12 xxxxxxxxxxxxx 0x100107634 -[zzfileviewcontroller viewdidload] (zzfileviewcontroller.m:133) 13 uikit 0x1872f0b40 -[uiviewcontroller loadviewifrequired] + 996 14 uikit 0x187308fd0 -[uiviewcontroller __viewwillappear:] + 132 15 uikit 0x1874a3d10 -[uinavigationcontroller _startcustomtransition:] + 1052 16 uikit 0x1873afd28 -[uinavigationcontroller _startdeferredtransitionifneeded:] + 688 17 uikit 0x1873afa04 -[uinavigationcontroller __viewwilllayoutsubviews] + 60 18 uikit 0x1873af96c -[uilayoutcontainerview layoutsubviews] + 208 19 uikit 0x1872ec0e4 -[uiview(calayerdelegate) layoutsublayersoflayer:] + 656 20 quartzcore 0x184c92a28 -[calayer layoutsublayers] + 148 21 quartzcore 0x184c8d634 ca::layer::layout_if_needed(ca::transaction*) + 292 22 quartzcore 0x184c8d4f4 ca::layer::layout_and_display_if_needed(ca::transaction*) + 32 23 quartzcore 0x184c8cb24 ca::context::commit_transaction(ca::transaction*) + 252 24 quartzcore 0x184c8c86c ca::transaction::commit() + 512 25 uikit 0x1872eeef4 _uiapplicationhandleeventqueue + 4980 26 corefoundation 0x18215d124 __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 24 27 corefoundation 0x18215cbb8 __cfrunloopdosources0 + 540 28 corefoundation 0x18215a8b8 __cfrunlooprun + 724 29 corefoundation 0x182084d10 cfrunlooprunspecific + 384 30 graphicsservices 0x18396c088 gseventrunmodal + 180 31 uikit 0x187359f70 uiapplicationmain + 204 32 xxxxxxxxxxxxx 0x100125c6c main (main.m:14) 33 libdispatch.dylib 0x181c228b8 (missing)
it shows crash @ [uiviewcontroller settitle]
, , title fetched model:
- (nonnull nsstring *)title { nsstring *lastpath = [self.directorypath lastpathcomponent]; if (0 == [lastpath length]) { lastpath = @"/"; } return lastpath; }
from experience, exc_bad_access
means sending message released object. here happens in viewdidload
, uiviewcontroller released? besides, don't think title
method has memory leak. i'm confused.
any suggestion?
Comments
Post a Comment