QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

Crash on Receiving Video call session #1226

Closed meAbhishekTripathi closed 2 years ago

meAbhishekTripathi commented 4 years ago

Getting crash on receiver side when created session for Video call on sender side. Delegate of didReceiveNewSession not called before crashing. It means It somewhere crashing on getting the session.

Here is the crash log :

2020-07-28 09:38:22.896 rtc::Create audio track: RTCMediaStreamTrack: audio audioTrack enabled Live 2020-07-28 09:38:22.897 rtc::[CAPT] Init. 2020-07-28 09:38:22.897 rtc::Create video track: RTCMediaStreamTrack: video videoTrack enabled Live 2020-07-28 09:38:22.899 rtc::initialize - QBRTCRecorder 2020-07-28 09:38:22.964 rtc::[SESS]<EAE09BD2-1FBD-44B0-AC56-4E246A70E556, I:117933348, O:[117932948], T:V> Init. 2020-07-28 09:38:22.967 rtc::[TASK]<ID:5, l:session answer time out> Start. 2020-07-28 09:38:22.967 rtc::[RTCClient] <QBRTCClient: 0x280b67300> created new [SESS]<EAE09BD2-1FBD-44B0-AC56-4E246A70E556, I:117933348, O:[117932948], T:V> 2020-07-28 09:38:22.968801-0400 HQDemand[6281:683068] -[NSCFConstantString count]: unrecognized selector sent to instance 0x102fc7d50 2020-07-28 09:38:44.303310-0400 HQDemand[6281:683068] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFConstantString count]: unrecognized selector sent to instance 0x102fc7d50' *** First throw call stack: (0x1c22b3180 0x1c148b9f8 0x1c21cf9bc 0x1c22b89c8 0x1c22ba65c 0x1efff085c 0x1effe5e6c 0x101219ed8 0x1c22ba800 0x1c219c3c0 0x1c219cff4 0x102f4a5e4 0x10764f6f4 0x107650c78 0x10765e6fc 0x1c2244b20 0x1c223fa58 0x1c223efb4 0x1c444079c 0x1eeaa0c38 0x101090bac 0x1c1d028e0) libc++abi.dylib: terminating with uncaught exception of type NSException

rorodriguez116 commented 4 years ago

I'm receiving the exact same error on the callee side. iOS app crashes with same error.

meAbhishekTripathi commented 4 years ago

@rorodriguez116 When you create session from the caller side, make sure you pass nil or use NSString not String for the userInfo.

session?.startCall(nil)

rorodriguez116 commented 4 years ago

@meAbhishekTripathi, Thanks for the suggestion.

shubhashkspaceo commented 4 years ago

I have fetching same issue when call initiate from web and in iOS app is crashed.

[45639:559008] -[NSCFConstantString count]: unrecognized selector sent to instance 0x1066c7c78 [45639:559008] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFConstantString count]: unrecognized selector sent to instance 0x1066c7c78'

seshukumarpoluparthi commented 3 years ago

when call is initiated,while receiving side my app got crashed , i didnt even dubug it where the error is

this the error i got: Could not cast value of type '__NSDictionaryM' (0x1eb48b050) to 'NSString' (0x1eb493f18)

this is the log:

2020-09-28 15:44:03.999 rtc::[Signaling Processor] - Did receive signal: call from: 25156065 2020-09-28 15:44:04.005 rtc::[RTCClient] Initializing SSL... 2020-09-28 15:44:04.006 rtc::Create audio track: RTCMediaStreamTrack: audio audioTrack enabled Live 2020-09-28 15:44:04.006 rtc::[CAPT] Init. 2020-09-28 15:44:04.007 rtc::Create video track: RTCMediaStreamTrack: video videoTrack enabled Live 2020-09-28 15:44:04.008 rtc::initialize - QBRTCRecorder 2020-09-28 15:44:04.010 rtc::[SESS]<51b11c9a-8be4-49aa-ae4e-d907a929f659, I:25156065, O:[25158778], T:V> Init. 2020-09-28 15:44:04.011 rtc::[TASK]<ID:17, l:session answer time out> Start. 2020-09-28 15:44:04.011 rtc::[RTCClient] <QBRTCClient: 0x280018540> created new [SESS]<51b11c9a-8be4-49aa-ae4e-d907a929f659, I:25156065, O:[25158778], T:V>

Could not cast value of type '__NSDictionaryM' (0x1eb48b050) to 'NSString' (0x1eb493f18).

2020-09-28 15:44:04.012525+0530[13846:2275372] Could not cast value of type '__NSDictionaryM' (0x1eb48b050) to 'NSString' (0x1eb493f18).

ghost commented 2 years ago

Hello,

This is Nikolay from QuickBlox support.

Please let me know if the issue is still relevant.

Please check our documentation: https://docs.quickblox.com/docs/ios-video-calling

Also, please update the SDK to the latest version: https://github.com/QuickBlox/quickblox-ios-sdk/releases/tag/2.17.10

Additionally, please check our samples: https://docs.quickblox.com/docs/code-samples#video-calling-samples

ghost commented 2 years ago

The issue is being closed as outdated.

If it is still relevant, feel free to open a new issue.