iOS App crash issue `[UIWindow warpPoint:]` - objective-c

I found a weird crash issue in my app, and I can't got enough message from the crash report.
Here is the crash report:
-[TileLayer _isChargeEnabled]: unrecognized selector sent to instance 0x14aeadb0
(null)
(
0 CoreFoundation 0x376298a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x3169e259 objc_exception_throw + 32
2 CoreFoundation 0x3762ca9b -[NSObject doesNotRecognizeSelector:] + 174
3 CoreFoundation 0x3762b915 ___forwarding___ + 300
4 CoreFoundation 0x37586650 _CF_forwarding_prep_0 + 48
5 UIKit 0x30775e43 -[UIWindow warpPoint:] + 686
6 UIKit 0x3075c1ff _UIApplicationHandleEvent + 2438
7 GraphicsServices 0x3777922b PurpleEventCallback + 882
8 CoreFoundation 0x375fd523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
9 CoreFoundation 0x375fd4c5 __CFRunLoopDoSource1 + 140
10 CoreFoundation 0x375fc313 __CFRunLoopRun + 1370
11 CoreFoundation 0x3757f4a5 CFRunLoopRunSpecific + 300
12 CoreFoundation 0x3757f36d CFRunLoopRunInMode + 104
13 GraphicsServices 0x37778439 GSEventRunModal + 136
14 UIKit 0x3078bcd5 UIApplicationMain + 1080
15 Movie 0x00022eb3 _mh_execute_header + 7859
16 Movie 0x00022e40 _mh_execute_header + 7744
)

Well, it means you tried passing a message (a.k.a calling a method) _isChargeEnabled to an object of class TileLayer, but it is non-existent.
UPDATE
I did a quick google search and turns out _isChargeEnabled is private API of Apple. You could check this and this for more information.

Related

Set NSTimer to nil crash

When I called NSTimer -[invalidate] method and set timer to nil, there caused carsh.The thread that I initialize NSTimer and call -[invalidate] method was the same thread.but it crashed sometimes。why?Bad access crash? This is crash log:
#0. Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1819d4430 objc_msgSend + 16
1 MTXX 0x100d73480 -[MTBDummyWebViewViewController resetTimerAndAnimation] (MTBDummyWebViewViewController.m:135)
2 MTXX 0x100d73828 -[MTBDummyWebViewViewController webView:shouldStartLoadWithRequest:navigationType:] (MTBDummyWebViewViewController.m:176)
3 UIKit 0x18bda4f9c -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 300
4 CoreFoundation 0x182779670 __invoking___ + 144
5 CoreFoundation 0x1826586cc -[NSInvocation invoke] + 292
6 CoreFoundation 0x18265d16c -[NSInvocation invokeWithTarget:] + 60
7 WebKitLegacy 0x18b811858 -[_WebSafeForwarder forwardInvocation:] + 156
8 CoreFoundation 0x1827773bc ___forwarding___ + 624
9 CoreFoundation 0x18265d01c _CF_forwarding_prep_0 + 92
10 CoreFoundation 0x182779670 __invoking___ + 144
11 CoreFoundation 0x1826586cc -[NSInvocation invoke] + 292
12 WebCore 0x18a4d34f4 HandleDelegateSource(void*) + 108
13 CoreFoundation 0x18271a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x18271a268 __CFRunLoopDoSource0 + 88
15 CoreFoundation 0x182719af0 __CFRunLoopDoSources0 + 204
16 CoreFoundation 0x1827176c8 __CFRunLoopRun + 1048
17 CoreFoundation 0x182637fb8 CFRunLoopRunSpecific + 436
18 GraphicsServices 0x1844cff84 GSEventRunModal + 100
19 UIKit 0x18bc0c2e8 UIApplicationMain + 208
20 MTXX 0x10047f6bc main (main.m:15)
21 libdyld.dylib 0x18215a56c start + 4
--
They are used like this:
[self.timeoutTimer invalidate];
self.timeoutTimer = nil;

UITableViewController in iOS 8 Today Extension

I'm trying to add UITableViewController to Today Widget, but every time I drag UITableViewController to Storyboard and run the Widget it crashes with the following error.
I've tried multiple times. I've tried it by using Table View object, but problem persists.
Note: It crashes even before loading viewDidLoad() method.
2015-06-06 01:19:20.569 iOSHackerToday[3202:283287] * Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '* -[NSArrayM
insertObject:atIndex:]: object cannot be nil'
*** First throw call stack: ( 0 CoreFoundation 0x0000000107842c65 __exceptionPreprocess + 165 1 libobjc.A.dylib
0x00000001074dbbb7 objc_exception_throw + 45 2 CoreFoundation
0x000000010770f8ca -[__NSArrayM insertObject:atIndex:] + 954 3
UIKit 0x0000000107d6f0b9
-[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 338 4 UIKit 0x0000000108241a0c
-[_UIViewServiceViewControllerOperator __createViewController:withContextToken:fbsDisplays:appearanceSerializedRepresentations:legacyAppearance:traitCollection:initialInterfaceOrientation:hostAccessibilityServerPort:canShowTextServices:replyHandler:]
+ 2216 5 CoreFoundation 0x0000000107738dec __invoking_ + 140 6 CoreFoundation 0x0000000107738c42 -[NSInvocation invoke] + 290 7 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 8 UIKit
0x00000001082fd01b -[_UIViewServiceImplicitAnimationDecodingProxy
forwardInvocation:] + 222 9 CoreFoundation
0x000000010779ff4f forwarding + 495 10 CoreFoundation
0x000000010779fcd8 _CF_forwarding_prep_0 + 120 11 CoreFoundation
0x0000000107738dec invoking_ + 140 12 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 13 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 14 UIKit
0x00000001082889f4 -[_UIQueueingProxy forwardInvocation:] + 319 15
CoreFoundation 0x000000010779ff4f
forwarding + 495 16 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 17 CoreFoundation
0x0000000107738dec invoking_ + 140 18 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 19 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 20
CoreFoundation 0x000000010779ff4f
forwarding + 495 21 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 22 CoreFoundation
0x0000000107738dec invoking_ + 140 23 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 24 libdispatch.dylib
0x0000000109da6f16 _dispatch_call_block_and_release + 12 25
libdispatch.dylib 0x0000000109dc1964
_dispatch_client_callout + 8 26 libdispatch.dylib 0x0000000109daca59 _dispatch_main_queue_callback_4CF + 704 27
CoreFoundation 0x00000001077aa1f9
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 28 CoreFoundation 0x000000010776bdcb __CFRunLoopRun
+ 2043 29 CoreFoundation 0x000000010776b366 CFRunLoopRunSpecific + 470 30 GraphicsServices
0x000000010b01ca3e GSEventRunModal + 161 31 UIKit
0x0000000107c3b900 UIApplicationMain + 1282 32 libxpc.dylib
0x000000010a0a7aec _xpc_objc_main + 453 33 libxpc.dylib
0x000000010a0a9e91 xpc_main + 185 34 Foundation
0x0000000107209ee1 service_connection_handler + 0 35 PlugInKit
0x0000000106ff3a82 -[PKService run] + 521 36 PlugInKit
0x0000000106ff3747 +[PKService main] + 55 37 PlugInKit
0x0000000106ff3aa6 +[PKService _defaultRun:arguments:] + 17 38
libextension.dylib 0x000000010978399d NSExtensionMain
+ 51 39 libdyld.dylib 0x0000000109df1145 start + 1 40 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type
NSException (lldb)
When you delete the default layout and drag a new table view controller, you need to mark the new view controller as 'Intial View Controller'
Here's the Apple's document which explains how to do it. https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/SetInitialController.html
In the storyboard, if you are using a custom view controller class made in swift, make sure you check the box 'Inherit Module From Target':

How to debug CoreFoundation Crash run_animation_callbacks

I do not know how I can use the following crash report from crashlytics to narrow down the source of the crash.
All I understand is that it has something to do with CoreFoundation, but what exactly is the crash? And where in my code is it happening?
Is a CAAnimation Delegate? Or perhaps I did not remove and observer from NSNotifications?
Any ideas?
Crashed: com.apple.main-thread SIGABRT ABORT at 0x39a5cdf0
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x39a5cdf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x39addc97 pthread_kill + 62
2 libsystem_c.dylib 0x399fb939 abort + 76
3 libc++abi.dylib 0x38bfabbd __cxa_bad_cast
4 libc++abi.dylib 0x38c1466f default_terminate_handler() + 266
5 libobjc.A.dylib 0x393eef11 _objc_terminate() + 192
6 libc++abi.dylib 0x38c11def std::__terminate(void (*)()) + 78
7 libc++abi.dylib 0x38c115b1 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
8 libobjc.A.dylib 0x393eed4b objc_exception_throw + 250
9 CoreFoundation 0x2b4975fd __methodDescriptionForSelector
10 CoreFoundation 0x2b4954d9 ___forwarding___ + 712
11 CoreFoundation 0x2b3c49d8 _CF_forwarding_prep_0 + 24
12 QuartzCore 0x2e4eeff3 CA::Layer::run_animation_callbacks(void*) + 150
13 libdispatch.dylib 0x39958c6f _dispatch_client_callout + 22
14 libdispatch.dylib 0x39964553 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1322
15 CoreFoundation 0x2b457889 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x2b455fa9 __CFRunLoopRun + 1512
17 CoreFoundation 0x2b3a19a1 CFRunLoopRunSpecific + 476
18 CoreFoundation 0x2b3a17b3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x32b531a9 GSEventRunModal + 136
20 UIKit 0x2eb2c695 UIApplicationMain + 1440

Error Log When Calling a row of table

Anyone knows Why this error?Occur when i select the row of a table,navigate to a view,then if i go back and select it again it just crash
-[CALayerArray name]: unrecognized selector sent to instance 0x5a4f8a0
2011-08-24 01:01:10.983 Prototipo[8277:207]
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[CALayerArray name]: unrecognized selector sent to instance 0x5a4f8a0'
*** Call stack at first throw:
(
0 CoreFoundation 0x010715a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x011c5313 objc_exception_throw + 44
2 CoreFoundation 0x010730bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00fe2966 ___forwarding___ + 966
4 CoreFoundation 0x00fe2522 _CF_forwarding_prep_0 + 50
5 Prototipo 0x00003989 -[BaladaDetailsController setAllElements] + 129
6 Prototipo 0x00003cba -[BaladaDetailsController viewDidLoad] + 36
7 UIKit 0x00371089 -[UIViewController view] + 179
8 UIKit 0x0036f482 -[UIViewController contentScrollView] + 42
9 UIKit 0x0037ff25 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
10 UIKit 0x0037e555 -[UINavigationController _layoutViewController:] + 43
11 UIKit 0x0037f7aa -[UINavigationController _startTransition:fromViewController:toViewController:] + 326
12 UIKit 0x0037a32a -[UINavigationController _startDeferredTransitionIfNeeded] + 266
13 UIKit 0x00381562 -[UINavigationController pushViewController:transition:forceImmediate:] + 932
14 UIKit 0x0037a1c4 -[UINavigationController pushViewController:animated:] + 62
15 Prototipo 0x00004bea -[TableViewBaladasController tableView:didSelectRowAtIndexPath:] + 280
16 UIKit 0x00338b68 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
17 UIKit 0x0032eb05 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
18 Foundation 0x0004079e __NSFireDelayedPerform + 441
19 CoreFoundation 0x010528c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
20 CoreFoundation 0x01053e74 __CFRunLoopDoTimer + 1220
21 CoreFoundation 0x00fb02c9 __CFRunLoopRun + 1817
22 CoreFoundation 0x00faf840 CFRunLoopRunSpecific + 208
23 CoreFoundation 0x00faf761 CFRunLoopRunInMode + 97
24 GraphicsServices 0x0192e1c4 GSEventRunModal + 217
25 GraphicsServices 0x0192e289 GSEventRun + 115
26 UIKit 0x002cfc93 UIApplicationMain + 1160
27 Prototipo 0x0000261c main + 102
28 Prototipo 0x000025ad start + 53
)
terminate called after throwing an instance of 'NSException'
You've probably have a memory management error and have over-released an object. Read the Memory Management Programming Guide. If you show some of your code we can provide more help.

when scrolling data in tableview its crashing

When i am moving the data from tableview cell by one its crashing ..
When my view did loaded my array count is 64
I assign this to number of row return [categorieArray count];
and cell configuration
cell.textLabel.text=[categorieArray objectAtIndex:indexPath.row];
return cell;
*** Call stack at first throw:
(
0 CoreFoundation 0x00f8fbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010e45c2 objc_exception_throw + 47
2 CoreFoundation 0x00f916fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00f01366 ___forwarding___ + 966
4 CoreFoundation 0x00f00f22 _CF_forwarding_prep_0 + 50
5 Sigma-Aldrich 0x0000468d -[RootViewController tableView:cellForRowAtIndexPath:] + 237
6 UIKit 0x000977fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
7 UIKit 0x0008d77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
8 UIKit 0x000a2450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
9 UIKit 0x0009a538 -[UITableView layoutSubviews] + 242
10 QuartzCore 0x017f5451 -[CALayer layoutSublayers] + 181
11 QuartzCore 0x017f517c CALayerLayoutIfNeeded + 220
12 QuartzCore 0x017ee37c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
13 QuartzCore 0x017ee0d0 _ZN2CA11Transaction6commitEv + 292
14 QuartzCore 0x0181e7d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
15 CoreFoundation 0x00f70fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
16 CoreFoundation 0x00f060e7 __CFRunLoopDoObservers + 295
17 CoreFoundation 0x00ecebd7 __CFRunLoopRun + 1575
18 CoreFoundation 0x00ece240 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00ece161 CFRunLoopRunInMode + 97
20 GraphicsServices 0x01203268 GSEventRunModal + 217
21 GraphicsServices 0x0120332d GSEventRun + 115
22 UIKit 0x0003242e UIApplicationMain + 1160
23 Sigma-Aldrich 0x00001d49 main + 121
24 Sigma-Aldrich 0x00001cc5 start + 53
25 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
It seems you have an incomplete implementation of your UITableViewDataSource, specifically (it seems) you forgot to implement tableView:cellForRowAtIndexPath, so that when the framework tries and calls it, it fails.
Have a look here for more info.