quickblox-ios-sdk icon indicating copy to clipboard operation
quickblox-ios-sdk copied to clipboard

[Crash] threading violation: expected the main thread

Open rami965 opened this issue 3 years ago • 9 comments

New Issue Checklist

  • [x] I have read the Documentation
  • [x] I have searched for a similar issue in the project and found none

Environment details

Info Value
iOS Version 14.6
Quickblox iOS SDK version 2.17.10
QuickbloxWebRTC SDK version 2.7.6
Xcode Version 12.5.1
Repro with our demo sample Mentioned in docs but not found in samples

Did this work before? No

Expected behavior Render the local camera track

Actual behavior App crashes

Logs

To enable full logs use the following code:

[QBSettings setLogLevel:QBLogLevelDebug];
[QBSettings enableXMPPLogging];
Short logs

2021-11-07 20:08:47.009240+0200 Laan Care Client[6715:1691092] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x2824d79c0> to GL_RENDERBUFFER 1
2021-11-07 20:08:47.009353+0200 Laan Care Client[6715:1691092] Failed to make complete framebuffer object 8cd6
2021-11-07 20:08:52.075 rtc::[CAMC] Starting QBRTCCameraCapture capture session.
2021-11-07 20:08:52.079094+0200 Laan Care Client[6715:1691258] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127
2021-11-07 20:08:52.116392+0200 Laan Care Client[6715:1691258] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread'
*** First throw call stack:
(0x18be83298 0x19fbdd480 0x18bd90cc8 0x18d0c8128 0x19a974600 0x19a926dfc 0x19a927048 0x19a926f5c 0x18e23c17c 0x18e33d390 0x18e33e068 0x107a90cd8 0x11226fae8 0x11227132c 0x11227838c 0x112279010 0x112284820 0x1d42d15bc 0x1d42d486c)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread'
terminating with uncaught exception of type NSException

Full logs

2021-11-07 20:08:20.258086+0200 Laan Care Client[6715:1691255] [QBCore]: Request[3]:
POST URL:https://api.quickblox.com/login.json
headers: {
    "Accept-Language" = "en-EG;q=1, fr-EG;q=0.9, ar-EG;q=0.8";
    "Content-Type" = "application/x-www-form-urlencoded";
    "QB-OS" = "iOS 14.6";
    "QB-SDK" = "iOS 2.17.10";
    "QB-Token" = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdHlwZSI6ImFwcGxpY2F0aW9uIiwiYXBwbGljYXRpb25faWQiOjk0MjQyLCJpYXQiOjE2MzYyODc2MzQ1NTY3MDJ9.jLMlsfjv8ETLAUvdjCdtnKefDQacukaqW4LJ7i9RYGeMowOVAKAdCwHhI-Nba1BwayNL2hp2R85tAPfiGoJ-hA";
    "QuickBlox-REST-API-Version" = "0.1.1";
    "User-Agent" = "Laan Care Client/3.2.9 (iPhone; iOS 14.6; Scale/2.00)";
}
parameters: {
    login = "patient_+966580855859";
    password = "patient_+966580855859";
}
2021-11-07 20:08:20.423804+0200 Laan Care Client[6715:1691255] [QBCore]: Response[3]:
headers: {
    "Cache-Control" = "max-age=0, private, must-revalidate";
    "Content-Length" = 389;
    "Content-Type" = "application/json; charset=utf-8";
    Date = "Sun, 07 Nov 2021 18:08:20 GMT";
    Duration = "0.165214";
    Server = nginx;
    "qb-token-expirationdate" = "2021-11-07 20:08:20 UTC";
    "x-request-id" = FrVV6VeNbXy31P0cXZmi;
}
object: {
    user =     {
        "age_over16" = 0;
        "blob_id" = "<null>";
        "created_at" = "2021-11-02T11:47:19Z";
        "custom_data" = "<null>";
        email = "<null>";
        "external_user_id" = "<null>";
        "facebook_id" = "<null>";
        "full_name" = "Rami Mahmoud";
        id = 131619375;
        "last_request_at" = "2021-11-07T18:08:20Z";
        login = "patient_+966580855859";
        "parents_contacts" = "";
        phone = "<null>";
        "twitter_id" = "<null>";
        "updated_at" = "2021-11-07T18:08:20Z";
        "user_tags" = "";
        website = "<null>";
    };
}
2021-11-07 20:08:20.517642+0200 Laan Care Client[6715:1691255] [ChatService]: Connecting with JID: [email protected]/6A128A4C-3BB3-4BE2-9C77-8C1465722D15
2021-11-07 20:08:20.794951+0200 Laan Care Client[6715:1691237] [connection] nw_endpoint_handler_set_adaptive_read_handler [C18 52.44.23.4:5223 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for read_timeout failed
2021-11-07 20:08:20.797167+0200 Laan Care Client[6715:1691237] [connection] nw_endpoint_handler_set_adaptive_write_handler [C18 52.44.23.4:5223 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, scoped, ipv4, dns)] unregister notification for write_timeout failed
2021-11-07 20:08:21.821601+0200 Laan Care Client[6715:1691342] [ChatService]: Connected
2021-11-07 20:08:21.822 rtc::[RTCClient] Signaling channel connected
2021-11-07 20:08:21.825505+0200 Laan Care Client[6715:1691250] [ChatService]: SNT: <presence/>
2021-11-07 20:08:21.830032+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <iq type="get" id="22C54F07-CB36-4F09-B164-14E228809F64"><query xmlns="jabber:iq:roster"/></iq>
2021-11-07 20:08:21.961148+0200 Laan Care Client[6715:1691342] [ChatService]: RCV: <iq xmlns="jabber:client" to="[email protected]/6A128A4C-3BB3-4BE2-9C77-8C1465722D15" type="result" id="331FBCE4-7205-4ADF-AB05-B7E7426747EC"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>[email protected]/6A128A4C-3BB3-4BE2-9C77-8C1465722D15</jid></bind></iq>
2021-11-07 20:08:22.096717+0200 Laan Care Client[6715:1691254] [ChatService]: RCV: <iq xmlns="jabber:client" to="[email protected]/6A128A4C-3BB3-4BE2-9C77-8C1465722D15" type="result" id="22C54F07-CB36-4F09-B164-14E228809F64"><query xmlns="jabber:iq:roster"/></iq>
2021-11-07 20:08:22.097564+0200 Laan Care Client[6715:1691254] [ChatService]: SMT: <enabled xmlns="urn:xmpp:sm:3"></enabled>
2021-11-07 20:08:22.101568+0200 Laan Care Client[6715:1691254] [ChatService]: RCV: <presence xmlns="jabber:client" to="[email protected]" from="[email protected]/6A128A4C-3BB3-4BE2-9C77-8C1465722D15"/>
2021-11-07 20:08:26.257666+0200 Laan Care Client[6715:1691342] [ChatService]: RCV: <message xmlns="jabber:client" id="6188161955ef57f3150041b9" from="[email protected]/631E3A7A-ACC3-45B4-A1E6-71B812045400" to="[email protected]" type="headline"><extraParams xmlns="jabber:client"><callType>1</callType><callerID>131477079</callerID><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><platform>ios</platform><sdp>v=0
o=- 8718602354646552934 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2248182767 cname:IIAZPQxcnO8m2M9k
a=ssrc:2248182767 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] audioTrack
a=ssrc:2248182767 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:2248182767 label:audioTrack
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 124 125
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:2021-11-07 20:08:26.262 rtc::[Signaling Processor] - Did receive signal: call from: 131477079
98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c34
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e034
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 red/90000
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=127
a=rtpmap:125 ulpfec/90000
a=ssrc-group:FID 977301827 4004228511
a=ssrc:977301827 cname:IIAZPQxcnO8m2M9k
a=ssrc:977301827 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:977301827 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:977301827 label:videoTrack
a=ssrc:4004228511 cname:IIAZPQxcnO8m2M9k
a=ssrc:4004228511 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:4004228511 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:4004228511 label:videoTrack
</sdp><sdkVersion>2.7.6</sdkVersion><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>call</signalType><userInfo><name>Test</name><url>http.quickblox.com</url><param>"1,2,3,4"</param></userInfo><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:26.280 rtc::[RTCClient] Initializing SSL...
2021-11-07 20:08:26.283 rtc::Create audio track: RTCMediaStreamTrack:
audio
audioTrack
enabled
Live
2021-11-07 20:08:26.284 rtc::[CAPT] Init.
2021-11-07 20:08:26.284 rtc::Create video track: RTCMediaStreamTrack:
video
videoTrack
enabled
Live
2021-11-07 20:08:26.284 rtc::initialize - QBRTCRecorder
2021-11-07 20:08:26.286 rtc::[SESS]<725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE, I:131477079, O:[131619375], T:V> Init.
2021-11-07 20:08:26.292 rtc::[TASK]<ID:5, l:session answer time out> Start.
2021-11-07 20:08:26.293 rtc::[RTCClient] <QBRTCClient: 0x283106100> created new [SESS]<725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE, I:131477079, O:[131619375], T:V>
Session state has been changed to 1
2021-11-07 20:08:30.044 rtc::[QBRTCAudioSession] Error when set configuration. Error description: The operation couldn’t be completed. (OSStatus error 561017449.)
2021-11-07 20:08:43.358 rtc::[CAMC] QBRTCCameraCapture did set video track.
2021-11-07 20:08:43.359 rtc::[SESS]<725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE, I:131477079, O:[131619375], T:V> Accept call
2021-11-07 20:08:43.359 rtc::[TASK]<ID:5, l:session answer time out> Invalidate.
2021-11-07 20:08:43.361 rtc::[TASK]<ID:0, l:session answer time out> Dealloc.
Session state has been changed to 2
2021-11-07 20:08:43.429 rtc::[Signaling Processor] - Did receive signal: call from: 131477079
2021-11-07 20:08:43.429488+0200 Laan Care Client[6715:1691258] [ChatService]: RCV: <message xmlns="jabber:client" id="6188161e55ef57f3150041ba" from="[email protected]/631E3A7A-ACC3-45B4-A1E6-71B812045400" to="[email protected]" type="headline"><extraParams xmlns="jabber:client"><callType>1</callType><callerID>131477079</callerID><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><platform>ios</platform><sdp>v=0
o=- 8718602354646552934 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video2021-11-07 20:08:43.431 rtc::[Signaling Processor] - Did receive signal: call from: 131477079

a=msid-semantic: WMS com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telepho2021-11-07 20:08:43.435 rtc::Created local media stream RTCMediaStream:
com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375]
A=1
V=1
2021-11-07 20:08:43.437 rtc::[Signaling Processor] - Did receive signal: call from: 131477079
ne-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2248182767 cname:IIAZPQxcnO8m2M9k
a=ssrc:2248182767 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] audioTrack
a=ssrc:2248182767 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:2248182767 label:audioTrack
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 124 125
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c34
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e034
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir

a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 red/90000
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=127
a=rtpmap:125 ulpfec/90000
a=ssrc-group:FID 977301827 4004228511
a=ssrc:977301827 cname:IIAZPQxcnO8m2M9k
a=ssrc:977301827 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:977301827 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:977301827 label:videoTrack
a=ssrc:4004228511 cname:IIAZPQxcnO8m2M9k
a=ssrc:4004228511 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:4004228511 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:4004228511 label:videoTrack
</sdp><sdkVersion>2.7.6</sdkVersion><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>call</signalType><userInfo><name>Test</name><url>http.quickblox.com</url><param>"1,2,3,4"</param></userInfo><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:43.514615+0200 Laan Care Client[6715:1691258] [ChatService]: RCV: <message xmlns="jabber:client" id="6188162355ef57f3150041bb" from="[email protected]/631E3A7A-ACC3-45B4-A1E6-71B812045400" to="[email protected]" type="headline"><extraParams xmlns="jabber:client"><callType>1</callType><callerID>131477079</callerID><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><platform>ios</platform><sdp>v=0
o=- 8718602354646552934 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E

a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2248182767 cname:IIAZPQxcnO8m2M9k
a=ssrc:2248182767 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] audioTrack
a=ssrc:2248182767 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:2248182767 label:audioTrack
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 124 125
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c34
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e034
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 red/90000
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=127
a=rtpmap:125 ulpfec/90000
a=ssrc-group:FID 977301827 4004228511
a=ssrc:977301827 cname:IIAZPQxcnO8m2M9k
a=ssrc:977301827 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:977301827 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:977301827 label:videoTrack
a=ssrc:4004228511 cname:IIAZPQxcnO8m2M9k
a=ssrc:4004228511 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:4004228511 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:4004228511 label:videoTrack
</sdp><sdkVersion>2.7.6</sdkVersion><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>call</signalType><userInfo><name>Test</name><url>http.quickblox.com</url><param>"1,2,3,4"</param></userInfo><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:43.518725+0200 Laan Care Client[6715:1691258] [ChatService]: RCV: <message xmlns="jabber:client" id="6188162855ef57f3150041bc" from="[email protected]/631E3A7A-ACC3-45B4-A1E6-71B812045400" to="[email protected]" type="headline"><extraParams xmlns="jabber:client"><callType>1</callType><callerID>131477079</callerID><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><platform>ios</platform><sdp>v=0
o=- 8718602354646552934 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:2248182767 cname:IIAZPQxcnO8m2M9k
a=ssrc:2248182767 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] audioTrack
a=ssrc:2248182767 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:2248182767 label:audioTrack
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 124 125
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:ezTF
a=ice-pwd:REPUGZoCtJrrHpKf+/e7VrWU
a=ice-options:trickle renomination
a=fingerprint:sha-256 07:95:21:90:C8:54:79:19:64:40:DB:6D:98:26:95:8D:81:A3:36:A4:4D:05:7C:FD:92:AD:7A:F7:29:53:35:6E
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c34
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e034
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 red/90000
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=127
a=rtpmap:125 ulpfec/90000
a=ssrc-group:FID 977301827 4004228511
a=ssrc:977301827 cname:IIAZPQxcnO8m2M9k
a=ssrc:977301827 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:977301827 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:977301827 label:videoTrack
a=ssrc:4004228511 cname:IIAZPQxcnO8m2M9k
a=ssrc:4004228511 msid:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079] videoTrack
a=ssrc:4004228511 mslabel:com.quickblox.mediastream.device-iphone10,6_ios-15.0_userid-131477079]
a=ssrc:4004228511 label:videoTrack
</sdp><sdkVersion>2.7.6</sdkVersion><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>call</signalType><userInfo><name>Test</name><url>http.quickblox.com</url><param>"1,2,3,4"</param></userInfo><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:43.478 rtc::[PCON]<131477079, R:Answer> Negotiation
2021-11-07 20:08:43.528 rtc::[PCON]<131477079, R:Answer> Create answer
2021-11-07 20:08:43.532 rtc::[PCON]<131477079, R:Answer> Signaling state HAVE_REMOTE_OFFER
2021-11-07 20:08:43.540 rtc::[PCON]<131477079, R:Answer> Set remote session description
2021-11-07 20:08:43.541 rtc::[PCON]<131477079, R:Answer> Signaling state STABLE
2021-11-07 20:08:43.707 rtc::[QBRTCAudioSession] Using configuration: <QBRTCAudioSessionConfiguration: 0x2824f7920, Category: AVAudioSessionCategoryPlayAndRecord, Category options: 102, Mode: AVAudioSessionModeVideoChat>
2021-11-07 20:08:43.707 rtc::[QBRTCAudioSession] Did end interruption, should resume: YES
2021-11-07 20:08:43.867 rtc::[QBRTCAudioSession] Did start play or record.
2021-11-07 20:08:44.292 rtc::[PCON]<131477079, R:Answer> Did change ice gethering state to GATHERING
2021-11-07 20:08:44.293 rtc::[PCON]<131477079, R:Answer> Receive remote audio track
2021-11-07 20:08:44.293 rtc::[PCON]<131477079, R:Answer> Receive remote video track
2021-11-07 20:08:44.296044+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041a8" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><callerID>131477079</callerID><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><sdp>v=0
o=- 4210272963347949277 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375]
m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 102 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:AwRW
a=ice-pwd:8p/ix4YzfKkWaXkDOUt+X4AE
a=ice-options:trickle renomination
a=fingerprint:sha-256 5B:D9:C1:13:DF:41:F9:66:6E:71:49:91:39:02:92:03:81:BB:D7:A8:85:AE:42:61:FA:ED:12:B5:08:CD:2E:B2
a=setup:active
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:3320417459 cname:wEfGNyMh51v0Fpbd
a=ssrc:3320417459 msid:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375] audioTrack
a=ssrc:3320417459 mslabel:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375]
a=ssrc:3320417459 label:audioTrack
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 127 124 125
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:AwRW
a=ice-pwd:8p/ix4YzfKkWaXkDOUt+X4AE
a=ice-options:trickle renomination
a=fingerprint:sha-256 5B:D9:C1:13:DF:41:F9:66:6E:71:49:91:39:02:92:03:81:BB:D7:A8:85:AE:42:61:FA:ED:12:B5:08:CD:2E:B2
a=setup:active
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=sendrecv
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 H264/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c33
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 H264/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e033
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:127 red/90000
a=rtpmap:124 rtx/90000
a=fmtp:124 apt=127
a=rtpmap:125 ulpfec/90000
a=ssrc-group:FID 176471461 1050113895
a=ssrc:176471461 cname:wEfGNyMh51v0Fpbd
a=ssrc:176471461 msid:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375] videoTrack
a=ssrc:176471461 mslabel:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375]
a=ssrc:176471461 label:videoTrack
a=ssrc:1050113895 cname:wEfGNyMh51v0Fpbd
a=ssrc:1050113895 msid:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375] videoTrack
a=ssrc:1050113895 mslabel:com.quickblox.mediastream.device-iphone9,1_ios-14.6_userid-131619375]
a=ssrc:1050113895 label:videoTrack
</sdp><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>accept</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.297689+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041a9" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2127017700 1 udp 2122265343 fdd4:6ba6:6e8e:5500:140d:2654:e371:59a9 61037 typ host generation 0 ufrag AwRW network-id 2 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.297753+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041aa" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2437072876 1 udp 2122194687 192.168.1.2 52604 typ host generation 0 ufrag AwRW network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.298226+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041ab" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3816788148 1 udp 2122129151 169.254.235.16 49699 typ host generation 0 ufrag AwRW network-id 3 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.298615+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041ac" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:924211641 1 udp 2122063615 10.249.110.29 61895 typ host generation 0 ufrag AwRW network-id 6 network-cost 900</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.398545+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <message id="6188162c71a0953b1a0041ad" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:809781780 1 tcp 1518285567 fdd4:6ba6:6e8e:5500:140d:2654:e371:59a9 50836 typ host tcptype passive generation 0 ufrag AwRW network-id 2 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.400555+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <message id="6188162c71a0953b1a0041ae" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3753982748 1 tcp 1518214911 192.168.1.2 50837 typ host tcptype passive generation 0 ufrag AwRW network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.400664+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <message id="6188162c71a0953b1a0041af" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2919001156 1 tcp 1518149375 169.254.235.16 50838 typ host tcptype passive generation 0 ufrag AwRW network-id 3 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.401446+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b0" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2039850313 1 tcp 1518083839 10.249.110.29 50839 typ host tcptype passive generation 0 ufrag AwRW network-id 6 network-cost 900</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.499143+0200 Laan Care Client[6715:1691577] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b1" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:941443129 1 udp 1685987071 41.236.185.192 52604 typ srflx raddr 192.168.1.2 rport 52604 generation 0 ufrag AwRW network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.586925+0200 Laan Care Client[6715:1691577] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b2" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2170260757 1 udp 41820159 178.62.113.130 63736 typ relay raddr 41.236.185.192 rport 52604 generation 0 ufrag AwRW network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.657508+0200 Laan Care Client[6715:1691258] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b3" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3059638029 1 udp 1685855999 102.13.122.9 3238 typ srflx raddr 10.249.110.29 rport 61895 generation 0 ufrag AwRW network-id 6 network-cost 900</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.671242+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b4" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3487068645 1 udp 25042687 178.62.113.130 46055 typ relay raddr 41.236.185.192 rport 50842 generation 0 ufrag AwRW network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:44.836816+0200 Laan Care Client[6715:1691578] [ChatService]: SNT: <message id="6188162c71a0953b1a0041b5" type="headline" to="[email protected]"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2170260757 1 udp 41689087 178.62.113.130 40493 typ relay raddr 102.13.122.9 rport 3238 generation 0 ufrag AwRW network-id 6 network-cost 900</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:45.047 rtc::[PCON]<131477079, R:Answer> Did change ice gethering state to COMPLETE
2021-11-07 20:08:45.077 rtc::[PCON]<131477079, R:Answer> Did change ice connection state to CONNECTED
Session state has been changed to 3
2021-11-07 20:08:45.192251+0200 Laan Care Client[6715:1691577] [ChatService]: RCV: <message xmlns="jabber:client" id="6188162c55ef57f3150041bd" from="[email protected]/631E3A7A-ACC3-45B4-A1E6-71B812045400" to="[email protected]" type="headline"><extraParams xmlns="jabber:client"><callType>1</callType><moduleIdentifier>WebRTCVideoChat</moduleIdentifier><callerID>131477079</callerID><platform>ios</platform><sdkVersion>2.7.6</sdkVersion><iceCandidates><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2464584345 1 udp 2122265343 fdd4:6ba6:6e8e:5500:1c0a:f37c:a957:4d33 52538 typ host generation 0 ufrag ezTF network-id 2 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:1178812653 1 udp 2122194687 192.168.1.9 64456 typ host generation 0 ufrag ezTF network-id 1 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3697634921 1 tcp 1518285567 fdd4:6ba6:6e8e:5500:1c0a:f37c:a957:4d33 57557 typ host tcptype passive generation 0 ufrag ezTF network-id 2 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:146848797 1 tcp 1518214911 192.168.1.9 57558 typ host tcptype passive generation 0 ufrag ezTF network-id 1 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:4011642680 1 udp 1685987071 41.236.185.192 64456 typ srflx raddr 192.168.1.9 rport 64456 generation 0 ufrag ezTF network-id 1 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:2170260757 1 udp 41820159 178.62.113.130 54494 typ relay raddr 41.236.185.192 rport 64456 generation 0 ufrag ezTF network-id 1 network-cost 10</candidate></iceCandidate><iceCandidate><sdpMLineIndex>0</sdpMLineIndex><sdpMid>audio</sdpMid><candidate>candidate:3487068645 1 udp 25042687 178.62.113.130 54213 typ relay raddr 41.236.185.192 rport 57559 generation 0 ufrag ezTF network-id 1 network-cost 10</candidate></iceCandidate></iceCandidates><sessionID>725E6BC5-3BDA-4B25-94FC-742F8E6CD5EE</sessionID><signalType>iceCandidates</signalType><opponentsIDs><opponentID>131619375</opponentID></opponentsIDs></extraParams></message>
2021-11-07 20:08:45.194 rtc::[Signaling Processor] - Did receive signal: iceCandidates from: 131477079
2021-11-07 20:08:45.194 rtc::[PCON]<131477079, R:Answer> Set remote ICE candidates, count: 7
2021-11-07 20:08:46.796279+0200 Laan Care Client[6715:1691092] Metal GPU Frame Capture Enabled
2021-11-07 20:08:46.796915+0200 Laan Care Client[6715:1691092] Metal API Validation Enabled

Stack trace

* thread #9, queue = 'org.webrtc.RTCDispatcherCaptureSession', stop reason = signal SIGABRT
  * frame #0: 0x00000001b7c2d7b0 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x00000001d42d09c0 libsystem_pthread.dylib`pthread_kill + 212
    frame #2: 0x0000000194aa7a44 libsystem_c.dylib`abort + 100
    frame #3: 0x000000019fcb7be8 libc++abi.dylib`abort_message + 128
    frame #4: 0x000000019fca9d14 libc++abi.dylib`demangling_terminate_handler() + 296
    frame #5: 0x000000019fbbd9a0 libobjc.A.dylib`_objc_terminate() + 124
    frame #6: 0x000000019fcb7074 libc++abi.dylib`std::__terminate(void (*)()) + 16
    frame #7: 0x000000019fcb700c libc++abi.dylib`std::terminate() + 44
    frame #8: 0x000000019fbdd5e4 libobjc.A.dylib`objc_terminate + 12
    frame #9: 0x0000000112271340 libdispatch.dylib`_dispatch_client_callout + 36
    frame #10: 0x000000011227838c libdispatch.dylib`_dispatch_lane_serial_drain + 748
    frame #11: 0x0000000112279010 libdispatch.dylib`_dispatch_lane_invoke + 448
    frame #12: 0x0000000112284820 libdispatch.dylib`_dispatch_workloop_worker_thread + 1448
    frame #13: 0x00000001d42d15bc libsystem_pthread.dylib`_pthread_wqthread + 272

Steps to reproduce the behavior

  • Tap answer call.
  • Set local video track session?.localMediaStream.videoTrack.videoCapture = cameraCapture where cameraCapture is an QBRTCCameraCapture instance initialized using default settings.
  • Call session.acceptCall(userInfo)
  • Open a new screen and adding the cameraCapture preview layer to a UIView.
  • Call cameraCapture.startSession() from the new screen on the same cameraCapture reference.

Any others comments

  • cameraCapture.startSession() function is not implemented in the samples but implemented in the docs.
  • I have tried calling cameraCapture.startSession() on main thread with no luck.

rami965 avatar Nov 07 '21 18:11 rami965

I have the same issue. cameraCapture.startSession() is crashing even on the main thread. Also I noticed that this happens only when the device is connected to Xcode.

maughray avatar Nov 08 '21 08:11 maughray

Yes, I noticed the same thing. Here is the steps to reproduce:

  • Run the sample from Xcode on a device (I'm using iPhone 7 (14.6)) and signup/login with any user.
  • Start video call from another user to the user logged in from the previous step.
  • While the video call is running stop the debugging from Xcode and run the sample again.
  • Start a new video call with same steps.

Expected behavior The call starts normally.

Actual behavior App crashes on cameraCapture.startSession()

Note: The camera capture seems to work correctly first time only (fresh install)

rami965 avatar Nov 08 '21 21:11 rami965

+1 I have the same issue.

OmarNoppe avatar Nov 13 '21 10:11 OmarNoppe

@rami965 @OmarNoppe @maughray Hello, We have created an internal ticket assigned to our developers' team regarding the issue and will notify you as soon as we have any updates.

ghost avatar Nov 16 '21 14:11 ghost

@QB-liubov-shmatok Any update?

OmarNoppe avatar Nov 29 '21 09:11 OmarNoppe

@rami965 @OmarNoppe @maughray Hello,

We have checked the issue with our iOS Team and these steps can help to resolve the issue :

The bug relates to specific iOS version and does not require changes in iOS SDK. Also the bug is not reproduced on a new Obj-c sample that will be released soon.

In order to resolve the issue we suggest to do the following before cameraCapture startSession:

1. Check the capture hasStarted is false

2. Check the capture isRunning is false

3. Check that capture started on a main thread 

Objective - C code sample: dispatch_async(dispatch_get_main_queue(), ^{ if (cameraCapture.hasStarted == NO && cameraCapture.isRunning == NO) { [cameraCapture startSession:nil]; } });

Swift code sample DispatchQueue.main.async { if cameraCapture.hasStarted == false, cameraCapture.isRunning == false { cameraCapture.startSession(nil) } }

ghost avatar Dec 01 '21 17:12 ghost

Doesn't work for me even with the code sample above. It crashes if connected to Xcode

JokerMZD avatar Dec 01 '21 18:12 JokerMZD

@QB-liubov-shmatok Doesn't work for me either with provided steps.

rami965 avatar Dec 05 '21 11:12 rami965

Please try to check the following steps in order to proceed with the issue investigation :

  • make sure that you implemented the code provided before cameraCapture startSession
  • provide us with the modified code with the changes implemented
  • please provide us with the full logs of the error you get

ghost avatar Dec 10 '21 09:12 ghost