[macOS 12][iOS 15]: Attaching Safari Debugger to app's WKWebView will crash the app

Hello everyone,

This is a bit of a first for me, attaching the Safari Debugger to a webview in our app will crash the app itself. This is Safari + macOS 12 + Xcode 13 + iOS 15 Simulator so there are plenty of moving parts still it is a bit of a new one 😃 .

Raised the following Bug Report: FB9145558

This is the sanitised stack trace I can share:

Process:             APPLICATION_NAME [17438]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9/data/Containers/Bundle/Application/49053572-EE15-41B7-A8D0-94A7D92D76E5/APPLICATION_NAME.app/APPLICATION_NAME
Identifier:          BUNDLE_PREFIX.APPLICATION_NAME
Version:             11.20.7 (2847)
Code Type:           X86-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [17090]
Coalition:           com.apple.CoreSimulator.SimDevice.1F4F2CDE-64EB-44BA-8B40-1CC6197A3BC9 [7161]
Responsible Process: SimulatorTrampoline [3280]

Date/Time:           2021-06-09 13:49:02.3675 +0100
Launch Time:         2021-06-09 13:48:44.2049 +0100
OS Version:          macOS 12.0 (21A5248p)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000012
VM Region Info: 0x12 is not in any region.  Bytes before following region: 4304560110
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      100926000-101ee2000    [ 21.7M] r-x/r-x SM=COW  ...pp/APPLICATION_NAME
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [17438]

Triggered by Thread:  16

Full sanitised stack trace attached.

Kind Regards,

Goffredo

Answered by Goff.Marocchi in 686939022

Bug seems to be fixed when updating the the latest betas of macOS 12 and iOS 15.

Accepted Answer

Bug seems to be fixed when updating the the latest betas of macOS 12 and iOS 15.

[macOS 12][iOS 15]: Attaching Safari Debugger to app's WKWebView will crash the app
 
 
Q