EXC_BAD_ACCESS KERN_INVALID_ADDRESS at SFApplication sendEvent - objective-c

Getting this error intermittently in production. Fails on objMsgSend for isKindOfClass. Having difficulty reproducing in development, would like to be able to do so. Have tried showing and dismissing the UIAlertController with other view controllers on the screen, moving to and from background etc. EDIT: Have now been able to reproduce this. Occurs when the UIAlertController appears with (shows underneath) an existing popover in the app. EDIT2: Appears to be an issue on iOS8, but less frequent although still occurring in iOS9
Thread : Crashed: com.apple.main-thread 0 libobjc.A.dylib
0x0000000194d8bbd0 objc_msgSend + 16 1 UIKit
0x0000000188a2d384 -[UIWindow setDelegate:] + 132 2 UIKit
0x0000000188cb5cd4 -[UIPresentationController
runTransitionForCurrentState] + 592 3 UIKit
0x0000000188cd1cd8 -[UIViewController
_dismissViewControllerWithAnimationController:interactionController:completion:]
+ 672 4 UIKit 0x0000000188ae0258 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 852 5 UIKit 0x0000000188a8875c -[UIViewController
dismissViewControllerWithTransition:completion:] + 952 6 UIKit
0x0000000188a88344 -[UIViewController
dismissViewControllerAnimated:completion:] + 252 7 UIKit
0x0000000188d84d7c -[UIAlertController
_dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:] + 420 8 UIKit 0x00000001889ac750
_UIGestureRecognizerUpdate + 8536 9 UIKit 0x00000001889e68dc -[UIWindow _sendGesturesForEvent:] + 1044 10 UIKit
0x00000001889e5f7c -[UIWindow sendEvent:] + 660 11 UIKit
0x00000001889b968c -[UIApplication sendEvent:] + 264 12 iPath
0x000000010023c3cc -[SFApplication sendEvent:] (SFApplication.m:72) 13
UIKit 0x0000000188c5860c
_UIApplicationHandleEventFromQueueEvent + 14992 14 UIKit 0x00000001889b7bf4 _UIApplicationHandleEventQueue + 1616 15
CoreFoundation 0x00000001841c29ec
CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 16 CoreFoundation 0x00000001841c1c90
__CFRunLoopDoSources0 + 264 17 CoreFoundation 0x00000001841bfd40 __CFRunLoopRun + 712 18 CoreFoundation
0x00000001840ed0a4 CFRunLoopRunSpecific + 396 19 GraphicsServices
0x000000018d25b5a4 GSEventRunModal + 168 20 UIKit
0x0000000188a1eaa4 UIApplicationMain + 1488 21 iPath
0x00000001000ca308 main (main.m:33) 22 libdyld.dylib
0x00000001953e6a08 start + 4

Related

iOS app crashing for apple review team and can't replicate

My app is crashing for the apple review team but I can't replicate the issue. They sent me the crash log.
Incident Identifier:
CrashReporter Key: d91f018f5afc31f948a80025c7a09bb112a3caf4
Hardware Model: iPhone3,1
Process:
Path:
Identifier:
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-12 09:27:55.479 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3766b88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x35370259 objc_exception_throw + 33
2 CoreFoundation 0x3766ea9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x3766d915 ___forwarding___ + 301
4 CoreFoundation 0x375c8650 _CF_forwarding_prep_0 + 48
5 Sportal_TDF 0x00031515 -[MenuViewController showStageList:] (MenuViewController.m:62)
6 CoreFoundation 0x375ca1fb -[NSObject performSelector:withObject:] + 43
7 Sportal_TDF 0x00005d93 -[DataViewControllerBase retrieveCachedJson:json:cacheAction:] (DataViewControllerBase.m:468)
8 Sportal_TDF 0x00005e57 -[DataViewControllerBase callWebService:json:cacheAction:successAction:] (DataViewControllerBase.m:480)
9 Sportal_TDF 0x000314f9 -[MenuViewController loadUpcomingStage] (MenuViewController.m:57)
10 Sportal_TDF 0x000317b9 -[MenuViewController viewWillAppear:] (MenuViewController.m:142)
11 UIKit 0x31381b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
12 UIKit 0x31525ad1 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_0 + 137
13 CoreFoundation 0x3765f631 __NSArrayEnumerate + 365
14 CoreFoundation 0x375c4ed5 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 65
15 UIKit 0x31381c39 -[UIViewController _setViewAppearState:isAnimating:] + 309
16 UIKit 0x31381a49 -[UIViewController viewWillMoveToWindow:] + 233
17 UIKit 0x31342b05 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 529
18 UIKit 0x313424ab -[UIView(Internal) _addSubview:positioned:relativeTo:] + 303
19 UIKit 0x31342377 -[UIView(Hierarchy) addSubview:] + 31
20 UIKit 0x31377555 -[UIWindow addRootViewControllerViewIfPossible] + 289
21 UIKit 0x31369e87 -[UIWindow _setHidden:forced:] + 295
22 UIKit 0x313da7d5 -[UIWindow makeKeyAndVisible] + 25
23 Sportal_TDF 0x000030b3 -[Sportal_TDFAppDelegate application:didFinishLaunchingWithOptions:] (Sportal_TDFAppDelegate.m:107)
24 UIKit 0x31377cab -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1183
25 UIKit 0x313717dd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 409
26 UIKit 0x3133fac3 -[UIApplication handleEvent:withNewEvent:] + 1011
27 UIKit 0x3133f567 -[UIApplication sendEvent:] + 55
28 UIKit 0x3133ef3b _UIApplicationHandleEvent + 5827
29 GraphicsServices 0x33d8122b PurpleEventCallback + 883
30 CoreFoundation 0x3763f523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
31 CoreFoundation 0x3763f4c5 __CFRunLoopDoSource1 + 141
32 CoreFoundation 0x3763e313 __CFRunLoopRun + 1371
33 CoreFoundation 0x375c14a5 CFRunLoopRunSpecific + 301
34 CoreFoundation 0x375c136d CFRunLoopRunInMode + 105
35 UIKit 0x3137086b -[UIApplication _run] + 551
36 UIKit 0x3136dcd5 UIApplicationMain + 1081
37 0x00002a07 main (main.m:16)
38 0x000029a0 0x1000 + 6560
It is crashing on line
#autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
How can I debug when I can't replicate the issue? Has anyone experienced this issue. My app was working fine in previous versions but this time it is crashing in 5.1.1. Any help would be greatly appreciated.
What does [MenuViewController showStageList:] contain on line 62!?
Obviously you are calling a method, that's non existent: [NSObject doesNotRecognizeSelector:].

App Crashes without going through my code

While analyzing our crash logs I discovered that a fairly common crash is one that does not even occur in one of my own classes. These are external crash logs and I can't therefore not reproduce the problem.
Since I can't debug the Framework I am wondering, what a practicable approach could be to tackle this issue.
The only clue I have is that SIGSEGV might be a segmentation fault or an invalid pointer. But like I said since my Classes do not seem to be directly involved this does not help me much.
The Crash:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x6b636f6c
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x365c7f94 objc_msgSend + 43
1 CoreFoundation 0x31cd23fd -[NSObject performSelector:withObject:withObject:] + 52
2 UIKit 0x3291cfaf -[UIApplication sendAction:to:from:forEvent:] + 62
3 UIKit 0x3291cf6b -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
4 UIKit 0x3291cf49 -[UIControl sendAction:to:forEvent:] + 44
5 UIKit 0x3291ccb9 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 492
6 UIKit 0x3291d5f1 -[UIControl touchesEnded:withEvent:] + 476
7 UIKit 0x3291bad3 -[UIWindow _sendTouchesForEvent:] + 318
8 UIKit 0x3291b4c1 -[UIWindow sendEvent:] + 380
9 UIKit 0x3290183d -[UIApplication sendEvent:] + 356
10 UIKit 0x329010e3 _UIApplicationHandleEvent + 5826
11 GraphicsServices 0x3572d22b PurpleEventCallback + 882
12 CoreFoundation 0x31d4c523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
13 CoreFoundation 0x31d4c4c5 __CFRunLoopDoSource1 + 140
14 CoreFoundation 0x31d4b313 __CFRunLoopRun + 1370
15 CoreFoundation 0x31cce4a5 CFRunLoopRunSpecific + 300
16 CoreFoundation 0x31cce36d CFRunLoopRunInMode + 104
17 GraphicsServices 0x3572c439 GSEventRunModal + 136
18 UIKit 0x3292fe7d UIApplicationMain + 1080
19 MyApp 0x0000321f main (main.m:14)
This crash is likely a result of an error on your part. If you look at few of lines at the top of the stack trace it should give you a hint as to what is wrong.
1 CoreFoundation 0x31cd23fd -[NSObject performSelector:withObject:withObject:] + 52
2 UIKit 0x3291cfaf -[UIApplication sendAction:to:from:forEvent:] + 62
3 UIKit 0x3291cf6b -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
4 UIKit 0x3291cf49 -[UIControl sendAction:to:forEvent:] + 44
It looks like somewhere you have an object (possibly a view controller) that is registered for events but is deallocated too soon. The best thing to do is try to reproduce this while attached to the debugger. Start by checking code that handles UIControl callbacks such as UIButtons.

Bizarre key-value coding error for basic UILabel

This is a new one. I'm testing that my various viewcontrollers are getting loaded by my tab bar, so I put this on one of them:
- (void)viewDidLoad
{
[super viewDidLoad];
UILabel*yo=[[UILabel alloc] init];
self.testlabel=yo;
self.testlabel.text=[NSString stringWithFormat:#"sup"];
[yo release];
This is what I get when I click the tab button for that controller:
2011-07-26 14:05:37.773 Pickers[802:707] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key testlabel.'*
What in the world?! I must be doing something exceptionally basic and wrong here. Can anyone spot it?
I've got this in the .h and .m:
#interface SingleVC : UIViewController
#property (nonatomic, retain) IBOutlet UILabel*testlabel;
#end
and
#implementation SingleVC
#synthesize testlabel;
I get the following stack errors (which I do not know how to read):
*** Call stack at first throw:
(
0 CoreFoundation 0x00dc25a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f16313 objc_exception_throw + 44
2 CoreFoundation 0x00dc24e1 -[NSException raise] + 17
3 Foundation 0x00794677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x007945e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x0021030c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00d388cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x0020ed23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00210ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x000c6628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x000c4134 -[UIViewController loadView] + 120
11 UIKit 0x000c400e -[UIViewController view] + 56
12 UIKit 0x000d6f54 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 120
13 UIKit 0x000d5aaa -[UITabBarController transitionFromViewController:toViewController:] + 64
14 UIKit 0x000d78a2 -[UITabBarController _setSelectedViewController:] + 263
15 UIKit 0x000d7711 -[UITabBarController _tabBarItemClicked:] + 352
16 UIKit 0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
17 UIKit 0x00216ce6 -[UITabBar _sendAction:withEvent:] + 422
18 UIKit 0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
19 UIKit 0x000a4799 -[UIControl sendAction:to:forEvent:] + 67
20 UIKit 0x000a6c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
21 UIKit 0x000a4750 -[UIControl sendActionsForControlEvents:] + 49
22 UIKit 0x000144fd -[UIApplication sendAction:to:from:forEvent:] + 119
23 UIKit 0x000a4799 -[UIControl sendAction:to:forEvent:] + 67
24 UIKit 0x000a6c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
25 UIKit 0x000a57d8 -[UIControl touchesEnded:withEvent:] + 458
26 UIKit 0x00038ded -[UIWindow _sendTouchesForEvent:] + 567
27 UIKit 0x00019c37 -[UIApplication sendEvent:] + 447
28 UIKit 0x0001ef2e _UIApplicationHandleEvent + 7576
29 GraphicsServices 0x00ffb992 PurpleEventCallback + 1550
30 CoreFoundation 0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
31 CoreFoundation 0x00d03cf7 __CFRunLoopDoSource1 + 215
32 CoreFoundation 0x00d00f83 __CFRunLoopRun + 979
33 CoreFoundation 0x00d00840 CFRunLoopRunSpecific + 208
34 CoreFoundation 0x00d00761 CFRunLoopRunInMode + 97
35 GraphicsServices 0x00ffa1c4 GSEventRunModal + 217
36 GraphicsServices 0x00ffa289 GSEventRun + 115
37 UIKit 0x00022c93 UIApplicationMain + 1160
38 Pickers 0x000025c9 main + 121
39 Pickers 0x00002545 start + 53
)
terminate called throwing an exceptionCurrent language: auto; currently objective-c
kill
quit
So after some Googling on other sites, it turns out that quite a few people have had this exact same and basic problem. I found the solution here:
https://discussions.apple.com/thread/1598422?threadID=1598422
I was checking my classes within the individual nibs of each controller, but you must also set the classes in the tab controller as well, for each item (I had already set the nib name for each tab bar item, but not the class).
so, problem resolved and was, as expected, quite basic.
It's a stumper why the error created was for key value coding, though.
perhaps a connection in IB from some object that formerly had an IBOutlet called testlabel?
stop the debugger in ObjC Exceptions and post your stack trace if it's not obvious

Weird problems with program and debugger in xcode

Okay, I have a program that I'm trying to test on my iPad. I have it all set up so that the app is able to get on the iPad just fine, but running it on the iPad is a different story.
Now, the thing is, my program was working fine on the debug configuration, but now it won't work on that, either. It's strange, because before I was able to get to a certain part of the program before it crashed, but now it's crashing before that.
The debugger is hardly helping. When I use the debugger window, it will step into one line of code, and then suddenly jump back to another line of code.
I really don't understand what's going on. The crash is now occuring in a root view controller that I have set up, called 'FunctionMachineViewController. Here's the code for when it crashes:
-(IBAction)startOnePlayer:(id)sender
{
GameViewController* GameView = [[GameViewController alloc] initWithNibName:nil bundle:nil];
[GameView isOnePlayer:YES withLevel:startLevelNumber];
[self presentModalViewController:GameView animated:YES];
}
GameViewController is supposed to initialize just fine, but the debugger shows it as uninitialized. I even tried setting it up in the header file instead, but the problem still happens. Has anyone else come across these problems? Any help would be greatly appreciated!
EDIT: Here's what the console says when it crashes:
[Session started at 2011-06-02 21:46:10 -0700.]
2011-06-02 21:46:13.309 FunctionMachine[5033:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<GameViewController 0x4b2a890> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Yminus2.'
*** Call stack at first throw:
(
0 CoreFoundation 0x00dd55a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x00f29313 objc_exception_throw + 44
2 CoreFoundation 0x00dd54e1 -[NSException raise] + 17
3 Foundation 0x0003d677 _NSSetUsingKeyValueSetter + 135
4 Foundation 0x0003d5e5 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x004c130c -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x00d4b8cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x004bfd23 -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x004c1ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x00377628 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x00375134 -[UIViewController loadView] + 120
11 UIKit 0x0037500e -[UIViewController view] + 56
12 UIKit 0x00376a3d -[UIViewController viewControllerForRotation] + 63
13 UIKit 0x00372988 -[UIViewController _visibleView] + 90
14 UIKit 0x0061493c -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 354
15 UIKit 0x002ec81e -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 954
16 UIKit 0x00574619 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 1381
17 UIKit 0x0037965d -[UIViewController presentModalViewController:withTransition:] + 3478
18 FunctionMachine 0x00001fdd -[FunctionMachineViewController startOnePlayer:] + 227
19 UIKit 0x002c54fd -[UIApplication sendAction:to:from:forEvent:] + 119
20 UIKit 0x00355799 -[UIControl sendAction:to:forEvent:] + 67
21 UIKit 0x00357c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
22 UIKit 0x00356a1c -[UIControl touchesBegan:withEvent:] + 277
23 UIKit 0x002e9d41 -[UIWindow _sendTouchesForEvent:] + 395
24 UIKit 0x002cac37 -[UIApplication sendEvent:] + 447
25 UIKit 0x002cff2e _UIApplicationHandleEvent + 7576
26 GraphicsServices 0x0172d992 PurpleEventCallback + 1550
27 CoreFoundation 0x00db6944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
28 CoreFoundation 0x00d16cf7 __CFRunLoopDoSource1 + 215
29 CoreFoundation 0x00d13f83 __CFRunLoopRun + 979
30 CoreFoundation 0x00d13840 CFRunLoopRunSpecific + 208
31 CoreFoundation 0x00d13761 CFRunLoopRunInMode + 97
32 GraphicsServices 0x0172c1c4 GSEventRunModal + 217
33 GraphicsServices 0x0172c289 GSEventRun + 115
34 UIKit 0x002d3c93 UIApplicationMain + 1160
35 FunctionMachine 0x00001c64 main + 102
36 FunctionMachine 0x00001bf5 start + 53
37 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
Turns out that, when I went and changed the name of several UILabels in the header of GameViewController, I forgot to fix the names in the interface builder, too. Don't know if that was what was causing the debugger to act weird, but everything is working now!

Linking Label to IBOutlet gives NSUnknownKeyException

I have created a TabBarView. On one of the tabs, I have a View with several Labels on it. It works fine.
When I connect the Labels in Interface Builder to the File's Owner (the corresponding IBOutlets) then the App crashes with the following error when I open that tab:
2011-05-15 18:36:29.070 AeroNav[958:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x18afe0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key speedLabel.'
*** Call stack at first throw:
(
0 CoreFoundation 0x312a664f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x34a07c5d objc_exception_throw + 24
2 CoreFoundation 0x312a63cd -[NSException dealloc] + 0
3 Foundation 0x351c7edb -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 182
4 Foundation 0x351809cb _NSSetUsingKeyValueSetter + 90
5 Foundation 0x35180217 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 194
6 Foundation 0x3516242f -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 130
7 UIKit 0x369848df -[UIRuntimeOutletConnection connect] + 66
8 CoreFoundation 0x3123ed7b -[NSObject(NSObject) performSelector:] + 18
9 CoreFoundation 0x3123e99d -[NSArray makeObjectsPerformSelector:] + 388
10 UIKit 0x36983847 -[UINib instantiateWithOwner:options:] + 586
11 UIKit 0x36984e09 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92
12 UIKit 0x368fe5e9 -[UIViewController _loadViewFromNibNamed:bundle:] + 36
13 UIKit 0x368cbfa5 -[UIViewController loadView] + 80
14 UIKit 0x367b0ebf -[UIViewController view] + 30
15 UIKit 0x367ee1db -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 66
16 UIKit 0x367ee18d -[UITabBarController transitionFromViewController:toViewController:] + 32
17 UIKit 0x367eda33 -[UITabBarController _setSelectedViewController:] + 186
18 UIKit 0x36872ceb -[UITabBarController setSelectedViewController:] + 14
19 UIKit 0x36872be7 -[UITabBarController _tabBarItemClicked:] + 226
20 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
21 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
22 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
23 UIKit 0x36872a8b -[UITabBar _sendAction:withEvent:] + 270
24 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
25 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
26 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
27 UIKit 0x36796e3b -[UIControl sendAction:to:forEvent:] + 38
28 UIKit 0x36796b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
29 UIKit 0x367d0bd9 -[UIControl sendActionsForControlEvents:] + 16
30 UIKit 0x36872815 -[UITabBar(Static) _buttonUp:] + 80
31 CoreFoundation 0x31216571 -[NSObject(NSObject) performSelector:withObject:withObject:] + 24
32 UIKit 0x36796ec9 -[UIApplication sendAction:to:from:forEvent:] + 84
33 UIKit 0x36796e69 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 32
34 UIKit 0x36796e3b -[UIControl sendAction:to:forEvent:] + 38
35 UIKit 0x36796b8d -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 356
36 UIKit 0x36797423 -[UIControl touchesEnded:withEvent:] + 342
37 UIKit 0x36795bf5 -[UIWindow _sendTouchesForEvent:] + 368
38 UIKit 0x3679556f -[UIWindow sendEvent:] + 262
39 UIKit 0x3677e313 -[UIApplication sendEvent:] + 298
40 UIKit 0x3677dc53 _UIApplicationHandleEvent + 5090
41 GraphicsServices 0x36452e77 PurpleEventCallback + 666
42 CoreFoundation 0x3127da97 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
43 CoreFoundation 0x3127f83f __CFRunLoopDoSource1 + 166
44 CoreFoundation 0x3128060d __CFRunLoopRun + 520
45 CoreFoundation 0x31210ec3 CFRunLoopRunSpecific + 230
46 CoreFoundation 0x31210dcb CFRunLoopRunInMode + 58
47 GraphicsServices 0x3645241f GSEventRunModal + 114
48 GraphicsServices 0x364524cb GSEventRun + 62
49 UIKit 0x367a8d69 -[UIApplication _run] + 404
50 UIKit 0x367a6807 UIApplicationMain + 670
51 AeroNav 0x00002423 main + 70
52 AeroNav 0x000023d8 start + 40
)
terminate called after throwing an instance of 'NSException'
I have read that it can be related to the xib not matching (correctly connected) to its view controller. I have no idea how to check or fix that?
This is how my header file looks:
//Stats.h
#import <UIKit/UIKit.h>
#interface Stats : UIViewController
{
IBOutlet UILabel *speedLabel;
IBOutlet UILabel *headingLabel;
}
#end
If anybody has any tips or links to other similar posts, I would appreciate it!
Thank you in advance!