Application Crashes on [self dismissModalViewControllerAnimated:NO]; - iphone

in my Application I have a UiViecontroller.
when I close this UiViecontroller I do dismissModalViewControllerAnimated in my back action :
[self dismissModalViewControllerAnimated:NO];
the view is removed but the application crash with following log.
Thread 0 Crashed:
0 libobjc.A.dylib 0x34a80464 objc_msgSend + 16
1 UIKit 0x341aab5c _UIView + 52
2 UIKit 0x341aaaa8 -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 152
3 UIKit 0x341aaace -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 190
4 UIKit 0x341aaace -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 190
5 UIKit 0x341aaace -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] + 190
6 UIKit 0x341aa9fe -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:] + 22
7 UIKit 0x341aa6b8 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 304
8 UIKit 0x341c1724 -[UIView(Hierarchy) insertSubview:atIndex:] + 32
9 UIKit 0x34276c80 -[UIWindowController _transplantView:toSuperview:atIndex:] + 76
10 UIKit 0x34274e0e -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 2522
11 UIKit 0x342e4368 -[UIViewController _dismissModalViewControllerWithTransition:from:] + 1472
12 UIKit 0x342e3868 -[UIViewController dismissModalViewControllerWithTransition:] + 376
13 UIKit 0x342e372e -[UIViewController dismissModalViewControllerWithTransition:] + 62
14 UIKit 0x342e1662 -[UIViewController dismissModalViewControllerAnimated:] + 86
15 KabushikiShimbun 0x0005fd30 -[PDFPageScrollViewController backAction:] (PDFPageScrollViewController.m:1633)
16 CoreFoundation 0x35821fe6 -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
17 UIKit 0x341c84a6 -[UIApplication sendAction:to:from:forEvent:] + 78
18 UIKit 0x342637ae -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 86
19 CoreFoundation 0x35821fe6 -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
20 UIKit 0x341c84a6 -[UIApplication sendAction:to:from:forEvent:] + 78
21 UIKit 0x341c8446 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x341c8418 -[UIControl sendAction:to:forEvent:] + 32
23 UIKit 0x341c816a -[UIControl(Internal) <br>_sendActionsForEvents:withEvent:] + 350
24 UIKit 0x341c89c8 -[UIControl touchesEnded:withEvent:] + 336
25 UIKit 0x341be34e -[UIWindow _sendTouchesForEvent:] + 362
26 UIKit 0x341bdcc8 -[UIWindow sendEvent:] + 256
27 UIKit 0x341a8fc0 -[UIApplication sendEvent:] + 292
28 UIKit 0x341a8900 _UIApplicationHandleEvent + 5084
29 GraphicsServices 0x320c8efc PurpleEventCallback + 660
30 CoreFoundation 0x3580f6f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
31 CoreFoundation 0x3580f6bc __CFRunLoopDoSource1 + 160
32 CoreFoundation 0x35801f76 __CFRunLoopRun + 514
33 CoreFoundation 0x35801c80 CFRunLoopRunSpecific + 224
34 CoreFoundation 0x35801b88 CFRunLoopRunInMode + 52
35 GraphicsServices 0x320c84a4 GSEventRunModal + 108
36 GraphicsServices 0x320c8550 GSEventRun + 56
37 UIKit 0x341dc322 -[UIApplication _run] + 406
38 UIKit 0x341d9e8c UIApplicationMain + 664
39 KabushikiShimbun 0x00002800 main (main.m:14)
40 KabushikiShimbun 0x000027b4 start + 32
didn't understand why.
Any advice?
Thank you.

is the view controller originally called as Modal?
For example, are you initially showing the view by calling something along the lines of:
[myView presentModalViewController:myViewController animated:NO];
If you're not, that would be whats causing your crash, the app trying to get rid of a controller that's not modal via the dismissModalViewController method.

A view controller's parent is responsible to dismiss its modal view controller. So you should say
[self.parentViewController dismissModalViewControllerAnimated: YES];
To learn more about presenting and dismissing view controller's, refer to my post here

Make sure your modal view controller is not released at the time when do you want it to dismiss.

Related

Rare not reproducible crash related to UIKit

I have a random-looking crash related to UIKit and I can't seem to figure out what is wrong.
Does anyone see a familiar pattern here or do you think this might be a random OS-related crash? Is there a way to find out which Buttons or UI-elements were involved here?
Thread 0 Crashed:
0 libobjc.A.dylib 0x35260f78 objc_msgSend + 15
1 UIKit 0x312363d7 -[UIView(Hierarchy) superview] + 50
2 UIKit 0x31239abb -[UIView nextResponder] + 82
3 UIKit 0x31354011 forwardTouchMethod + 36
4 UIKit 0x3124f97d -[UIWindow _sendTouchesForEvent:] + 400
5 UIKit 0x3124f319 -[UIWindow sendEvent:] + 380
6 UIKit 0x31235695 -[UIApplication sendEvent:] + 356
7 UIKit 0x313e762f __42-[UIApplication _cancelTouches:withEvent:]_block_invoke_0 + 54
8 UIKit 0x312a5d0d -[UIApplication _cancelTouches:withEvent:includingGestures:notificationBlock:] + 544
9 UIKit 0x312a5ae9 -[UIApplication _cancelTouches:withEvent:] + 84
10 UIKit 0x31234eb1 _UIApplicationHandleEvent + 5688
11 GraphicsServices 0x33c7722b PurpleEventCallback + 882
12 CoreFoundation 0x37535523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
13 CoreFoundation 0x375354c5 __CFRunLoopDoSource1 + 140
14 CoreFoundation 0x37534313 __CFRunLoopRun + 1370
15 CoreFoundation 0x374b74a5 CFRunLoopRunSpecific + 300
16 CoreFoundation 0x374b736d CFRunLoopRunInMode + 104
17 GraphicsServices 0x33c76439 GSEventRunModal + 136
18 UIKit 0x31263cd5 UIApplicationMain + 1080

Error when testing application on iPhone, but no error in simulator

I get the below error when I test my application on my iPhone, yet the error doesnt occur in the Simulator. Its when I load up my rootViewController which is a UITableView. I am relatively new to iOS programming, and I was just wondering if anybody could shed any light on it!
Regards,
Michael.
Use this code to go to my RootView.
- (IBAction)goToRootView {
RootViewController *rootViewController = [[RootViewController alloc] initWithStyle:UITableViewStyleGrouped];
[self.navigationController pushViewController:rootViewController animated:YES];
[rootViewController release];
}
2011-09-12 14:39:55.951 LeagueProject[773:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 0 beyond bounds for empty array'
*** Call stack at first throw:
(
0 CoreFoundation 0x3684b64f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x33aa4c5d objc_exception_throw + 24
2 CoreFoundation 0x367b6069 -[__NSArrayM objectAtIndex:] + 184
3 LeagueProject 0x0000302f -[RootViewController tableView:numberOfRowsInSection:] + 58
4 UIKit 0x356827c7 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 1338
5 UIKit 0x356836bb -[UITableViewRowData rectForFooterInSection:] + 66
6 UIKit 0x356835f5 -[UITableViewRowData heightForTable] + 40
7 UIKit 0x35683453 -[UITableView(_UITableViewPrivate) _updateContentSize] + 206
8 UIKit 0x3567ebc9 -[UITableView _rectChangedWithNewSize:oldSize:] + 384
9 UIKit 0x3567d833 -[UITableView setFrame:] + 158
10 UIKit 0x35684e0f -[UIView(Geometry) resizeWithOldSuperviewSize:] + 274
11 UIKit 0x356510bd -[UIView(Geometry) resizeSubviewsWithOldSize:] + 120
12 UIKit 0x356364e9 -[UIView(Geometry) setFrame:] + 336
13 UIKit 0x35688193 -[UIViewControllerWrapperView setFrame:] + 62
14 UIKit 0x35676079 -[UINavigationController _startTransition:fromViewController:toViewController:] + 960
15 UIKit 0x35675c43 -[UINavigationController _startDeferredTransitionIfNeeded] + 182
16 UIKit 0x35667d5d -[UINavigationController pushViewController:transition:forceImmediate:] + 640
17 UIKit 0x35667ad3 -[UINavigationController pushViewController:animated:] + 34
18 LeagueProject 0x0000917d -[splashView goToRootView] + 116
19 CoreFoundation 0x367bb571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
20 UIKit 0x3564dec9 -[UIApplication sendAction:to:from:forEvent:] + 84
21 UIKit 0x3564de69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
22 UIKit 0x3564de3b -[UIControl sendAction:to:forEvent:] + 38
23 UIKit 0x3564db8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
24 UIKit 0x3564e423 -[UIControl touchesEnded:withEvent:] + 342
25 UIKit 0x3564cbf5 -[UIWindow _sendTouchesForEvent:] + 368
26 UIKit 0x3564c56f -[UIWindow sendEvent:] + 262
27 UIKit 0x35635313 -[UIApplication sendEvent:] + 298
28 UIKit 0x35634c53 _UIApplicationHandleEvent + 5090
29 GraphicsServices 0x35f6fe77 PurpleEventCallback + 666
30 CoreFoundation 0x36822a97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
31 CoreFoundation 0x3682483f __CFRunLoopDoSource1 + 166
32 CoreFoundation 0x3682560d __CFRunLoopRun + 520
33 CoreFoundation 0x367b5ec3 CFRunLoopRunSpecific + 230
34 CoreFoundation 0x367b5dcb CFRunLoopRunInMode + 58
35 GraphicsServices 0x35f6f41f GSEventRunModal + 114
36 GraphicsServices 0x35f6f4cb GSEventRun + 62
37 UIKit 0x3565fd69 -[UIApplication _run] + 404
38 UIKit 0x3565d807 UIApplicationMain + 670
39 LeagueProject 0x000025a7 main + 82
40 LeagueProject 0x00002550 start + 40
)
terminate called after throwing an instance of 'NSException'
Your error is an index 0 beyond bounds for empty array error. Put breakpoints on the lines where you access arrays. When you find out which array is causing the problem, either the solution will be trivial, or you can add a bit more to your question and ask for further help.
It looks like the problem is in your implementation of [RootViewController tableView:numberOfRowsInSection:]. You are trying to access a member of a NSMutableArray that is empty - hence the error 'index 0 beyond bounds for empty array'.

Can't seem to get rid of key value coding-compliant error

This is the error i'm getting when i try and show a view controller modally inside my app:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<KVPasscodeViewController 0x8b815a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key instructionLabel.'
*** Call stack at first throw:
(
0 CoreFoundation 0x011185a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0126c313 objc_exception_throw + 44
2 CoreFoundation 0x011184e1 -[NSException raise] + 17
3 Foundation 0x00aea677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x00aea5e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0056630c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x0108e8cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x00564d23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00566ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x0041c628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x0041a134 -[UIViewController loadView] + 120
11 UIKit 0x0041a00e -[UIViewController view] + 56
12 UIKit 0x00418482 -[UIViewController contentScrollView] + 42
13 UIKit 0x00428f25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
14 UIKit 0x00427555 -[UINavigationController _layoutViewController:] + 43
15 UIKit 0x00428870 -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
16 UIKit 0x0042332a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
17 UIKit 0x0053e2e9 -[UILayoutContainerView layoutSubviews] + 226
18 QuartzCore 0x002a6a5a -[CALayer layoutSublayers] + 181
19 QuartzCore 0x002a8ddc CALayerLayoutIfNeeded + 220
20 QuartzCore 0x002a8ed0 -[CALayer layoutIfNeeded] + 111
21 UIKit 0x0041b58a -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 587
22 UIKit 0x0039255f -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 4347
23 UIKit 0x00619619 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1381
24 UIKit 0x0041e65d -[UIViewController presentModalViewController:withTransition:] + 3478
25 DearMe 0x00011ca1 -[NotificationViewController addPasscode] + 273
26 UIKit 0x0036a4fd -[UIApplication sendAction:to:from:forEvent:] + 119
27 UIKit 0x003fa799 -[UIControl sendAction:to:forEvent:] + 67
28 UIKit 0x003fcc2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
29 UIKit 0x003fb7d8 -[UIControl touchesEnded:withEvent:] + 458
30 UIKit 0x0038eded -[UIWindow _sendTouchesForEvent:] + 567
31 UIKit 0x0036fc37 -[UIApplication sendEvent:] + 447
32 UIKit 0x00374f2e _UIApplicationHandleEvent + 7576
33 GraphicsServices 0x015f2992 PurpleEventCallback + 1550
34 CoreFoundation 0x010f9944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
35 CoreFoundation 0x01059cf7 __CFRunLoopDoSource1 + 215
36 CoreFoundation 0x01056f83 __CFRunLoopRun + 979
37 CoreFoundation 0x01056840 CFRunLoopRunSpecific + 208
38 CoreFoundation 0x01056761 CFRunLoopRunInMode + 97
39 GraphicsServices 0x015f11c4 GSEventRunModal + 217
40 GraphicsServices 0x015f1289 GSEventRun + 115
41 UIKit 0x00378c93 UIApplicationMain + 1160
42 DearMe 0x000029df main + 127
43 DearMe 0x00002955 start + 53
44 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Any ideas about why this might be caused?
EDIT: The code which gives the error:
KVPasscodeViewController *passcodeController = [[KVPasscodeViewController alloc] init];
passcodeController.delegate = self;
UINavigationController *passcodeNavigationController = [[UINavigationController alloc] initWithRootViewController:passcodeController];
[self.navigationController presentModalViewController:passcodeNavigationController animated:YES];
[passcodeNavigationController release];
[passcodeController release];
This is caused because you have an outlet pointing at 'instructionLabel' in the XIB for that view controller.
You have an .xib file that is most likely pointing to a nonexistent label. This typically happens if you add a UILabel in Interface Builder, attach it to your code where instructionLabel exists, then later remove instructionLabel from the code, but forget to update the .xib.

iPad Console Error Message Help

Can anyone help me decipher what's causing my program to crash? I've got a 5 tab bar controller set up, when I load each tab bar, i'm loading a custom table cell with data from a plist file.
this is the error message output to console;
[Session started at 2011-04-28 12:53:05 +0100.]
2011-04-28 12:53:09.344 FiveTabView[62565:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "Drinks" nib but didn't get a UITableView.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00db3be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f085c2 objc_exception_throw + 47
2 CoreFoundation 0x00d6c628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x00d6c59a +[NSException raise:format:] + 58
4 UIKit 0x004c1324 -[UITableViewController loadView] + 275
5 UIKit 0x0036a5e3 -[UIViewController view] + 56
6 UIKit 0x0037d230 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 120
7 UIKit 0x0037bd86 -[UITabBarController transitionFromViewController:toViewController:] + 64
8 UIKit 0x0037db7e -[UITabBarController _setSelectedViewController:] + 263
9 UIKit 0x0037d9ed -[UITabBarController _tabBarItemClicked:] + 352
10 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
11 UIKit 0x004ba1f2 -[UITabBar _sendAction:withEvent:] + 422
12 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
13 UIKit 0x0034b1b5 -[UIControl sendAction:to:forEvent:] + 67
14 UIKit 0x0034d647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
15 UIKit 0x0034b16c -[UIControl sendActionsForControlEvents:] + 49
16 UIKit 0x002bca6e -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x0034b1b5 -[UIControl sendAction:to:forEvent:] + 67
18 UIKit 0x0034d647 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
19 UIKit 0x0034c1f4 -[UIControl touchesEnded:withEvent:] + 458
20 UIKit 0x002e10d1 -[UIWindow _sendTouchesForEvent:] + 567
21 UIKit 0x002c237a -[UIApplication sendEvent:] + 447
22 UIKit 0x002c7732 _UIApplicationHandleEvent + 7576
23 GraphicsServices 0x016e9a36 PurpleEventCallback + 1550
24 CoreFoundation 0x00d95064 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
25 CoreFoundation 0x00cf56f7 __CFRunLoopDoSource1 + 215
26 CoreFoundation 0x00cf2983 __CFRunLoopRun + 979
27 CoreFoundation 0x00cf2240 CFRunLoopRunSpecific + 208
28 CoreFoundation 0x00cf2161 CFRunLoopRunInMode + 97
29 GraphicsServices 0x016e8268 GSEventRunModal + 217
30 GraphicsServices 0x016e832d GSEventRun + 115
31 UIKit 0x002cb42e UIApplicationMain + 1160
32 FiveTabView 0x00002420 main + 102
33 FiveTabView 0x000023b1 start + 53
34 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Looks like you are calling setValue:forKey: on an object that has been uninitialised (and the memory pointer is pointing elsewhere) or you are actually calling it on the wrong object?

iPhone app crashing after a quick stop/restart

So my app is crashing when the app is stopped and then restarted really fast here's the stack trace:
It looks like the UITabBar is trying to access a view that is null, hence the exc_bad_access. I'm confused as to why it only happens on the restart, also my tabbar is created fully in IB. Any thoughts would be great.
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread: 0
0x30183f24 objc_msgSend + 24
1 Inspirational Quotes 0x00009900 0x1000 + 35072
2 UIKit 0x338c37b4 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 212
3 UIKit 0x338c36cc -[UITabBarController transitionFromViewController:toViewController:] + 32
4 UIKit 0x338c2d38 -[UITabBarController _setSelectedViewController:] + 248
5 UIKit 0x339cbc44 -[UITabBarController setSelectedViewController:] + 12
6 UIKit 0x339cc888 -[UITabBarController _tabBarItemClicked:] + 308
7 CoreFoundation 0x35eada3c -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
8 UIKit 0x3384af18 -[UIApplication sendAction:to:from:forEvent:] + 128
9 UIKit 0x3384ae80 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
10 UIKit 0x33ab1ed8 -[UITabBar _sendAction:withEvent:] + 416
11 CoreFoundation 0x35eada3c -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
12 UIKit 0x3384af18 -[UIApplication sendAction:to:from:forEvent:] + 128
13 UIKit 0x3384ae80 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
14 UIKit 0x3384ae48 -[UIControl sendAction:to:forEvent:] + 44
15 UIKit 0x3384aa98 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 528
16 UIKit 0x3388f338 -[UIControl sendActionsForControlEvents:] + 16
17 UIKit 0x33aae560 -[UITabBar(Static) _buttonUp:] + 108
18 CoreFoundation 0x35eada3c -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
19 UIKit 0x3384af18 -[UIApplication sendAction:to:from:forEvent:] + 128
20 UIKit 0x3384ae80 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
21 UIKit 0x3384ae48 -[UIControl sendAction:to:forEvent:] + 44
22 UIKit 0x3384aa98 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 528
23 UIKit 0x3384b5c4 -[UIControl touchesEnded:withEvent:] + 452
24 UIKit 0x3383cea8 -[UIWindow _sendTouchesForEvent:] + 580
25 UIKit 0x3383c4dc -[UIWindow sendEvent:] + 388
26 UIKit 0x3381fc94 -[UIApplication sendEvent:] + 444
27 UIKit 0x3381f3ac _UIApplicationHandleEvent + 6816
28 GraphicsServices 0x35262c80 PurpleEventCallback + 1040
29 CoreFoundation 0x35e9a5c4 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 22
30 CoreFoundation 0x35e9a582 __CFRunLoopDoSource1 + 158
31 CoreFoundation 0x35e8c82e __CFRunLoopRun + 574
32 CoreFoundation 0x35e8c504 CFRunLoopRunSpecific + 220
33 CoreFoundation 0x35e8c412 CFRunLoopRunInMode + 54
34 GraphicsServices 0x35261d1c GSEventRunModal + 188
35 UIKit 0x33865574 -[UIApplication _run] + 580
36 UIKit 0x33862550 UIApplicationMain + 964
37 Inspirational Quotes 0x00002b96 0x1000 + 7062
38 Inspirational Quotes 0x00002b0c 0x1000 + 6924
You got the exception exc_bad_access, I think your nib file is not connected properly.Connect your tab bar with a tab bar controller.
To Avoid from crashing use Exception Handling, here is the following links which may help you.
throwing an exception in objective-c/cocoa
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocExceptionHandling.html