WKWebView crashing the app while loading contents from URL. It's a 3DS page which is working fine for iOS < 14.
2021-02-22 16:10:53.366952+0530 OrderMealCustomer[6826:326746] -[__NSDictionaryM length]: unrecognized selector sent to instance 0x60000125e6a0
2021-02-22 16:10:53.586212+0530 OrderMealCustomer[6826:326746] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance 0x60000125e6a0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113784af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x0000000113e2fe78 objc_exception_throw + 48
2 CoreFoundation 0x00000001137936f7 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x0000000113789036 ___forwarding___ + 1489
4 CoreFoundation 0x000000011378b068 _CF_forwarding_prep_0 + 120
5 JavaScriptCore 0x0000000112ede0ac _ZN3WTF6StringC2EP8NSString + 60
6 WebCore 0x000000011fd5a637 _ZN7WebCore28getDefaultWebCryptoMasterKeyERN3WTF6VectorIhLm0ENS0_15CrashOnOverflowELm16ENS0_10FastMallocEEE + 839
7 WebKit 0x0000000110fd4039 _ZN6WebKit15NavigationState16NavigationClient18webCryptoMasterKeyERNS_12WebPageProxyE + 65
8 WebKit 0x000000011108274b _ZN6WebKit12WebPageProxy13wrapCryptoKeyERKN3WTF6VectorIhLm0ENS1_15CrashOnOverflowELm16ENS1_10FastMallocEEEONS1_17CompletionHandlerIFvbOS5_EEE + 111
9 WebKit 0x000000011135e946 _ZN6WebKit12WebPageProxy21didReceiveSyncMessageERN3IPC10ConnectionERNS1_7DecoderERNSt3__110unique_ptrINS1_7EncoderENS6_14default_deleteIS8_EEEE + 1972
10 WebKit 0x0000000110d6863c _ZN3IPC18MessageReceiverMap19dispatchSyncMessageERNS_10ConnectionERNS_7DecoderERNSt3__110unique_ptrINS_7EncoderENS5_14default_deleteIS7_EEEE + 138
11 WebKit 0x000000011109df8c _ZN6WebKit15WebProcessProxy21didReceiveSyncMessageERN3IPC10ConnectionERNS1_7DecoderERNSt3__110unique_ptrINS1_7EncoderENS6_14default_deleteIS8_EEEE + 32
12 WebKit 0x0000000110d48c65 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 755
13 WebKit 0x0000000110d49ddd _ZN3WTF6Detail15CallableWrapperIZN3IPC10Connection16SyncMessageState22processIncomingMessageERS3_RNSt3__110unique_ptrINS2_7DecoderENS6_14default_deleteIS8_EEEEE3$_1vJEE4callEv + 541
14 JavaScriptCore 0x0000000112ed796d _ZN3WTF7RunLoop11performWorkEv + 573
15 JavaScriptCore 0x0000000112ed847a _ZN3WTF7RunLoop11performWorkEPv + 26
16 CoreFoundation 0x00000001136f338a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 CoreFoundation 0x00000001136f3282 __CFRunLoopDoSource0 + 180
18 CoreFoundation 0x00000001136f2764 __CFRunLoopDoSources0 + 248
19 CoreFoundation 0x00000001136ecf2f __CFRunLoopRun + 878
20 CoreFoundation 0x00000001136ec6d6 CFRunLoopRunSpecific + 567
21 GraphicsServices 0x000000011e364db3 GSEventRunModal + 139
22 UIKitCore 0x0000000117893cf7 -[UIApplication _run] + 912
23 UIKitCore 0x0000000117898ba8 UIApplicationMain + 101
24 libswiftUIKit.dylib 0x0000000114cad5f2 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 98
25 OrderMealCustomer 0x000000010acfbcfa $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 122
26 OrderMealCustomer 0x000000010acfbc6e $s17OrderMealCustomer11AppDelegateC5$mainyyFZ + 46
27 OrderMealCustomer 0x000000010acfe599 main + 41
28 libdyld.dylib 0x0000000114f1f3e9 start + 1
29 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance 0x60000125e6a0'
It might be because of content has slash(/) in it.
The issue is specific to iOS 14.x.
Related
Firebase Unity SDK v.3.0.3
Unity 5.4.2f2
Xcode 8.3
I create a iOS build. When first start the game, you receive the following error.
2017-06-05 15:51:32.503767+0700 tacticool[1549:942648] -[UIApplication messaging:didRefreshRegistrationToken:]: unrecognized selector sent to instance 0x14f79ce0
2017-06-05 15:51:32.589532+0700 tacticool[1549:942648] Uncaught exception: NSInvalidArgumentException: -[UIApplication messaging:didRefreshRegistrationToken:]: unrecognized selector sent to instance 0x14f79ce0
(
0 CoreFoundation 0x1c2c3b55 <redacted> + 152
1 libobjc.A.dylib 0x1b54b067 objc_exception_throw + 38
2 CoreFoundation 0x1c2c8fd1 <redacted> + 0
3 CoreFoundation 0x1c2c70c3 <redacted> + 696
4 CoreFoundation 0x1c1efdc8 _CF_forwarding_prep_0 + 24
5 tacticool 0x00a66b4b -[FIRMessaging defaultInstanceIDTokenWasRefreshed:] + 162
6 CoreFoundation 0x1c26fdb9 <redacted> + 10
7 CoreFoundation 0x1c26f6f9 <redacted> + 382
8 CoreFoundation 0x1c26f4e1 <redacted> + 40
9 CoreFoundation 0x1c2ca309 <redacted> + 1242
10 CoreFoundation 0x1c1d30f5 _CFXNotificationPost + 540
11 Foundation 0x1cb70bab <redacted> + 450
12 CoreFoundation 0x1c27f803 <redacted> + 20
13 CoreFoundation 0x1c27da55 <redacted> + 282
14 CoreFoundation 0x1c27df2d <redacted> + 1124
15 CoreFoundation 0x1c1d11af CFRunLoopRunSpecific + 470
16 CoreFoundation 0x1c1d0fd1 CFRunLoopRunInMode + 104
17 GraphicsServices 0x1d97bb41 GSEventRunModal + 80
18 UIKit 0x21552e13 UIApplicationMain + 150
19 tacticool 0x000f0b9b main + 202
20 libdyld.dylib 0x1b9be4eb <redacted> + 2
)
2017-06-05 15:51:32.591642+0700 tacticool[1549:942648] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIApplication messaging:didRefreshRegistrationToken:]: unrecognized selector sent to instance 0x14f79ce0'
*** First throw call stack:
(0x1c2c3b3d 0x1b54b067 0x1c2c8fd1 0x1c2c70c3 0x1c1efdc8 0xa66b4b 0x1c26fdb9 0x1c26f6f9 0x1c26f4e1 0x1c2ca309 0x1c1d30f5 0x1cb70bab 0x1c27f803 0x1c27da55 0x1c27df2d 0x1c1d11af 0x1c1d0fd1 0x1d97bb41 0x21552e13 0xf0b9b 0x1b9be4eb)
libc++abi.dylib: terminating with uncaught exception of type NSException
Do I miss something in XCode? Or have something to check in Unity?
I am working around with Xcode 8. But I have one problem, specifically when I try to change the device type in simulator, it crashes and I get a crash message
*** Terminating app due to uncaught exception 'NSRangeException', reason:
'*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x0000000103b5934b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001035ba21e objc_exception_throw + 48
2 CoreFoundation 0x0000000103a8af1b -[__NSArrayM objectAtIndex:] + 203
3 Mahroosa 0x0000000102e207c7 -[MainViewController viewSliderControllerAtIndex:] + 151
4 Mahroosa 0x0000000102e21117 -[MainViewController LoadSlides] + 1495
5 Mahroosa 0x0000000102e25b32 -[MainViewController TimerTick:] + 98
6 Foundation 0x0000000103115144 __NSFireTimer + 83
7 CoreFoundation 0x0000000103aeb964 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
8 CoreFoundation 0x0000000103aeb5f3 __CFRunLoopDoTimer + 1075
9 CoreFoundation 0x0000000103aeb17a __CFRunLoopDoTimers + 250
10 CoreFoundation 0x0000000103ae2f01 __CFRunLoopRun + 2065
11 CoreFoundation 0x0000000103ae2494 CFRunLoopRunSpecific + 420
12 GraphicsServices 0x0000000108f2ca6f GSEventRunModal + 161
13 UIKit 0x00000001048ebf34 UIApplicationMain + 159
14 Mahroosa 0x0000000102e34a2f main + 111
15 libdyld.dylib 0x000000010628868d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Any ideas?.
Thanks in advance!
this is my first time implementing Braintree and I've been following the documentation clearly. I've integrated it with CocoaPods but I have an issue in BTDropInViewController. It throws an error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIColor bt_colorWithBytesR:G:B:]: unrecognized selector sent to class 0x10fd17948
In this line
BTDropInViewController *dropInViewController = [[BTDropInViewController alloc]
initWithAPIClient:self.braintreeClient];
I've tried to import these 3 headers just to be sure, but still the same result
#import <Braintree/UIColor+BTUI.h>
#import "BraintreeUI.h"
#import <Braintree/BTUI.h>
And here is the full error
2016-11-16 15:56:35.418 Projc[43766:2236752] +[UIColor bt_colorWithBytesR:G:B:]: unrecognized selector sent to class 0x10fd17948
2016-11-16 15:56:35.504 Projc[43766:2236752] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIColor bt_colorWithBytesR:G:B:]: unrecognized selector sent to class 0x10fd17948'
*** First throw call stack:
(
0 CoreFoundation 0x00000001116aaf45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000110998deb objc_exception_throw + 48
2 CoreFoundation 0x00000001116b346d +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000111600eea ___forwarding___ + 970
4 CoreFoundation 0x0000000111600a98 _CF_forwarding_prep_0 + 120
5 Projc 0x000000010ccb95b0 -[BTUI borderColor] + 64
6 Projc 0x000000010cc9abf4 -[BTDropInContentView initWithFrame:] + 964
7 UIKit 0x000000010f0abe3d -[UIView init] + 62
8 Projc 0x000000010ccc329e -[BTUIThemedView init] + 62
9 Projc 0x000000010cca5fed -[BTDropInViewController initWithAPIClient:] + 285
10 Projc 0x000000010cb0998b __51-[RegisterController basicPlanClicked]_block_invoke + 411
11 Projc 0x000000010cac1a66 __59-[downloadJson:endPointString:WithHandler:]_block_invoke + 214
12 CFNetwork 0x000000010d4f5b3d __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 19
13 CFNetwork 0x000000010d507fb6 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 302
14 Foundation 0x000000011060c3b8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
15 Foundation 0x00000001105480e5 -[NSBlockOperation main] + 101
16 Foundation 0x000000011052b036 -[__NSOperationInternal _start:] + 646
17 Foundation 0x000000011052ac47 __NSOQSchedule_f + 194
18 libdispatch.dylib 0x0000000111e0649b _dispatch_client_callout + 8
19 libdispatch.dylib 0x0000000111dee2af _dispatch_main_queue_callback_4CF + 1738
20 CoreFoundation 0x000000011160b2e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
21 CoreFoundation 0x00000001115cc8a9 __CFRunLoopRun + 2073
22 CoreFoundation 0x00000001115cbe08 CFRunLoopRunSpecific + 488
23 GraphicsServices 0x0000000112291ad2 GSEventRunModal + 161
24 UIKit 0x000000010f01f30d UIApplicationMain + 171
25 Projc 0x000000010cba86bf main + 111
26 libdyld.dylib 0x0000000111e3b92d start + 1
27 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
I am really confused as to why this is happening.
Since this happened randomly
Here is the stacktrace, I have not been able to figure it out.
Please help
Thanks
2015-03-30 15:12:50.817 MarcoApp[1857:23629] -[NSIBPrototypingLayoutConstraint finishedLoading]: unrecognized selector sent to instance 0x7f929ccc8cf0
2015-03-30 15:12:50.908 MarcoApp[1857:23629] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSIBPrototypingLayoutConstraint finishedLoading]: unrecognized selector sent to instance 0x7f929ccc8cf0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010aa74a75 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010a333bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010aa7bd1d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010a9d39dc ___forwarding___ + 988
4 CoreFoundation 0x000000010a9d3578 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010aa447fc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
6 CoreFoundation 0x000000010a944204 _CFXNotificationPost + 2484
7 Foundation 0x0000000109e8ddf8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
8 UIKit 0x000000010b73baa7 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 1054
9 UIKit 0x000000010b748833 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 87
10 UIKit 0x000000010b7487cd -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 349
11 UIKit 0x000000010b73345a -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 486
12 FrontBoardServices 0x00000001115ae243 __31-[FBSSerialQueue performAsync:]_block_invoke + 16
13 CoreFoundation 0x000000010a9a9c7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
14 CoreFoundation 0x000000010a99f9c5 __CFRunLoopDoBlocks + 341
15 CoreFoundation 0x000000010a99f785 __CFRunLoopRun + 2389
16 CoreFoundation 0x000000010a99ebc6 CFRunLoopRunSpecific + 470
17 GraphicsServices 0x000000010e89ca58 GSEventRunModal + 161
18 UIKit 0x000000010b735580 UIApplicationMain + 1282
19 MarcoApp 0x0000000109184afe top_level_code + 78
20 MarcoApp 0x0000000109184bda main + 42
21 libdyld.dylib 0x000000010ee2b145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
hard to tell without seeing your code but "unrecognized selector sent to instance" implies you have a method the requires a selector (name of a function) as a parameter and that methods got an invalid selector (the name of the function is wrong).
not sure but ther is any method in
- (void)applicationWillResignActive:(UIApplication *)application
which does not have selector thats why you app crash
I used 'Detail - Master Application' of Apple's example file.
I edited its 'Main-iPhone.storyboard'like this image.
And happened this error to my application.
2013-12-14 15:13:12.960 IFST[2448:70b] -[UITabBarController topViewController]: unrecognized selector sent to instance 0x8a6c290
2013-12-14 15:13:12.963 IFST[2448:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController topViewController]: unrecognized selector sent to instance 0x8a6c290'
*** First throw call stack:
(
0 CoreFoundation 0x01aa15e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x018248b6 objc_exception_throw + 44
2 CoreFoundation 0x01b3e903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01a9190b ___forwarding___ + 1019
4 CoreFoundation 0x01a914ee _CF_forwarding_prep_0 + 14
5 IFST 0x00004d40 -[AppDelegate application:didFinishLaunchingWithOptions:] + 848
6 UIKit 0x0058c355 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
7 UIKit 0x0058cb95 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1536
8 UIKit 0x005913a8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
9 UIKit 0x005a587c -[UIApplication handleEvent:withNewEvent:] + 3447
10 UIKit 0x005a5de9 -[UIApplication sendEvent:] + 85
11 UIKit 0x00593025 _UIApplicationHandleEvent + 736
12 GraphicsServices 0x039042f6 _PurpleEventCallback + 776
13 GraphicsServices 0x03903e01 PurpleEventCallback + 46
14 CoreFoundation 0x01a1cd65 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
15 CoreFoundation 0x01a1ca9b __CFRunLoopDoSource1 + 523
16 CoreFoundation 0x01a4777c __CFRunLoopRun + 2156
17 CoreFoundation 0x01a46ac3 CFRunLoopRunSpecific + 467
18 CoreFoundation 0x01a468db CFRunLoopRunInMode + 123
19 UIKit 0x00590add -[UIApplication _run] + 840
20 UIKit 0x00592d3b UIApplicationMain + 1225
21 IFST 0x0000592d main + 141
22 libdyld.dylib 0x020df70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
and SIGABRT.
Why did happened it?
Please tell me.
Your crash log gives you the answer:
2013-12-14 15:13:12.963 IFST[2448:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController topViewController]: unrecognized selector sent to instance 0x8a6c290'
Somewhere you're sending topViewController to the tab bar controller. It's not a navigation controller, so this method is not appropriate. Maybe selectedViewController is the one you're looking for.