according to crashlytic someone crash while using the iPad. The crash error they received is -[MFMailComposeInternalViewController _notifyCompositionDidFinish]
I don't know how this could've occurred. Here is the exception
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000c
Here is the raw data
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x30fa4f46 objc_msgSend + 5
1 MessageUI 0x252e5f01 -[MFMailComposeInternalViewController _notifyCompositionDidFinish] + 464
2 CoreFoundation 0x23524294 __invoking___ + 68
3 CoreFoundation 0x23451435 -[NSInvocation invoke] + 300
4 libdispatch.dylib 0x314f87bb _dispatch_call_block_and_release + 10
5 libdispatch.dylib 0x314f87a7 _dispatch_client_callout + 22
6 libdispatch.dylib 0x314fbfa3 _dispatch_main_queue_callback_4CF + 718
7 CoreFoundation 0x234e59d1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
8 CoreFoundation 0x234e40d1 __CFRunLoopRun + 1512
9 CoreFoundation 0x23432211 CFRunLoopRunSpecific + 476
10 CoreFoundation 0x23432023 CFRunLoopRunInMode + 106
11 GraphicsServices 0x2a7c20a9 GSEventRunModal + 136
12 UIKit 0x26a3e1d1 UIApplicationMain + 1440
13 MyApp 0x0009e7e7 main (main.m:16)
Not sure how I can diagnose it.
Finally fixed this, but mine case was extremely strange.
On iPhone 6s iOS 13.3.1 everything worked perfectly. User could open mail and dismiss it without any problems.
On another iPhone8 also iOS 13.3.1 user couldn't close mail composer - he was stuck with it.
On iPhone 6s iOS 12.4 there was that crash [MFMailComposeInternalViewController _notifyCompositionDidFinish]
Turns out that the reason was two ActionViewControllers that were presented by myViewController just before mail composer was showed by the same myViewController and console output showed:
Somehow it caused class holding MFMailComposeViewController to deinit, but looking at the code it was unrelated to those UIAlertController controllers and still it occurred only on some devices.
So before you present MFMailComposeViewController, make sure that any other view is dismissed before.