Rare not reproducible crash related to UIKit - iphone

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

Related

reading crash logs itunes after app update

I'v released an update to my app in AppStore, it got accepted pretty quick. Yet, it crashes right after an update. If installed on clean device it works, yet crashes if older version was present... I guess I messed up something and I'm trying to figure out what. I get crash reports from itunes connect, yet they do not tell me quite much. In other crash logs which I'v seen on stackoverflow questions there is Class name, method name and line of crash. While all my crash reports contain only bytes which give me zero information where and what is wrong.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3231b3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3a01695e objc_exception_throw + 26
2 CoreFoundation 0x32266ef4 -[__NSArrayM objectAtIndex:] + 160
3 kodinisRaktas 0x000b939a 0x0009f000 + 107418
4 kodinisRaktas 0x000b9282 0x0009f000 + 107138
5 kodinisRaktas 0x000a2434 0x0009f000 + 13364
6 UIKit 0x34149574 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x3419e1f2 -[UIViewController contentScrollView] + 22
8 UIKit 0x3419e138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
9 UIKit 0x3419e01c -[UINavigationController _layoutViewController:] + 28
10 UIKit 0x3419df48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
11 UIKit 0x3419d694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
12 UIKit 0x3419d57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
13 UIKit 0x3416e55c -[UILayoutContainerView layoutSubviews] + 176
14 UIKit 0x3412d8c2 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
15 QuartzCore 0x33ed950e -[CALayer layoutSublayers] + 210
16 QuartzCore 0x33ed90b0 CA::Layer::layout_if_needed(CA::Transaction*) + 456
17 QuartzCore 0x33f07eca -[CALayer layoutIfNeeded] + 138
18 UIKit 0x341d70dc -[UIViewController window:setupWithInterfaceOrientation:] + 204
19 UIKit 0x341d62c6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3598
20 UIKit 0x341d54aa -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
21 UIKit 0x341d5434 -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
22 UIKit 0x3430acb4 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
23 UIKit 0x3419367e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
24 UIKit 0x341933c2 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 690
25 UIKit 0x34192d2a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 150
26 UIKit 0x34189e86 -[UIWindow addRootViewControllerViewIfPossible] + 366
27 UIKit 0x341d4ef2 -[UIWindow setRootViewController:] + 658
28 kodinisRaktas 0x000a1bd4 0x0009f000 + 11220
29 kodinisRaktas 0x000a18f6 0x0009f000 + 10486
30 UIKit 0x3418aa9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
31 UIKit 0x3418a620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
32 UIKit 0x3418282e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
33 UIKit 0x3412ad1a -[UIApplication handleEvent:withNewEvent:] + 1006
34 UIKit 0x3412a7a8 -[UIApplication sendEvent:] + 68
35 UIKit 0x3412a1ea _UIApplicationHandleEvent + 6194
36 GraphicsServices 0x35e425f2 _PurpleEventCallback + 586
37 GraphicsServices 0x35e42222 PurpleEventCallback + 30
38 CoreFoundation 0x322f03e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
39 CoreFoundation 0x322f0386 __CFRunLoopDoSource1 + 134
40 CoreFoundation 0x322ef20a __CFRunLoopRun + 1378
41 CoreFoundation 0x32262238 CFRunLoopRunSpecific + 352
42 CoreFoundation 0x322620c4 CFRunLoopRunInMode + 100
43 UIKit 0x34181468 -[UIApplication _run] + 664
44 UIKit 0x3417e2b4 UIApplicationMain + 1116
45 kodinisRaktas 0x000a0d96 0x0009f000 + 7574
46 kodinisRaktas 0x000a0d4c 0x0009f000 + 7500
I can't reproduce the crash on my own device, so this is all I got to determine the crash source. Any ideas ?
You should symbolicate the crash log by opening it in Xcode and clicking Re-symbolicate. If this doesn't work you can do something like this How to Manually Symbolicate iOS Crash to View Crash Logs

App works fine on Debug but not on AdHoc

I have an App that works perfectly on Debug (device and simulator) but once I archive it for AdHoc it just crashes.
Even with the Distribution provision files selected y clic play and works fine.
Now if I make an .ipa through AdHoc... it loads and crashes... 1seg... not even open.
I guess maybe something is wrong, but how on earth I can find the bug if there's any? I don't have any log message and it's a big big App.
Any idea?
Thanks.
By the way, this is what I get:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x38af35d0 objc_msgSend + 16
1 CoreFoundation 0x39a0d4e8 CFURLCopyScheme + 144
2 CoreGraphics 0x318e6e28 CGDataProviderCreateWithURL + 44
3 CoreGraphics 0x318ffc5c CGPDFDocumentCreateWithURL + 4
4 READERSoft 0x000e10f0 CGPDFDocumentCreateX (CGPDFDocument.m:42)
5 READERSoft 0x000aeab4 -[ContentViewController viewDidLoad] (ContentViewController.m:56)
6 UIKit 0x332ce544 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x3330ed2c -[UIWindow addRootViewControllerViewIfPossible] + 60
8 UIKit 0x3330aac8 -[UIWindow _setHidden:forced:] + 360
9 UIKit 0x3334c19c -[UIWindow makeKeyAndVisible] + 56
10 READERSoft 0x000b618a -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:44)
11 UIKit 0x3330fa74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
12 UIKit 0x3330f5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
13 UIKit 0x33307806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
14 UIKit 0x332afcea -[UIApplication handleEvent:withNewEvent:] + 1006
15 UIKit 0x332af778 -[UIApplication sendEvent:] + 68
16 UIKit 0x332af1ba _UIApplicationHandleEvent + 6194
17 GraphicsServices 0x39b435f4 _PurpleEventCallback + 588
18 GraphicsServices 0x39b43222 PurpleEventCallback + 30
19 CoreFoundation 0x39a743e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
20 CoreFoundation 0x39a74386 __CFRunLoopDoSource1 + 134
21 CoreFoundation 0x39a7320a __CFRunLoopRun + 1378
22 CoreFoundation 0x399e6238 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x399e60c4 CFRunLoopRunInMode + 100
24 UIKit 0x33306440 -[UIApplication _run] + 664
25 UIKit 0x3330328c UIApplicationMain + 1116
26 READERSoft 0x000b5f5a main (main.m:9)
27 READERSoft 0x000ae89c start + 36

NSLocalizedString app crashed during run

i am creating an app which contains lots of label and text value etc... on registration page
without localisation my app working perfect but after doing localization i got error
-[UILabel charValue]: unrecognized selector sent to instance 0x765b980
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILabel charValue]: unrecognized selector sent to instance 0x765b980'
* Call stack at first throw:
(
0 CoreFoundation 0x02aa7b99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x02bf740e objc_exception_throw + 47
2 CoreFoundation 0x02aa96ab -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x02a192b6 ___forwarding___ + 966
4 CoreFoundation 0x02a18e72 _CF_forwarding_prep_0 + 50
5 Foundation 0x001ebc2c _NSSetCharValueForKeyInIvar + 68
6 Foundation 0x00157152 _NSSetUsingKeyValueSetter + 230
7 Foundation 0x00157061 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
8 UIKit 0x005d570a -[UIRuntimeOutletConnection connect] + 112
9 CoreFoundation 0x02a1dded -[NSArray makeObjectsPerformSelector:] + 461
10 UIKit 0x005d4121 -[UINib instantiateWithOwner:options:] + 1041
11 UIKit 0x005d5eb5 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
12 UIKit 0x0048b95f -[UIViewController _loadViewFromNibNamed:bundle:] + 70
13 UIKit 0x00489675 -[UIViewController loadView] + 120
14 UIKit 0x0048954f -[UIViewController view] + 56
15 UIKit 0x004879f4 -[UIViewController contentScrollView] + 42
16 UIKit 0x004977e2 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
17 UIKit 0x00495ea3 -[UINavigationController _layoutViewController:] + 43
18 UIKit 0x0049712d -[UINavigationController _startTransition:fromViewController:toViewController:] + 524
19 UIKit 0x00491ccd -[UINavigationController _startDeferredTransitionIfNeeded] + 266
20 UIKit 0x00498d8b -[UINavigationController pushViewController:transition:forceImmediate:] + 876
21 UIKit 0x00491b67 -[UINavigationController pushViewController:animated:] + 62
22 Buzzador 0x000039b8 -[BuzzadorViewController newuserBtnPressed] + 146
23 UIKit 0x003df7f8 -[UIApplication sendAction:to:from:forEvent:] + 119
24 UIKit 0x0046ade0 -[UIControl sendAction:to:forEvent:] + 67
25 UIKit 0x0046d262 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
26 UIKit 0x0046c053 -[UIControl touchesBegan:withEvent:] + 277
27 UIKit 0x00403324 -[UIWindow _sendTouchesForEvent:] + 395
28 UIKit 0x003e4cb4 -[UIApplication sendEvent:] + 447
29 UIKit 0x003e99bf _UIApplicationHandleEvent + 7672
30 GraphicsServices 0x030d0822 PurpleEventCallback + 1550
31 CoreFoundation 0x02a88ff4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
32 CoreFoundation 0x029e9807 __CFRunLoopDoSource1 + 215
33 CoreFoundation 0x029e6a93 __CFRunLoopRun + 979
34 CoreFoundation 0x029e6350 CFRunLoopRunSpecific + 208
35 CoreFoundation 0x029e6271 CFRunLoopRunInMode + 97
36 GraphicsServices 0x030cf00c GSEventRunModal + 217
37 GraphicsServices 0x030cf0d1 GSEventRun + 115
38 UIKit 0x003edaf2 UIApplicationMain + 1160
39 Buzzador 0x00002610 main + 102
40 Buzzador 0x000025a1 start + 53
)
terminate called after throwing an instance of 'NSException'
all other page work perfect with localization accept this registration.
please help me
Maybe you meant - [UILabel text] instead of - [UILabel charValue]?
i find the solution.. i removed all unused variables.. and it works fine...
thanx to all

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