iphone - How to read Xcode console output? -
as java , php developer new xcode, having trouble dealing memory errors. have sample program book, crashes on startup "program received signal 'sigabrt'." don't know console output below. realize it's kind of stack trace, name on left name of application, not class or file. don't know "main + 121" or "start + 53" means or look. guidance appreciated.
2011-05-11 10:43:23.071 flowerinfonavigator[22537:207] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[nscfdictionary objectforkey:]: method sent uninitialized mutable dictionary object' *** call stack @ first throw: ( 0 corefoundation 0x00dc25a9 __exceptionpreprocess + 185 1 libobjc.a.dylib 0x00f16313 objc_exception_throw + 44 2 corefoundation 0x00dbf542 -[__nsplaceholderdictionary objectforkey:] + 194 3 flowerinfonavigator 0x0000289a -[rootviewcontroller tableview:didselectrowatindexpath:] + 330 4 uikit 0x0008bb68 -[uitableview _selectrowatindexpath:animated:scrollposition:notifydelegate:] + 1140 5 uikit 0x00081b05 -[uitableview _userselectrowatpendingselectionindexpath:] + 219 6 foundation 0x0079b79e __nsfiredelayedperform + 441 7 corefoundation 0x00da38c3 __cfrunloop_is_calling_out_to_a_timer_callback_function__ + 19 8 corefoundation 0x00da4e74 __cfrunloopdotimer + 1220 9 corefoundation 0x00d012c9 __cfrunlooprun + 1817 10 corefoundation 0x00d00840 cfrunlooprunspecific + 208 11 corefoundation 0x00d00761 cfrunloopruninmode + 97 12 graphicsservices 0x00ffa1c4 gseventrunmodal + 217 13 graphicsservices 0x00ffa289 gseventrun + 115 14 uikit 0x00022c93 uiapplicationmain + 1160 15 flowerinfonavigator 0x00001b99 main + 121 16 flowerinfonavigator 0x00001b15 start + 53 ) terminate called after throwing instance of 'nsexception' (gdb)
on right methods called on stack. 1 of methods (though won't work) , it'll give method call problem originated from. in trace @ call number 3 on "flowerinfonavigator" method tableview:didselectrowatindexpath
: called , somewhere in there caused crash. should able use debugger , breakpoints narrow down there hopefully. luck.
edit: relooked @ error message: @ top of it gives error. tried retrieve object nsdictionary wasn't initialized yet, , above, occurred in didselectrowatindexpath
method
Comments
Post a Comment