Post not yet marked as solved
Post marked as unsolved with 0 replies, 222 views
Hi, I am writing apps in C++ and Objective-C.
I created an instance of ASWebAuthenticationSession and set the presentationContextProvider.
Then when I started the session, the app crashed with EXC_BAD_ACCESS (KERN_INVALID_ADDRESS).
When I checked the crash log, I found an exception in [SFSafariViewController _setEdgeSwipeDismissalEnabled:].
But since this method is defined within the iOS framework(Xcode13.2.1), I don't know which field is causing the crash.
I've done some testing, but I don't get much information :
-I have enabled "Zombie Object" and "Address Sanitizer",however I was unable to get any additional information.
-I tried to create a new project and used ASWebAuthenticationSession with the same arguments, but I could not reproduce the problem.
Can someone please help or any other advice on finding the reasons for this error?
OS Version: iPhone OS 14.7.1 (18G82)
Release Type: User
Baseband Version: 8.80.01
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000010000
VM Region Info: 0x10000 is not in any region. Bytes before following region: 4338286592
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102960000-10391c000 [ 15.7M] r-x/r-x SM=COW ...pp/Disgaea4sp
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [35391]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001b3824148 objc_msgSend + 8
1 SafariServices 0x00000001b965906c -[SFSafariViewController setEdgeSwipeDismissalEnabled:] + 84
2 SafariServices 0x00000001b962cd5c -[SFBrowserRemoteViewController setRemoteSwipeGestureEnabled:] + 64
3 CoreFoundation 0x000000019fab7a10 invoking + 144
4 CoreFoundation 0x000000019f999720 -[NSInvocation invoke] + 300
5 libdispatch.dylib 0x000000019f6eb298 _dispatch_client_callout + 16
6 libdispatch.dylib 0x000000019f6905b8 _dispatch_block_invoke_direct$VARIANT$mp + 224
7 FrontBoardServices 0x00000001ae5d9e04 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40
8 FrontBoardServices 0x00000001ae5d9acc -[FBSSerialQueue _targetQueue_performNextIfPossible] + 404
9 FrontBoardServices 0x00000001ae5d9fa0 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
10 CoreFoundation 0x000000019fa328a8 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
11 CoreFoundation 0x000000019fa327a8 __CFRunLoopDoSource0 + 204
12 CoreFoundation 0x000000019fa31afc __CFRunLoopDoSources0 + 256
13 CoreFoundation 0x000000019fa2c018 __CFRunLoopRun + 768
14 CoreFoundation 0x000000019fa2b7d0 CFRunLoopRunSpecific + 572
15 GraphicsServices 0x00000001b616d570 GSEventRunModal + 160
16 UIKitCore 0x00000001a23582d0 -[UIApplication _run] + 1052
17 UIKitCore 0x00000001a235d84c UIApplicationMain + 164
18 applicationName 0x000000010296a1e4 main + 41444 (main.m:6)
19 libdyld.dylib 0x000000019f70a140 start + 4