Can anyone help in analysing this crash issue?
The program did receive memory warning when webview was opened.
2011-05-10 10:52:44.882 [17713:207] *** -[CALayer retain]: message sent to deallocated instance 0xd0ee720
(gdb) where
#0 0x017d7057 in ___forwarding___ ()
#1 0x017d6f22 in __forwarding_prep_0___ ()
#2 0x017780bc in CFRetain ()
#3 0x0185edb5 in +[__NSArrayI __new::] ()
#4 0x013328f6 in -[CALayerArray copyWithZone:] ()
#5 0x017c67ca in -[NSObject(NSObject) copy] ()
#6 0x007378d7 in -[UIView dealloc] ()
#7 0x007ac52a in -[UIViewController setView:] ()
#8 0x007aeeec in -[UIViewController unloadViewForced:] ()
#9 0x007aab0a in -[UIViewController unloadViewIfReloadable] ()
#10 0x007b6194 in -[UINavigationController purgeMemoryForReason:] ()
#11 0x007aa15b in -[UIViewController didReceiveMemoryWarning] ()
#12 0x004686c1 in _nsnote_callback ()
#13 0x0183df99 in __CFXNotificationPost_old ()
#14 0x017bd33a in _CFXNotificationPostNotification ()
#15 0x0045e266 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#16 0x0046a5a9 in -[NSNotificationCenter postNotificationName:object:] ()
#17 0x00703108 in -[UIApplication _performMemoryWarning] ()
#18 0x0181724c in __CFNotificationCenterDarwinCallBack ()
#19 0x017a7872 in __CFMachPortPerform ()
#20 0x01847064 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#21 0x017a76f7 in __CFRunLoopDoSource1 ()
#22 0x017a4983 in __CFRunLoopRun ()
#23 0x017a4240 in CFRunLoopRunSpecific ()
#24 0x017a4161 in CFRunLoopRunInMode ()
#25 0x01daa268 in GSEventRunModal ()
#26 0x01daa32d in GSEventRun ()
#27 0x0070d42e in UIApplicationMain ()
#28 0x0000272e in main (argc=1, argv=0xbfffee7c)
You are trying to access a CALayer object that has already been released. Make sure you release the objects properly. Also ensure that [super dealloc]; is not called before other objects are released
Related
We are seeing this on ONLY iPhone 5s with iOS 8.1.2. Other devices with 8.1.2 seem to be working fine.
The view controller that has a Map loading from an XIB is init fine, but when tries to load we get... Will be trying some things to try and get around this, but any help would be appreciated.
2014-12-16 16:03:24.333 App[6140:995503] Stylesheet does not include style matching tree, or includes an old version. Perhaps it was compiled by an old version of the style compiler.
2014-12-16 16:03:24.333 App[6140:995503] Please create a radar about this! (Check it's not a dup of rdar://16346611 first though)
2014-12-16 16:03:24.334 App[6140:995503] Active tile set: GEOActiveTileSet
App(6140,0x196aa8310) malloc: *** error for object 0x174206030: Invalid pointer dequeued from free list
*** set a breakpoint in malloc_error_break to debug
With a large stack
#0 0x0000000191fa13f0 in __cxa_throw ()
#1 0x00000001927a0204 in objc_exception_throw ()
#2 0x0000000181f7b62c in -[__NSArrayM objectAtIndex:] ()
#3 0x000000018f1e4318 in md::StyleMatchingTree::buildSubTrees(std::__1::set<int, std::__1::less<int>, std::__1::allocator<int> >&, std::__1::function<md::StyleMatchingTree* ()>&, NSArray*) ()
#4 0x000000018f28076c in __91-[VKStylesheet initWithData:miniData:forName:scale:ppi:vendor:targetDisplay:isDevResource:]_block_invoke ()
#5 0x0000000100a1ce30 in _dispatch_call_block_and_release ()
#6 0x0000000100a1cdf0 in _dispatch_client_callout ()
#7 0x0000000100a27854 in _dispatch_queue_drain ()
#8 0x0000000100a20120 in _dispatch_queue_invoke ()
#9 0x0000000100a2975c in _dispatch_root_queue_drain ()
#10 0x0000000100a2af18 in _dispatch_worker_thread3 ()
#11 0x0000000192fc12e4 in _pthread_wqthread ()
Enqueued from Stylesheet Map Editing Queue (Thread 1)Queue : Stylesheet Map Editing Queue (serial)
#0 0x0000000100a2adac in _dispatch_barrier_async_f_slow ()
#1 0x000000018f27f458 in -[VKStylesheet initWithData:miniData:forName:scale:ppi:vendor:targetDisplay:isDevResource:] ()
#2 0x000000018f27ef20 in -[VKStylesheet initWithName:scale:ppi:targetDisplay:vendor:resourceManager:] ()
#3 0x000000018f2cd56c in __65-[VKStylesheetVendor stylesheetWithName:scale:ppi:targetDisplay:]_block_invoke ()
#4 0x0000000100a1cdf0 in _dispatch_client_callout ()
#5 0x0000000100a268c8 in _dispatch_barrier_sync_f_invoke ()
#6 0x000000018f2cd43c in -[VKStylesheetVendor stylesheetWithName:scale:ppi:targetDisplay:] ()
#7 0x000000018f25b5d4 in -[VKStyleManager initWithName:scale:ppi:targetDisplay:sharedResources:] ()
#8 0x000000018f207984 in -[VKMapModel _setStyleManagerFromMapType:] ()
#9 0x000000018f1581d4 in -[VKMapModel forceMapType:] ()
#10 0x000000018f209188 in -[VKMapModel initShouldRasterize:mapPurpose:tileGroupIdentifier:locale:contentScale:] ()
#11 0x000000018f1fb4dc in -[VKMapCanvas initShouldRasterize:contentScale:target:device:inBackground:locale:] ()
#12 0x000000018f14ba6c in -[VKMapView initWithGlobe:shouldRasterize:inBackground:] ()
#13 0x00000001840e9f74 in -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:] ()
#14 0x000000018411dfcc in -[MKMapView _commonInitFromIB:gestureRecognizerHostView:showsAttribution:] ()
#15 0x000000018411ec3c in -[MKMapView initWithCoder:] ()
#16 0x0000000186d2cd98 in UINibDecoderDecodeObjectForValue ()
#17 0x0000000186d2ca54 in -[UINibDecoder decodeObjectForKey:] ()
#18 0x0000000186c541bc in -[UIRuntimeConnection initWithCoder:] ()
#19 0x0000000186d2cd98 in UINibDecoderDecodeObjectForValue ()
#20 0x0000000186d2cd38 in UINibDecoderDecodeObjectForValue ()
#21 0x0000000186d2ca54 in -[UINibDecoder decodeObjectForKey:] ()
#22 0x0000000186c53644 in -[UINib instantiateWithOwner:options:] ()
#23 0x0000000186b58274 in -[UIViewController _loadViewFromNibNamed:bundle:] ()
#24 0x0000000186848844 in -[UIViewController loadViewIfRequired] ()
#25 0x00000001868fdfb4 in -[UINavigationController _layoutViewController:] ()
#26 0x00000001868fdeb0 in -[UINavigationController _updateScrollViewFromViewController:toViewController:] ()
#27 0x00000001868fd34c in -[UINavigationController _startTransition:fromViewController:toViewController:] ()
#28 0x00000001868fcff8 in -[UINavigationController _startDeferredTransitionIfNeeded:] ()
#29 0x00000001868fcd18 in -[UINavigationController __viewWillLayoutSubviews] ()
#30 0x00000001868fcc98 in -[UILayoutContainerView layoutSubviews] ()
#31 0x0000000186845648 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] ()
#32 0x000000018619d994 in -[CALayer layoutSublayers] ()
#33 0x0000000186198564 in CA::Layer::layout_if_needed(CA::Transaction*) ()
#34 0x0000000186198408 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
#35 0x0000000186197c08 in CA::Context::commit_transaction(CA::Transaction*) ()
#36 0x000000018619798c in CA::Transaction::commit() ()
#37 0x000000018683c61c in _afterCACommitHandler ()
#38 0x000000018204ea50 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
#39 0x000000018204b9dc in __CFRunLoopDoObservers ()
#40 0x000000018204bdbc in __CFRunLoopRun ()
#41 0x0000000181f790a4 in CFRunLoopRunSpecific ()
#42 0x000000018b1235a4 in GSEventRunModal ()
#43 0x00000001868ae3c0 in UIApplicationMain ()
#44 0x0000000100144e64 in main at /Usersxxxx/main.m:17
#45 0x0000000192e0ea08 in start ()
[ADDITION]
With XCode 6.1.1 (don't think this matters, but might) with this small program (sample single view) exhibits the same issue on the 5s. It's really the init that does it.
//
// ViewController.m
// testingmap
//
#import "ViewController.h"
#import <MapKit/MapKit.h>
#interface ViewController ()
#property (nonatomic) MKMapView *mapView;
#end
#implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.mapView = [[MKMapView alloc] init];
[self.view addSubview: self.mapView];
}
So, my iPhone was the phone in question and everything got fixed by just resetting all settings.
Settings-> General-> Reset-> Reset All Settings.
i hope it.this links useful for you. taking a time for getting map data. so you will put in view did appear and at the same time are you use xcode 6.0 and above version. ios 8 and above version. can you use this
It is Step For Map Data getting above ios 8.0 version
I am trying to run VAFieldTest application in my device, but the application got crashed at this line _CTServerConnectionRegisterForNotification. How can I fix this crash?
Here are the parameters I have passed:
CTServerConnectionRef conn;
void register_notification(){
if (!mach_port || !conn) return;
void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LOCAL | RTLD_LAZY);
void *kCTCellMonitorUpdateNotification = dlsym(libHandle, "kCTIndicatorsSignalStrengthNotification");
if( kCTCellMonitorUpdateNotification== NULL) NSLog(#"Could not find kCTCellMonitorUpdateNotification");
int x = 0; //placehoder for callback
_CTServerConnectionRegisterForNotification(conn,kCTCellMonitorUpdateNotification,(void*)&x);
}
Here is the crash report:
(gdb) bt
#0 0x344f9710 in __CFStrConvertBytesToUnicode ()
#1 0x344faaea in __CFStringEncodeByteStream ()
#2 0x34466a10 in CFStringGetBytes ()
#3 0x39123928 in ctu::cf::assign ()
#4 0x39112380 in getCTEventForNotification ()
#5 0x390ecff8 in _CTServerConnectionDaemonRegistration ()
#6 0x39112e12 in _CTServerConnectionRegisterForNotification ()
#7 0x00003138 in register_notification () at /Users/deepthi/Desktop/iPhone Agent/VAFieldTest-master/Classes/VAFieldTestViewController.m:66
#8 0x00003388 in -[VAFieldTestViewController viewDidLoad] (self=0x15ada0, _cmd=0x34b8581b) at /Users/deepthi/Desktop/iPhone Agent/VAFieldTest-master/Classes/VAFieldTestViewController.m:116
#9 0x3471458c in -[UIViewController loadViewIfRequired] ()
#10 0x00002d84 in -[VAFieldTestAppDelegate application:didFinishLaunchingWithOptions:] (self=0x11f350, _cmd=0x34b698d3, application=0x11e510, launchOptions=0x0) at /Users/deepthi/Desktop/iPhone Agent/VAFieldTest-master/Classes/VAFieldTestAppDelegate.m:22
#11 0x34755ad0 in -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] ()
#12 0x3475565a in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
#13 0x3474d842 in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()
#14 0x346f5c38 in -[UIApplication handleEvent:withNewEvent:] ()
#15 0x346f56cc in -[UIApplication sendEvent:] ()
#16 0x346f511a in _UIApplicationHandleEvent ()
#17 0x394785a2 in _PurpleEventCallback ()
#18 0x344e9682 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#19 0x344e8ee8 in __CFRunLoopDoSources0 ()
#20 0x344e7cb6 in __CFRunLoopRun ()
#21 0x3445aebc in CFRunLoopRunSpecific ()
#22 0x3445ad48 in CFRunLoopRunInMode ()
#23 0x3474c47c in -[UIApplication _run] ()
#24 0x347492f8 in UIApplicationMain ()
#25 0x00002cf6 in main (argc=1, argv=0x2fdffc50) at /Users/deepthi/Desktop/iPhone Agent/VAFieldTest-master/main.m:15
(gdb)
When I got this, it was caused by the 3rd argument in the call to _CTServerConnectionRegisterForNotification(...) which should be a pointer to a callback...described here - incompactable pointer type passing int to parameter of type void(*)(void) in coretelephony obj c
In my app that you can download here: http://ge.tt/2DDqfJa
I've started a discussion but is died here iOS TableView crash loading different data
The problem is when I back from viewing the YouTube video to the recipes list, the app crash...
And when i select a category for the second time, where have to load a tableview with different data source, it crash.
This is the crash log
Program received signal: “EXC_BAD_ACCESS”.
(gdb) bt
#0 0x00f0da63 in objc_msgSend ()
#1 0x04b27ca0 in ?? ()
#2 0x00002665 in -[RecipesListController viewWillAppear:] (self=0x4b38a00, _cmd=0x6d81a2, animated=1 '\001') at /Users/claudiocanino/Documents/iOS/CottoMangiato/Classes/RecipesListController.m:67
#3 0x00370c9a in -[UINavigationController _startTransition:fromViewController:toViewController:] ()
#4 0x0036b606 in -[UINavigationController _startDeferredTransitionIfNeeded] ()
#5 0x0037283e in -[UINavigationController pushViewController:transition:forceImmediate:] ()
#6 0x04f49549 in -[UINavigationControllerAccessibility(SafeCategory) pushViewController:transition:forceImmediate:] ()
#7 0x0036b4a0 in -[UINavigationController pushViewController:animated:] ()
#8 0x00003919 in -[CategoryViewController tableView:didSelectRowAtIndexPath:] (self=0x4b27ca0, _cmd=0x6d19e3, tableView=0x500c200, indexPath=0x4b2d650) at /Users/claudiocanino/Documents/iOS/CottoMangiato/Classes/CategoryViewCotroller.m:104
#9 0x0032a794 in -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] ()
#10 0x00320d50 in -[UITableView _userSelectRowAtPendingSelectionIndexPath:] ()
#11 0x000337f6 in __NSFireDelayedPerform ()
#12 0x00d8cfe3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#13 0x00d8e594 in __CFRunLoopDoTimer ()
#14 0x00ceacc9 in __CFRunLoopRun ()
#15 0x00cea240 in CFRunLoopRunSpecific ()
#16 0x00cea161 in CFRunLoopRunInMode ()
#17 0x016e0268 in GSEventRunModal ()
#18 0x016e032d in GSEventRun ()
#19 0x002c342e in UIApplicationMain ()
#20 0x00001c08 in main (argc=1, argv=0xbfffef58) at /Users/claudiocanino/Documents/iOS/CottoMangiato/main.m:15
Another bt log:
(gdb) bt
#0 0x00cd76a1 in __CFBasicHashDeallocate ()
#1 0x00cc2bcb in _CFRelease ()
#2 0x00002dd6 in -[RecipesListController setRecipesArray:] (self=0x6834d50, _cmd=0x4293, _value=0x4e3bc70) at /Users/claudiocanino/Documents/iOS/CottoMangiato/Classes/RecipesListController.m:16
#3 0x00002665 in -[RecipesListController viewWillAppear:] (self=0x6834d50, _cmd=0x6d81a2, animated=1 '\001') at /Users/claudiocanino/Documents/iOS/CottoMangiato/Classes/RecipesListController.m:67
#4 0x00370c9a in -[UINavigationController _startTransition:fromViewController:toViewController:] ()
#5 0x0036b606 in -[UINavigationController _startDeferredTransitionIfNeeded] ()
#6 0x0037283e in -[UINavigationController pushViewController:transition:forceImmediate:] ()
#7 0x091ac549 in -[UINavigationControllerAccessibility(SafeCategory) pushViewController:transition:forceImmediate:] ()
#8 0x0036b4a0 in -[UINavigationController pushViewController:animated:] ()
#9 0x00003919 in -[CategoryViewController tableView:didSelectRowAtIndexPath:] (self=0x4b12970, _cmd=0x6d19e3, tableView=0x5014400, indexPath=0x4b2bd00) at /Users/claudiocanino/Documents/iOS/CottoMangiato/Classes/CategoryViewCotroller.m:104
#10 0x0032a794 in -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] ()
#11 0x00320d50 in -[UITableView _userSelectRowAtPendingSelectionIndexPath:] ()
#12 0x000337f6 in __NSFireDelayedPerform ()
#13 0x00d8cfe3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#14 0x00d8e594 in __CFRunLoopDoTimer ()
#15 0x00ceacc9 in __CFRunLoopRun ()
#16 0x00cea240 in CFRunLoopRunSpecific ()
#17 0x00cea161 in CFRunLoopRunInMode ()
#18 0x016e0268 in GSEventRunModal ()
#19 0x016e032d in GSEventRun ()
#20 0x002c342e in UIApplicationMain ()
#21 0x00001c08 in main (argc=1, argv=0xbfffef58) at /Users/claudiocanino/Documents/iOS/CottoMangiato/main.m:15
Thanks
You have probably tried to access an object which has been released. Search for "NSZombieEnabled" and read up on how to debug over-release problems.
The problem is you are over-releasing objects. Since you're using retain-properties you haven't to release the object when assigning a new object to the property. The old object will be released automatically. So these lines make no sense, delete them:
if (self.recipesArray != nil) {
// Release the arrays
[self.recipesArray release];
[self.recipesNames release];
}
In cellForRowAtIndexPath (RecipesListController) you are releasing rowString. There's no need to do that here. Delete that line and everything should work properly.
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
self.recipesArray = dict;
[dict release];
in your RecipesListController.m file check 55 line in viewwill appear you are release the object that you never give memory
when i make comment to
//[self.recipesArray release];
//[self.recipesNames release];
then it crash on tableview row check it
my application is crashing when I enter an ' (apostrophe) in the textfield. Can anyone please tell the solution for the problem. Below is the place where it crashes
hotelTextfield.text = [hotelList objectAtIndex:indexPath.row];
I entered other strings in the textfield but those didn't cause any issue. But whenever I enter some ', it crashes.
Please find the stack backtrace for the crash
Program received signal: “EXC_BAD_ACCESS”.
(gdb) bt
#0 0x31ec3ebc in objc_msgSend ()
#1 0x31ec5b3c in objc_setProperty ()
#2 0x0000e720 in -[AvailabilityVC setHotelList:] (self=0x11fbe0, _cmd=0x1f700, _value=0x31ec3f28) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/Classes/AvailabilityVC.m:29
#3 0x0000c6c8 in -[AvailabilityVC textFieldDidChange:] (self=0x11fbe0, _cmd=0x1f8e7, aNotification=0x1858a0) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/Classes/AvailabilityVC.m:248
#4 0x308ff5d8 in _nsnote_callback ()
#5 0x30de3510 in _CFXNotificationPostNotification ()
#6 0x308fd1b2 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#7 0x308ff518 in -[NSNotificationCenter postNotificationName:object:] ()
#8 0x336b27f4 in -[UITextField fieldEditorDidChange:] ()
#9 0x335eecb4 in -[UIFieldEditor webViewDidChange:] ()
#10 0x308ff5d8 in _nsnote_callback ()
#11 0x30de3510 in _CFXNotificationPostNotification ()
#12 0x308fd1b2 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#13 0x30da38e4 in __invoking___ ()
#14 0x30df757a in -[NSInvocation invoke] ()
#15 0x311ca134 in SendDelegateMessage ()
#16 0x3069cb30 in WebEditorClient::respondToChangedContents ()
#17 0x3123c01c in WebCore::Editor::respondToChangedContents ()
#18 0x3123a914 in WebCore::Editor::appliedEditing ()
#19 0x3123a740 in WebCore::TypingCommand::typingAddedToOpenCommand ()
#20 0x3122aa10 in WebCore::TypingCommand::insertTextRunWithoutNewlines ()
#21 0x3122a954 in WebCore::TypingCommand::insertText ()
#22 0x3122947c in WebCore::TypingCommand::insertText ()
#23 0x31228bd4 in WebCore::Editor::insertTextWithoutSendingTextEvent ()
#24 0x31228818 in WebCore::EventHandler::defaultTextInputEventHandler ()
#25 0x311f776c in WebCore::EventTargetNode::defaultEventHandler ()
#26 0x311f7358 in WebCore::EventTargetNode::dispatchGenericEvent ()
#27 0x311f6cf8 in WebCore::EventTargetNode::dispatchEvent ()
#28 0x312284fc in WebCore::EventHandler::handleTextInputEvent ()
#29 0x312283e0 in WebCore::Editor::insertText ()
#30 0x3069bab8 in -[WebHTMLView(WebNSTextInputSupport) insertText:] ()
#31 0x30defa14 in -[NSObject performSelector:withObject:] ()
#32 0x31228280 in -[WAKResponder tryToPerform:with:] ()
#33 0x3069b3d0 in -[WebView(WebViewEditingActions) _performResponderOperation:with:] ()
#34 0x3069b350 in -[WebView(WebViewEditingActions) insertText:] ()
#35 0x3368dd2c in -[UIWebDocumentView insertText:] ()
#36 0x3368d7b0 in -[UIKeyboardImpl addInputString:fromVariantKey:] ()
#37 0x3368ca88 in -[UIKeyboardImpl handleStringInput:fromVariantKey:] ()
#38 0x3368c81c in -[UIKeyboardLayoutStar sendStringAction:forKey:] ()
#39 0x3368b8f0 in -[UIKeyboardLayoutStar touchUp:withPathInfo:] ()
#40 0x3368732c in -[UIKeyboardLayout handleHandEvent:] ()
#41 0x3368b414 in -[UIKeyboardLayout touchesEnded:withEvent:] ()
#42 0x33604900 in -[UIWindow _sendTouchesForEvent:] ()
#43 0x33603f94 in -[UIWindow sendEvent:] ()
#44 0x335ff790 in -[UIApplication sendEvent:] ()
#45 0x335ff094 in _UIApplicationHandleEvent ()
#46 0x332e8990 in PurpleEventCallback ()
#47 0x30de952a in CFRunLoopRunSpecific ()
#48 0x30de8c1e in CFRunLoopRunInMode ()
#49 0x332e7374 in GSEventRunModal ()
#50 0x335adc30 in -[UIApplication _run] ()
#51 0x335ac230 in UIApplicationMain ()
#52 0x00002550 in main (argc=1, argv=0x2ffff540) at /Users/amitkumar_gupta/Documents/Projects/5StarHotels/main.m:13
(gdb)
OK, the problem is solved. It was due to the SQLite. the Sqlite wasn't able to handle the apostrophe('). Solved it by adding an extra ' before sending it to the SQLite.
I'v just got this error in my app.
2010-04-06 03:58:55.505 EasyPay DPS[6530:207] *** -[NTItems tableView]:
unrecognized selector sent to instance 0x397af90
2010-04-06 03:58:55.515 EasyPay DPS[6530:207] ***
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'*** -[NTItems tableView]: unrecognized selector sent to instance 0x397af90'
This error is extremely unuseful - where do I start in my code?
Here's the stack:
2010-04-06 03:58:55.522 EasyPay DPS[6530:207] Stack: (
29283419,
2541614345,
29665339,
29234806,
29087426,
14309,
3233602,
3226942,
3269216,
3265242,
3271699,
3252934,
3274087,
3252583,
12030,
3029574,
3012740,
266666,
29067968,
29064264,
37373461,
37373658,
2756527,
9456,
9310
)
#0 0x01c20004 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ ()
#1 0x977df509 in objc_exception_throw ()
#2 0x01c4a83b in -[NSObject doesNotRecognizeSelector:] ()
#3 0x01be1676 in ___forwarding___ ()
#4 0x01bbd6c2 in __forwarding_prep_0___ ()
#5 0x00003809 in -[NTItems viewDidLoad] (self=0x3965490, _cmd=0x15ee1bc) at /Users/shamilnunhuck/Documents/EasyPay DPS/Classes/NTItems.m:38
#6 0x00315742 in -[UIViewController view] ()
#7 0x00313d3e in -[UIViewController contentScrollView] ()
#8 0x0031e260 in -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] ()
#9 0x0031d2da in -[UINavigationController _layoutViewController:] ()
#10 0x0031ec13 in -[UINavigationController _startTransition:fromViewController:toViewController:] ()
#11 0x0031a2c6 in -[UINavigationController _startDeferredTransitionIfNeeded] ()
#12 0x0031f567 in -[UINavigationController pushViewController:transition:forceImmediate:] ()
#13 0x0031a167 in -[UINavigationController pushViewController:animated:] ()
#14 0x00002f22 in -[RootViewController tableView:didSelectRowAtIndexPath:] (self=0x391f1d0, _cmd=0x15e67b4, tableView=0x4071c00, indexPath=0x3977540 at /Users/shamilnunhuck/Documents/EasyPay DPS/Classes/RootViewController.m:167
#15 0x002e3a46 in -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] ()
#16 0x002df884 in -[UITableView _userSelectRowAtIndexPath:] ()
#17 0x000411aa in __NSFireDelayedPerform ()
#18 0x01bb8ac0 in CFRunLoopRunSpecific ()
#19 0x01bb7c48 in CFRunLoopRunInMode ()
#20 0x023a4615 in GSEventRunModal ()
#21 0x023a46da in GSEventRun ()
#22 0x002a0faf in UIApplicationMain ()
#23 0x00002514 in main (argc=1, argv=0xbfffefb8) at /Users/shamilnunhuck/Documents/EasyPay DPS/main.m:14
Your problem is in viewDidLoad on line 38.
Double-check method names, receiver names, etc.
Try adding a tableView property or method to NTItems before calling it, or derive from UITableViewController so the method is defined for you.