MFMessageComposeViewController crash

Hi,

Our App is getting the MFMessageComposeViewController crash and we have no clue in what scenario this would happen. We already use

MFMessageComposeViewController.canSendText()

before launching the message view. Does anyone have any idea?


Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1a644d3ac objc_opt_respondsToSelector + 20
1  MessageUI                      0x1b90d8870 -[MFMessageComposeViewController smsComposeControllerSendStarted:] + 64
2  ChatKit                        0x1b7a51ac4 -[CKSMSComposeController smsComposeControllerSendStartedWithText:]
3  ChatKit                        0x1b7a6ab24 -[CKSMSComposeRemoteViewController smsComposeControllerSendStartedWithText:]
4  CoreFoundation                 0x1a6710c20 __invoking___ + 144
5  CoreFoundation                 0x1a65e0d30 -[NSInvocation invoke] + 300
6  libdispatch.dylib              0x1a63d7184 _dispatch_client_callout + 16
7  libdispatch.dylib              0x1a63b1420 _dispatch_block_invoke_direct$VARIANT$armv81 + 216
8  FrontBoardServices             0x1ab887418 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
9  FrontBoardServices             0x1ab8870e4 -[FBSSerialQueue _queue_performNextIfPossible] + 404
10 FrontBoardServices             0x1ab88760c -[FBSSerialQueue _performNextFromRunLoopSource] + 28
11 CoreFoundation                 0x1a6688a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
12 CoreFoundation                 0x1a6688958 __CFRunLoopDoSource0 + 80
13 CoreFoundation                 0x1a66880f0 __CFRunLoopDoSources0 + 180
14 CoreFoundation                 0x1a668323c __CFRunLoopRun + 1080
15 CoreFoundation                 0x1a6682adc CFRunLoopRunSpecific + 464
16 GraphicsServices               0x1b0623328 GSEventRunModal + 104
17 UIKitCore                      0x1aa79063c UIApplicationMain + 1936
18 Realtor.com                    0x102ec3cec main + 41 (AppDelegate.swift:41)
19 libdyld.dylib                  0x1a650c360 start + 4


Thanks

Hi Eric,

Don't suppose you figured anything out on this? Just started experiencing crashes with similar stack trace after introducing a feature that used MFMessageComposeViewController despite also utilizing the canSendText check. I've been unable to reproduce myself though anecdotally I can add that it only seems to happen once per device and only to a small percentage of the user base utilizing the feature.

Thanks and hope all is well!
MFMessageComposeViewController crash
 
 
Q