[_UISnapshotWindow actualSceneBounds]: unrecognized selector - ios

I am getting crash in iOS(react native app) : [_UISnapshotWindow actualSceneBounds]: unrecognized selector
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x12a654 __exceptionPreprocess
1 libobjc.A.dylib 0x5bcc objc_exception_throw
2 CoreFoundation 0x2edd8 -[NSOrderedSet
initWithSet:copyItems:]
3 UIKitCore 0xa5cb24 -[UIResponder
doesNotRecognizeSelector:]
4 CoreFoundation 0x12e7f8 forwarding
5 CoreFoundation 0x13071c _CF_forwarding_prep_0
6 UIKitCore 0x91b5f8 -[UIUndoGestureInteraction
didMoveToView:]
7 UIKitCore 0xee0960 _setInteractionView
8 UIKitCore 0xee083c -[UIView(Dragging)
addInteraction:]
9 UIKitCore 0xcb2dcc
-[UIEditingOverlayViewController _addInteractions]
10 UIKitCore 0x3f0814 -[UIViewController
_setViewAppearState:isAnimating:]
11 UIKitCore 0x3f0c34 __52-[UIViewController
_setViewAppearState:isAnimating:]_block_invoke
12 CoreFoundation 0xfdce0
NSARRAY_IS_CALLING_OUT_TO_A_BLOCK
13 CoreFoundation 0x270c -[__NSArrayI
enumerateObjectsWithOptions:usingBlock:]
14 UIKitCore 0x3f09c0 -[UIViewController
_setViewAppearState:isAnimating:]
15 UIKitCore 0x3f2a8c __64-[UIViewController
viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke
16 UIKitCore 0x3f1854 -[UIViewController
_executeAfterAppearanceBlock]
17 UIKitCore 0xa37c10
_runAfterCACommitDeferredBlocks
18 UIKitCore 0xa274ac
_cleanUpAfterCAFlushAndRunDeferredBlocks
19 UIKitCore 0xa57990 _afterCACommitHandler
20 CoreFoundation 0xa7f2c
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
21 CoreFoundation 0xa2e20 __CFRunLoopDoObservers
22 CoreFoundation 0xa329c __CFRunLoopRun
23 CoreFoundation 0xa2ba8 CFRunLoopRunSpecific
24 GraphicsServices 0x3344 GSEventRunModal
25 UIKitCore 0xa2e3e4 UIApplicationMain
Can anyone please help me to fix this issue.

Related

After updating the Xcode 14 we facing the error with the Application circumvented Objective-C runtime dealloc initiation for <UIButton> object

After updating the Xcode to version 14 we faced a crash while launching the app. How can we fix this issue.
[13113:89575] *** Assertion failure in -[UIButton dealloc], UIView.m:4628
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for object.'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff800427378 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff80004dbaf objc_exception_throw + 48
2 Foundation 0x00007ff800b876ac _userInfoForFileAndLine + 0
3 UIKitCore 0x000000011eb8e997 -[UIView dealloc] + 1458
4 UIKitCore 0x000000011dcfb835 -[UIButton dealloc] + 41
5 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
6 CoreFoundation 0x00007ff8003144e8 __RELEASE_OBJECTS_IN_THE_ARRAY__ + 11
7 CoreFoundation 0x00007ff80031442e -[__NSArrayM dealloc] + 283
8 libobjc.A.dylib 0x00007ff80004b6a1 _ZN11objc_object17sidetable_releaseEbb + 203
9 libobjc.A.dylib 0x00007ff80004be64 _ZN19AutoreleasePoolPage12releaseUntilEPP11objc_object + 18
10 libobjc.A.dylib 0x00007ff80004bcad objc_autoreleasePoolPop + 203
11 UIKitCore 0x000000011e0a083b -[UINib instantiateWithOwner:options:] + 3109
12 UIKitCore 0x000000011dcaad51 -[UIViewController loadView] + 640
13 UIKitCore 0x000000011dcab0a7 -[UIViewController loadViewIfRequired] + 95
14 UIKitCore 0x000000011dbd6d7e -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
15 UIKitCore 0x000000011dbd70c2 -[UINavigationController _startTransition:fromViewController:toViewController:] + 227
16 UIKitCore 0x000000011dbd80c3 -[UINavigationController _startDeferredTransitionIfNeeded:] + 863
17 UIKitCore 0x000000011dbd9468 -[UINavigationController __viewWillLayoutSubviews] + 136
18 UIKitCore 0x000000011dbb704c -[UILayoutContainerView layoutSubviews] + 207
19 UIKitCore 0x000000011ebc0913 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2305
20 QuartzCore 0x00007ff8088f8cb8 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 526
21 QuartzCore 0x00007ff808904191 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 65
22 QuartzCore 0x00007ff80881821d _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 623
23 QuartzCore 0x00007ff80884fa56 _ZN2CA11Transaction6commitEv + 714
24 UIKitCore 0x000000011e5b831c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 34
25 CoreFoundation 0x00007ff800386cb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
26 CoreFoundation 0x00007ff80038646a __CFRunLoopDoBlocks + 406
27 CoreFoundation 0x00007ff800380dc8 __CFRunLoopRun + 948
28 CoreFoundation 0x00007ff800380637 CFRunLoopRunSpecific + 560
29 GraphicsServices 0x00007ff809c0f28a GSEventRunModal + 139
30 UIKitCore 0x000000011e598425 -[UIApplication _run] + 994
31 UIKitCore 0x000000011e59d301 UIApplicationMain + 123
32 UK News 0x00000001071675e9 main + 73
33 dyld 0x0000000108a142bf start_sim + 10
34 ??? 0x0000000109c6252e 0x0 + 4458947886
)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for <UIButton> object.'
CoreSimulator 857.7 - Device: iPhone 14 (722946E3-1DBE-4032-911B-51C89F27E522) - R
Search initialise method in your project and replace it with load method. Check it below.
Find
+(void)initialize
{
[super initialize];
}
Replace
+(void)load
{
[super load];
}

How to identify the cause of an app crash (Apple)

I am currently testing my app via TestFlight and have had a report of a crash. I've been looking at the code and trying to determine where the crash occurred and what the cause is but I'm stuck.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x180973d0c __exceptionPreprocess + 216 (NSException.m:200)
1 libobjc.A.dylib 0x198164ee4 objc_exception_throw + 56 (objc-exception.mm:565)
2 CoreFoundation 0x180a44750 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140 (NSObject.m:147)
3 UIKitCore 0x183ac7f34 -[UIResponder doesNotRecognizeSelector:] + 268 (UIResponder.m:685)
4 CoreFoundation 0x18090d60c ___forwarding___ + 1472 (NSForwarding.m:3577)
5 CoreFoundation 0x18090c81c _CF_forwarding_prep_0 + 92
6 UIKitCore 0x1830b20b4 -[UIApplication sendAction:to:from:forEvent:] + 96 (UIApplication.m:5378)
7 UIKitCore 0x1831d120c -[UIControl sendAction:to:forEvent:] + 124 (UIControl.m:871)
8 UIKitCore 0x182f6743c -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942)
9 UIKitCore 0x182cafd20 -[UIControl touchesBegan:withEvent:] + 408 (UIControl.m:543)
10 UIKitCore 0x182d6ded8 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:0)
11 UIKitCore 0x182d9ee74 -[UIGestureEnvironment _updateForEvent:window:] + 736 (UIGestureEnvironment.m:1332)
12 UIKitCore 0x182dab978 -[UIWindow sendEvent:] + 4344 (UIWindow.m:3272)
13 UIKitCore 0x182f4c504 -[UIApplication sendEvent:] + 892 (UIApplication.m:11975)
14 UIKitCore 0x182d80974 __dispatchPreprocessedEventFromEventQueue + 8148 (UIEventDispatcher.m:2294)
15 UIKitCore 0x182d75838 __processEventQueue + 6544 (UIEventDispatcher.m:2600)
16 UIKitCore 0x182d7ac54 __eventFetcherSourceCallback + 168 (UIEventDispatcher.m:2672)
17 CoreFoundation 0x1809944ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1972)
18 CoreFoundation 0x1809a461c __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2016)
19 CoreFoundation 0x1808e6824 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2053)
20 CoreFoundation 0x1808ebef8 __CFRunLoopRun + 768 (CFRunLoop.c:2951)
21 CoreFoundation 0x1808ff240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
22 GraphicsServices 0x1a13cf988 GSEventRunModal + 160 (GSEvent.c:2200)
23 UIKitCore 0x1830ff41c -[UIApplication _run] + 1080 (UIApplication.m:3511)
24 UIKitCore 0x182e98b88 UIApplicationMain + 336 (UIApplication.m:5064)
25 Here 0x100d88afc main + 68 (SelectionViewController.swift:14)
26 dyld 0x100fac3d0 start + 444 (dyldMain.cpp:879)
I have looked at various resources but I'm still stuck:
I've looked into the execution type (https://developer.apple.com/documentation/xcode/addressing-language-exception-crashes)
I have looked into Zombies but nothing is showing (https://help.apple.com/instruments/mac/current/#/dev612e6956)
Any advice or help would be greatly appreciated - thank you.

Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos

This crash maybe cased by copy and paste. Only iOS 15 has this problem.
CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos
Thread 0 Crashed:
0 CoreFoundation 0x00000001814a50fc __exceptionPreprocess
1 libobjc.A.dylib 0x0000000199ce0d64 objc_exception_throw
2 Foundation 0x0000000182d5f3ac _userInfoForFileAndLine
3 UIKitCore 0x0000000184a4da50 -[_UITextKitTextPosition compare:]
4 UIKitCore 0x00000001838d4d68 -[UITextInputController comparePosition:toPosition:]
5 UIKitCore 0x0000000184a59328 -[UITextView comparePosition:toPosition:]
6 UIKitCore 0x0000000184a21658 -[UITextPasteController _clampRange:]
7 UIKitCore 0x0000000184a21e4c __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke
8 UIKitCore 0x0000000184a22064 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.177
9 UIKitCore 0x0000000184a49b9c -[UITextInputController _pasteAttributedString:toRange:completion:]
10 UIKitCore 0x0000000184a21d94 -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]
11 UIKitCore 0x0000000184a21030 __49-[UITextPasteController _executePasteForSession:]_block_invoke
12 libdispatch.dylib 0x0000000181115924 _dispatch_call_block_and_release
13 libdispatch.dylib 0x0000000181117670 _dispatch_client_callout
14 libdispatch.dylib 0x0000000181125b70 _dispatch_main_queue_callback_4CF
15 CoreFoundation 0x000000018145dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation 0x0000000181417f5c __CFRunLoopRun
17 CoreFoundation 0x000000018142b468 CFRunLoopRunSpecific
18 GraphicsServices 0x000000019cfb738c GSEventRunModal
19 UIKitCore 0x0000000183dcd088 -[UIApplication _run]
20 UIKitCore 0x0000000183b4b958 UIApplicationMain
21 GalaxyX 0x0000000102f2d67c main + [main.m : 19]

[UIScrollViewPanGestureRecognizer contentOffset]: unrecognized selector sent to instance 0x11b9c7410

crash in [UIScrollViewPanGestureRecognizer contentOffset]: unrecognized selector sent to instance 0x11b9c7410, how to resolve it
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:-[UIScrollViewPanGestureRecognizer contentOffset]: unrecognized selector sent to instance 0x11b9c7410
Last Exception Backtrace:
0 CoreFoundation ___exceptionPreprocess (in CoreFoundation) 236
1 libobjc.A.dylib bool method_lists_contains_any<method_list_t*>(method_list_t, method_list_t , objc_selector , unsigned long) (in libobjc.A.dylib) 979
2 CoreFoundation -[NSObject(NSObject) doesNotRecognizeSelector:] (in CoreFoundation) 139
3 CoreFoundation ____forwarding___ (in CoreFoundation) 1439
4 CoreFoundation ___forwarding_prep_0___ (in CoreFoundation) 91
5 GeoServices 0x000000018c7b4448 0x18b7e2000 + 16589896
6 UIKitCore -[UITableView setContentOffset:] (in UIKitCore) 87
7 UIKitCore -[UIScrollView _adjustContentOffsetIfNecessary] (in UIKitCore) 99
8 UIKitCore -[UIScrollView setFrame:] (in UIKitCore) 547
9 UIKitCore -[UITableView setFrame:] (in UIKitCore) 211
10 UIKitCore -[UIView(Geometry) _resizeWithOldSuperviewSize:] (in UIKitCore) 771
11 UIKitCore -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] (in UIKitCore) 51
12 UIKitCore ___46-[UIView(Geometry) resizeSubviewsWithOldSize:]_block_invoke (in UIKitCore) 119
13 CoreFoundation ___NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) 15
14 CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] (in CoreFoundation) 459
15 UIKitCore -[UIView(Geometry) resizeSubviewsWithOldSize:] (in UIKitCore) 199
16 UIKitCore -[UIView(Geometry) setFrame:] (in UIKitCore) 591
17 BaiduBoxApp -[BBACommentListViewController createUIView] (in BaiduBoxApp) (BBACommentListViewController.m:541) 15
18 BaiduBoxApp -[BBACommentListViewController viewDidLoad] (in BaiduBoxApp) (BBACommentListViewController.m:282) 15
19 UIKitCore -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] (in UIKitCore) 103
20 UIKitCore -[UIViewController loadViewIfRequired] (in UIKitCore) 1019
21 UIKitCore -[UIViewController view] (in UIKitCore) 27
``

iOS - Crash with google admob SDK after upgraded to v7.7.0

We upgraded google admob v7.5.1 to v7.7.0 through pod file. After upgrade app crash on launching with following log.
2016-03-21 12:17:47.065 myAppName[3672:83997] -[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa0110632e20924c9
2016-03-21 12:17:47.119 myAppName[3672:83997] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xa0110632e20924c9'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a3e8e65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109e5fdeb objc_exception_throw + 48
2 CoreFoundation 0x000000010a3f148d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x000000010a33e90a ___forwarding___ + 970
4 CoreFoundation 0x000000010a33e4b8 _CF_forwarding_prep_0 + 120
5 CoreFoundation 0x000000010a300e84 -[NSSet initWithArray:] + 36
6 myAppName 0x000000010579e66e hasRequiredParams + 19102
7 myAppName 0x000000010579c3a3 hasRequiredParams + 10195
8 myAppName 0x000000010579c1fc hasRequiredParams + 9772
9 myAppName 0x000000010579c048 hasRequiredParams + 9336
10 myAppName 0x000000010573ad87 GADiTunesMetadataForFileAtPath + 2024
11 myAppName 0x000000010573a7d2 GADiTunesMetadataForFileAtPath + 563
12 Foundation 0x0000000106d07790 -[__NSObserver _doit:] + 304
13 CoreFoundation 0x000000010a3b569c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14 CoreFoundation 0x000000010a3b53db _CFXRegistrationPost + 427
15 CoreFoundation 0x000000010a3b5142 ___CFXNotificationPost_block_invoke + 50
16 CoreFoundation 0x000000010a3fa972 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1986
17 CoreFoundation 0x000000010a2b0279 _CFXNotificationPost + 633
18 Foundation 0x0000000106ceb109 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
19 UIKit 0x0000000107cb06f0 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4272
20 UIKit 0x0000000107cb6cc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
21 UIKit 0x0000000107cb3e7b -[UIApplication workspaceDidEndTransaction:] + 188
22 FrontBoardServices 0x000000010bcdf754 -[FBSSerialQueue _performNext] + 192
23 FrontBoardServices 0x000000010bcdfac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x000000010a314a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 CoreFoundation 0x000000010a30a95c __CFRunLoopDoSources0 + 556
26 CoreFoundation 0x000000010a309e13 __CFRunLoopRun + 867
27 CoreFoundation 0x000000010a309828 CFRunLoopRunSpecific + 488
28 UIKit 0x0000000107cb37cd -[UIApplication _run] + 402
29 UIKit 0x0000000107cb8610 UIApplicationMain + 171
30 myAppName 0x00000001055b4c7e main + 62
31 libdyld.dylib 0x000000010a8d492d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Resources