PLNotifyImagePickerOfImageAvailability crash - ios

UIImagePickerController crash on image capture.
Refer to logs captured by crashlytics:
*** setObjectForKey: object cannot be nil (key: UIImagePickerControllerOriginalImage)
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x182ec81c0 __exceptionPreprocess
1 libobjc.A.dylib 0x18190055c objc_exception_throw
2 CoreFoundation 0x182da979c -[__NSCFNumber hash]
3 PhotoLibrary 0x18f9e5974 __CreateInfoForImage
4 PhotoLibrary 0x18f9e564c PLNotifyImagePickerOfImageAvailability
5 CameraUI 0x198443d14 -[CAMImagePickerCameraViewController _handleCapturedImagePickerPhotoWithCropOverlayOutput:]
6 CameraUI 0x198443628 -[CAMImagePickerCameraViewController cropOverlayWasOKed:]
7 UIKit 0x188d467b0 -[UIApplication sendAction:to:from:forEvent:]
8 UIKit 0x188d46730 -[UIControl sendAction:to:forEvent:]
9 UIKit 0x188d30be4 -[UIControl _sendActionsForEvents:withEvent:]
10 UIKit 0x188d4601c -[UIControl touchesEnded:withEvent:]
11 UIKit 0x188d45b44 -[UIWindow _sendTouchesForEvent:]
12 UIKit 0x188d40d8c -[UIWindow sendEvent:]
13 UIKit 0x188d11858 -[UIApplication sendEvent:]
14 UIKit 0x1894fecb8 __dispatchPreprocessedEventFromEventQueue
15 UIKit 0x1894f8720 __handleEventQueue
16 CoreFoundation 0x182e76278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
17 CoreFoundation 0x182e75bc0 __CFRunLoopDoSources0
18 CoreFoundation 0x182e737c0 __CFRunLoopRun
19 CoreFoundation 0x182da2048 CFRunLoopRunSpecific
20 GraphicsServices 0x184825198 GSEventRunModal
21 UIKit 0x188d7c628 -[UIApplication _run]
22 UIKit 0x188d77360 UIApplicationMain
23 newbe 0x1002a2a60 main (AppDelegate.swift:22)
24 libdispatch.dylib 0x181d845b8 (Missing)

Related

iOS crash: -[UITextView(LinkInteraction) startInteractionWithLinkAtPoint:]

According to crashlytics, a few users are experiencing crashes on the following line
-[UITextView(LinkInteraction) startInteractionWithLinkAtPoint:]
I can't replicate it at all. This might be an iOS 11 issue because that seems to be version it is crashing on.
Here is the complete crash log.
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1849fed8c __exceptionPreprocess
1 libobjc.A.dylib 0x183bb85ec objc_exception_throw
2 CoreFoundation 0x1849febf8 +[NSException raise:format:]
3 Foundation 0x1853eefa0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UIKit 0x18f2daf3c -[UITextView(LinkInteraction) startInteractionWithLinkAtPoint:]
5 UIKit 0x18ed4597c -[UITextGestureClusterLinkInteract smallDelayRecognizer:]
6 UIKit 0x18e7ea6e8 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
7 UIKit 0x18ed573b4 _UIGestureRecognizerSendTargetActions
8 UIKit 0x18e94ce38 _UIGestureRecognizerSendActions
9 UIKit 0x18e7e9720 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
10 UIKit 0x18ed48bd4 _UIGestureEnvironmentUpdate
11 UIKit 0x18e7e34d8 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
12 UIKit 0x18e7e3010 -[UIGestureEnvironment _updateGesturesForEvent:window:]
13 UIKit 0x18e7e2874 -[UIWindow sendEvent:]
14 UIKit 0x18e7e11d0 -[UIApplication sendEvent:]
15 UIKit 0x18efc2d1c __dispatchPreprocessedEventFromEventQueue
16 UIKit 0x18efc52c8 __handleEventQueueInternal
17 UIKit 0x18efbe368 __handleHIDEventFetcherDrain
18 CoreFoundation 0x1849a7404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
19 CoreFoundation 0x1849a6c2c __CFRunLoopDoSources0
20 CoreFoundation 0x1849a479c __CFRunLoopRun
21 CoreFoundation 0x1848c4da8 CFRunLoopRunSpecific
22 GraphicsServices 0x1868a9020 GSEventRunModal
23 UIKit 0x18e8e1758 UIApplicationMain
24 MyApp 0x10441cc88 main (main.m:14)
25 libdyld.dylib 0x184355fc0 start
I've seen this stackoverflow post
UITextView startInteractionWithLinkAtPoint crash iOS 11 only
However, I don't want to disable drag and drop. Should I wait until Apple fixes this issue because this seems to be a bug on Apple's end.

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000c

my application keeps crashing because of the below error. I tried debugging it but am not able to understand why is it caused and how to debug and remove this..
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x335cef46 objc_msgSend + 5
1 UIKit 0x29307c2b -[UIApplication sendAction:to:from:forEvent:] + 70
2 UIKit 0x29307bd1 -[UIControl sendAction:to:forEvent:] + 44
3 UIKit 0x292f2863 -[UIControl _sendActionsForEvents:withEvent:] + 582
4 UIKit 0x2930763d -[UIControl touchesEnded:withEvent:] + 588
5 UIKit 0x29307317 -[UIWindow _sendTouchesForEvent:] + 522
6 UIKit 0x29300be1 -[UIWindow sendEvent:] + 544
7 UIKit 0x292d73dd -[UIApplication sendEvent:] + 196
8 UIKit 0x2954ac29 _UIApplicationHandleEventFromQueueEvent + 13888
9 UIKit 0x292d5e39 _UIApplicationHandleEventQueue + 1296
10 CoreFoundation 0x25dde377 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
11 CoreFoundation 0x25ddd787 __CFRunLoopDoSources0 + 218
12 CoreFoundation 0x25ddbded __CFRunLoopRun + 772
13 CoreFoundation 0x25d2a211 CFRunLoopRunSpecific + 476
14 CoreFoundation 0x25d2a023 CFRunLoopRunInMode + 106
15 GraphicsServices 0x2d1230a9 GSEventRunModal + 136
16 UIKit 0x293361d1 UIApplicationMain + 1440
17 Application 0x000ffefb main (main.m:17)

iOS app crashes on resume, no references to my code

iOS app crashes when resuming, no direct references to my app code
Recently, I started getting a rare crash on my iPad app when the app returns from the background after being suspended.
The only viable information in the crashed thread refers to system-level calls and I can’t seem to pinpoint root cause
especially considering it can take 50+ tries to reproduce. Here’s one hint: I know it only occurs on iOS 6.
Date/Time: 2014-08-14 09:37:03 +0000
OS Version: iPhone OS 6.1.2 (10B146)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x39827350
Crashed Thread: 0
Application Specific Information:
* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSMutableArray removeObjectsInRange:]: range {1, 1} extends beyond bounds [0 .. 0]'
Last Exception Backtrace:
0 CoreFoundation 0x316423e7 __exceptionPreprocess + 163
1 libobjc.A.dylib 0x39333963 objc_exception_throw + 28
2 CoreFoundation 0x315d97cd -[NSMutableArray removeObjectsInRange:] + 250
3 UIKit 0x334de2df -[UINavigationController popToViewController:transition:] + 592
4 UIKit 0x3358a789 -[UITabBarController _tabBarItemClicked:] + 230
5 UIKit 0x3353c087 -[UIApplication sendAction:to:from:forEvent:] + 68
6 UIKit 0x3353c03b -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 28
7 UIKit 0x3358a679 -[UITabBar _sendAction:withEvent:] + 382
8 UIKit 0x3353c087 -[UIApplication sendAction:to:from:forEvent:] + 68
9 UIKit 0x3353c03b -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 28
10 UIKit 0x3353c015 -[UIControl sendAction:to:forEvent:] + 42
11 UIKit 0x3353b8cb -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 500
12 UIKit 0x3353c087 -[UIApplication sendAction:to:from:forEvent:] + 68
13 UIKit 0x3353c03b -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 28
14 UIKit 0x3353c015 -[UIControl sendAction:to:forEvent:] + 42
15 UIKit 0x3353b8cb -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 500
16 UIKit 0x3353bdb9 -[UIControl touchesEnded:withEvent:] + 486
17 UIKit 0x334645f9 -[UIWindow _sendTouchesForEvent:] + 522
18 UIKit 0x334518e1 -[UIApplication sendEvent:] + 378
19 UIKit 0x334511ef _UIApplicationHandleEvent + 6196
20 GraphicsServices 0x351685f7 _PurpleEventCallback + 588
21 GraphicsServices 0x35168227 PurpleEventCallback + 32
22 CoreFoundation 0x316173e7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
23 CoreFoundation 0x3161738b __CFRunLoopDoSource1 + 136
24 CoreFoundation 0x3161620f __CFRunLoopRun + 1380
25 CoreFoundation 0x3158923d CFRunLoopRunSpecific + 354
26 CoreFoundation 0x315890c9 CFRunLoopRunInMode + 102
27 GraphicsServices 0x3516733b GSEventRunModal + 72
28 UIKit 0x334a52b9 UIApplicationMain + 1118
29 [my app name] 0x001e0917 main (main.m:14)
30 libdyld.dylib 0x39760b20 start + 2

terminating with uncaught exception of type NSException? 'NSInternalInconsistencyException' [duplicate]

This question already has an answer here:
Loaded the nib but didn't get a UITableView Exception
(1 answer)
Closed 8 years ago.
Today I ran my code that hasn't had any errors until now. Whenever someone clicks on the middle tab at the bottom the app crashes completely but all the other tabs work fine. Here's the call stack:
2014-07-01 16:27:19.848 Test Web[66180:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "lwz-qR-aDm-view-tp0-bK-7dP" nib but didn't get a UITableView.'
*** First throw call stack:
(
0 CoreFoundation 0x017f11e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015708e5 objc_exception_throw + 44
2 CoreFoundation 0x017f0fbb +[NSException raise:format:] + 139
3 UIKit 0x0050418e -[UITableViewController loadView] + 281
4 UIKit 0x0034f0d3 -[UIViewController loadViewIfRequired] + 78
5 UIKit 0x0034f5d9 -[UIViewController view] + 35
6 UIKit 0x0038711f -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 407
7 UIKit 0x00386943 -[UITabBarController transitionFromViewController:toViewController:] + 63
8 UIKit 0x00382bed -[UITabBarController _setSelectedViewController:] + 281
9 UIKit 0x00382acc -[UITabBarController setSelectedViewController:] + 180
10 UIKit 0x0038683f -[UITabBarController _tabBarItemClicked:] + 312
11 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
12 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
13 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
14 UIKit 0x004f6629 -[UITabBar _sendAction:withEvent:] + 479
15 libobjc.A.dylib 0x0158282b -[NSObject performSelector:withObject:] + 70
16 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
17 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
20 UIKit 0x00333c06 -[UIControl sendActionsForControlEvents:] + 48
21 UIKit 0x004fb23d -[UITabBar(Static) _buttonUp:] + 123
22 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
23 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
24 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
25 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
26 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
27 UIKit 0x00333243 -[UIControl touchesEnded:withEvent:] + 641
28 UIKit 0x00271ddd -[UIWindow _sendTouchesForEvent:] + 852
29 UIKit 0x002729d1 -[UIWindow sendEvent:] + 1117
30 UIKit 0x002445f2 -[UIApplication sendEvent:] + 242
31 UIKit 0x0022e353 _UIApplicationHandleEventQueue + 11455
32 CoreFoundation 0x0177a77f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
33 CoreFoundation 0x0177a10b __CFRunLoopDoSources0 + 235
34 CoreFoundation 0x017971ae __CFRunLoopRun + 910
35 CoreFoundation 0x017969d3 CFRunLoopRunSpecific + 467
36 CoreFoundation 0x017967eb CFRunLoopRunInMode + 123
37 GraphicsServices 0x037e55ee GSEventRunModal + 192
38 GraphicsServices 0x037e542b GSEventRun + 104
39 UIKit 0x00230f9b UIApplicationMain + 1225
40 Test Web 0x000031fd main + 141
41 libdyld.dylib 0x01e38701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've tried looking for a solution to this error and checking back over the storyboard but found nothing out of place. Any ideas on a fix?
UITableViewController needs an UITableView connected to it's view property.
Also make sure that the delegate and datasource are properly connected.
If you use xib, make sure that UITableView connected to fileOwner.tableView property.
You probably use xib file to make interface.

iOS 6 crashing with iAD

This app was released sevearl months ago and worked perfectly in iOS 4/5. Now getting crashes in some screens in iOS 6.
Fairly easy implementation. Have an AdBannerView in a xib. I wired it to the delagate. Have my delagate methods showing/hiding the ads. Here's the crash data.
Exception Type: EXC_CRASH (SIGABRT)
Last Exception Backtrace:
0 CoreFoundation 0x36d9b29e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x350ab97a objc_exception_throw + 26
2 CoreFoundation 0x36cec55a -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 130
3 CoreFoundation 0x36d230ce +[NSDictionary dictionaryWithObjects:forKeys:count:] + 46
4 iAd 0x3594c23e -[ADBannerView setDelegate:] + 126
5 Foundation 0x347b49cc -[NSObject(NSKeyValueCoding) setValue:forKey:] + 208
6 UIKit 0x382101dc -[UIView(CALayerDelegate) setValue:forKey:] + 156
7 Foundation 0x347b071e -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 294
8 CoreFoundation 0x36d21616 -[NSArray makeObjectsPerformSelector:] + 174
9 UIKit 0x38209240 -[UINib instantiateWithOwner:options:] + 1036
10 UIKit 0x38208abe -[UIViewController _loadViewFromNibNamed:bundle:] + 230
11 UIKit 0x38101020 -[UIViewController loadView] + 88
12 UIKit 0x3808b468 -[UIViewController loadViewIfRequired] + 64
13 UIKit 0x380e0136 -[UIViewController contentScrollView] + 22
14 UIKit 0x380e007c -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
15 UIKit 0x380dff60 -[UINavigationController _layoutViewController:] + 28
16 UIKit 0x380dfe84 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
17 UIKit 0x380df5c4 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
18 UIKit 0x380df4ac -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
19 UIKit 0x380cdb8e -[UINavigationController pushViewController:transition:forceImmediate:] + 854
20 UIKit 0x380cd82e -[UINavigationController pushViewController:animated:] + 34
21 Hurricane 0x00002d9a -[TrackerViewController buttonPressed:] (TrackerViewController.m:111)
22 UIKit 0x381570a8 -[UIApplication sendAction:to:from:forEvent:] + 68
23 UIKit 0x3815705a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
24 UIKit 0x38157038 -[UIControl sendAction:to:forEvent:] + 40
25 UIKit 0x381568ee -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
26 UIKit 0x38156de4 -[UIControl touchesEnded:withEvent:] + 484
27 UIKit 0x3807f5f4 -[UIWindow _sendTouchesForEvent:] + 520
28 UIKit 0x3806c804 -[UIApplication sendEvent:] + 376
29 UIKit 0x3806c11e _UIApplicationHandleEvent + 6150
30 GraphicsServices 0x3721f59e _PurpleEventCallback + 586
31 GraphicsServices 0x3721f1ce PurpleEventCallback + 30
32 CoreFoundation 0x36d7016e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
33 CoreFoundation 0x36d70112 __CFRunLoopDoSource1 + 134
34 CoreFoundation 0x36d6ef94 __CFRunLoopRun + 1380
35 CoreFoundation 0x36ce1eb8 CFRunLoopRunSpecific + 352
36 CoreFoundation 0x36ce1d44 CFRunLoopRunInMode + 100
37 GraphicsServices 0x3721e2e6 GSEventRunModal + 70
38 UIKit 0x380c02fc UIApplicationMain + 1116
39 Hurricane 0x00002082 main (main.m:14)
40 Hurricane 0x0000203c start + 36
If I unwire the AdBannerView it works. Rewire and crash. I don't have any dictioniaries in this particular controller. In fact, it only has 6 buttons leading to other screens. The real strange thing is that the code is used elsewhere in other screens which work fine. Obviously, it worked fine before.
Let me clear you, In iOS 6, there are some properties and methods deprecated for AdBannerView . i think this should be the reason of your crash.
Please check this
http://developer.apple.com/library/ios/DOCUMENTATION/UserExperience/Reference/ADBannerView_Ref/Reference/Reference.html#//apple_ref/doc/uid/TP40009562-CH1-DontLinkElementID_9

Resources