Safari crashing when downloading?

I'm working on an app, and have turned over download responsibilities to Safari, thusly:

UIApplication.shared.open(URL(string: "nytimes.com/crosswords")!, options: [:], completionHandler: nil)
// If I put in the https the Forums software objects, but it is there, Safari does get to the site.

Once I'm at the site, I tap to download, and immediately get a crash (see below).

At first I thought it was my app, but then I reset the iPad with Erase All Contents and Settings, and just downloaded directly from Safari (my app wasn't even installed), yet the error persists.

Is anybody else seeing this?

Code Block Process: MobileSafari [7402]
Path: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app/MobileSafari
Identifier: MobileSafari
Version: 14.0 (604.1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [7210]
Responsible: SimulatorTrampoline [615]
User ID: 501
Date/Time: 2020-09-04 17:59:56.697 -0500
OS Version: Mac OS X 10.16 (20A5354i)
Report Version: 12
Bridge OS Version: 5.0 (18P50358b)
Anonymous UUID: 4CC279BD-C050-70BE-3C9C-80C6689A987C
Sleep/Wake UUID: C3BB6F1F-67AB-41B2-A5A6-85122824DD46
Time Awake Since Boot: 35000 seconds
Time Since Wake: 15000 seconds
System Integrity Protection: enabled
Crashed Thread: 1 Dispatch queue: com.apple.NSXPCConnection.user.com.apple.DocumentManagerCore.Downloads
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000070000b32ff68
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [7402]
VM Regions Near 0x70000b32ff68:
JS JIT generated code 27af4b001000-27af4b002000 [ 4K] ---/rwx SM=NUL
--> STACK GUARD 70000b32f000-70000b330000 [ 4K] ---/rwx SM=NUL stack guard for thread 1
Stack 70000b330000-70000b3b2000 [ 520K] rw-/rwx SM=COW thread 1
Application Specific Information:
CoreSimulator 732.13 - Device: iPad Pro (11-inch) (2nd generation) (DCD41CB8-B807-4A59-9504-7B2BC3559167) - Runtime: iOS 14.0 (18A5357e) - DeviceType: iPad Pro (11-inch) (2nd generation)
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff5da0ff6e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff5da102e0 mach_msg + 60
2 com.apple.CoreFoundation 0x0000000107040e77 CFRunLoopServiceMachPort + 316
3 com.apple.CoreFoundation 0x000000010703b58d CFRunLoopRun + 1284
4 com.apple.CoreFoundation 0x000000010703ab9e CFRunLoopRunSpecific + 567
5 com.apple.GraphicsServices 0x00000001160f2db3 GSEventRunModal + 139
6 com.apple.UIKitCore 0x0000000110f15c73 -[UIApplication _run] + 912
7 com.apple.UIKitCore 0x0000000110f1ab84 UIApplicationMain + 101
8 com.apple.mobilesafari 0x00000001042e65e2 0x104260000 + 550370


Replies

Hi,
I am testing my application on simulator's safari browser and in that I am downloading a document. When I tapped on the "Download" button on the download alert of Safari it gets crashed. Here actually Safari opens a new window and starts the download but in this specific version iPad Air (3rd generation) its crashing. I tested the same scenario in iPad Pro and there its working fine.


Code Block
Process: MobileSafari [1258]
Path: /Applications/Xcode-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSafari.app/MobileSafari
Identifier: MobileSafari
Version: 14.0 (604.1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [976]
Responsible: SimulatorTrampoline [792]
User ID: 502
Date/Time: 2020-09-16 14:28:56.440 +0530
OS Version: Mac OS X 10.15.6 (19G73)
Report Version: 12
Anonymous UUID: D8DB3A4A-1C91-9359-C52D-F6E8DA913CA4
Sleep/Wake UUID: C1AEBE37-0B7E-4697-90DC-77DC1CAFE823
Time Awake Since Boot: 36000 seconds
Time Since Wake: 14000 seconds
System Integrity Protection: enabled
Crashed Thread: 8 Dispatch queue: com.apple.NSXPCConnection.user.com.apple.DocumentManagerCore.Downloads
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000700002070f28
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [1258]
VM Regions Near 0x700002070f28:
Stack 0000700001fee000-0000700002070000 [ 520K] rw-/rwx SM=COW thread 3
--> STACK GUARD 0000700002070000-0000700002071000 [ 4K] ---/rwx SM=NUL stack guard for thread 8
Stack 0000700002071000-00007000020f3000 [ 520K] rw-/rwx SM=COW thread 8
Application Specific Information:
CoreSimulator 732.13 - Device: iPad Air (3rd generation) (3D9501C3-8D27-4E0A-917F-DE09EC2EFF1B) - Runtime: iOS 14.0 (18A5351d) - DeviceType: iPad Air (3rd generation)
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff5dd58dfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff5dd59170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff203a7be7 CFRunLoopServiceMachPort + 316
3 com.apple.CoreFoundation 0x00007fff203a22fd CFRunLoopRun + 1284
4 com.apple.CoreFoundation 0x00007fff203a190e CFRunLoopRunSpecific + 567
5 com.apple.GraphicsServices 0x00007fff2ba85db3 GSEventRunModal + 139
6 com.apple.UIKitCore 0x00007fff24647ffd -[UIApplication _run] + 912
7 com.apple.UIKitCore 0x00007fff2464cf0e UIApplicationMain + 101
8 com.apple.mobilesafari 0x00000001061af612 0x106129000 + 550418
9 libdyld.dylib 0x00007fff20257415 start + 1