Closed DaskiOFF closed 6 years ago
Hi,
According to logs crash is somewhere in your application:
2017-11-23 12:56:52.759521+0300 MobileDoctor[20004:6592743] -[NSCFConstantString count]: unrecognized selector sent to instance 0x103b5b2b0 2017-11-23 12:56:52.760188+0300 MobileDoctor[20004:6592743] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFConstantString count]: unrecognized selector sent to instance 0x103b5b2b0' *** First throw call stack:
You are sending an unrecognized selector. In order to catch this add exception for all exceptions: http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions
Hello,
Why it happens only when we call from our web application? If you call from your test application into our iOS application, then everything is fine.
I think if it was a problem in our code, I'd get the session in the callback function
func didReceiveNewSession(_ session: QBRTCSession, userInfo: [String : String]? = nil)
otherwise, why with your example I get through, and from our server no?
But this is not happening, the app crashes before that.
Is there a way to verify that the problem is from our side? Given the fact that the test application the call succeeds
Have you set up all exceptions? The link is provided in my previous answer. It should point out the exact line where it is crashing.
You can also call to our sample app from our web sample to test: http://samples.quickblox.com/web/webrtc/?creds=test#dashboard
Yes, I set up all exceptions.
Line crashing which indicates Xcode is
class AppDelegate: UIResponder, UIApplicationDelegate {
In the near future will try to call from the web application in your example application and I will report on the results.
Thank you
Please also check this issue https://github.com/QuickBlox/quickblox-ios-sdk/issues/797 It might be related to yours.
Hi, we have been able to call in your example application, but we still continue to Crash in our application.
I tried to find a solution and here's what happened:
QBCore
from your exampleQBCore
is delegate for QBRTCClient
(QBRTCClient.instance.().add(self)
)If we do not implementation from QBRTCClientDelegate
, the app continues to work fine log
If QBCore
implements one only method didReceiveNewSession(_ session: QBRTCSession, users: [string : string]? = nil)
, then we obtain the following crash console message
If QBCore
implements one only method func sessionDidClose(_ session: QBRTCSession)
, then everything works fine. If the web app we click to hang up, we get callback in the app sessionDidClose(_ session: QBRTCSession)
Error was found! For Swift 3.2
In xcode wrong interface generation for header files, in particular xcode generated method:
func didReceiveNewSession(_ session: QBRTCSession, users: [string : string]? = nil)
and should be:
func didReceiveNewSession(_ session: QBRTCSession, users: Any!)
New Issue Checklist
Environment details
Did this work before? Yes
Expected behavior During an incoming call is invoked
func didReceiveNewSession(_ session: QBRTCSession, userInfo: [String : String]? = nil)
Actual behavior During a call, from our website (version 2.7.0 js SDK) The following happens (the logs are below or here (Gist))
Application crash during before calling
func didReceiveNewSession(_ session: QBRTCSession, userInfo: [String : String]? = nil)
If you call our app from your test application, then everything is fine
Logs
Actual behavior logs
```logos 2017-11-23 12:56:52.723 rtc::[Signaling Processor] - Did receive signal: call from: 36894006 2017-11-23 12:56:52.724926+0300 MobileDoctor[20004:6593902] [ChatService]: RCV: