Cometchat crashes when smart reply is integrated

Hi guys,

We have installed Cometchat Pro SDK on our Iphone app, however when user selects on any of the smart reply messages it crashes (attached).

If user types message normally, the crash doesn’t happen and it works perfectly. When the crash happens, this is the error:

Fatal error: Index out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/ContiguousArrayBuffer.swift, line 444
2020-09-03 14:55:02.966461+0530 Flipspot[7833:3804511] Fatal error: Index out of range: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.2.25.13/swift/stdlib/public/core/ContiguousArrayBuffer.swift, line 444

And this is the error raised in the Function:
func didSendButtonPressed(title: String)
for case
self.isGroupIs – false
in the line
self.chatMessages[lastSection].append(textMessage!)

Any help in how to resolve this crash when clicking on the smart reply suggestions?

Thanks and regards.

Hi @flipspot

It seems from the crash log that you have made some changes at your end. Can you please let us know that changes also we have checked on our sample app it works fine. Can you please check once whether you face the same issue or not if yes, do let us know the steps for the same we would be happy to help you out on the same.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.