voice-quickstart-ios: App is crashing while placing outbound call
Before filing an issue please check that the issue is not already addressed by the following:
- Voice SDK Guides
- GitHub Issues
- Changelog
Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue.
Description
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[10]
Steps to Reproduce
- [Step one]
- [Step two]
- [Insert as many steps as needed]
Code
// Code that helps reproduce the issue
Expected Behavior
[What you expect to happen]
Actual Behavior
[What actually happens]
Reproduces How Often
[What percentage of the time does it reproduce?]
Twilio Call SID(s)
You can find the Call SID in the SDK from TVOCall.sid or TVOCallInvite.callSid. The Call SID can also be found on the Twilio Calls Console: https://www.twilio.com/console/voice/calls/logs.
Logs
// Log output when the issue occurs
Versions
All relevant version information for the issue.
Voice iOS SDK
5.4.1 [e.g. 2.0.0-beta13 via CocoaPods]
Xcode
[e.g. 8.3.3]
iOS Version
[e.g. 10.3.3]
iOS Device
[e.g. iPhone 6s Plus]
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27 (12 by maintainers)
Hi @puneetk207
I have created a ticket for tracking this crash. One more question - what is the device you use when this happens? asking because it seems to happen when the SDK is retrieving platform information.
Thanks. -bobie
yes every time @bobiechen-twilio
Hi @bobiechen-twilio
TwilioVoice.LogLevel = TVOLogLevel.Trace; TwilioVoice.SetLogLevel(TVOLogLevel.Trace, TVOLogModule.Core);
This i get using two commands :—
2020-09-05 02:18:55.630331+0530 GBPN.iOS[5492:1438412] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003135760> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-09-05 02:19:00.239702+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call connect 2020-09-05 02:19:00.240032+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Core: Creating dedicated notifier queue … 2020-09-05 02:19:00.240314+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Initializing SIP stack … 2020-09-05 02:19:00.242464+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Adding IPv4/IPv6 TLS transports … 2020-09-05 02:19:00.242647+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Signaling: RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ] 2020-09-05 02:19:00.242782+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Signaling: RESIP::TRANSPORT: Creating TLS transport for domain interface= port=0 2020-09-05 02:19:00.243089+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Signaling: RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ] 2020-09-05 02:19:00.243208+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Signaling: RESIP::TRANSPORT: Creating TLS transport for domain interface= port=0 2020-09-05 02:19:00.243395+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Initializing DUM … 2020-09-05 02:19:00.243774+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Starting SIP stack thread … 2020-09-05 02:19:00.243922+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Starting DUM thread … 2020-09-05 02:19:00.244210+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call getSignalingThread 2020-09-05 02:19:00.244339+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call getNetworkingThread 2020-09-05 02:19:00.244581+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Starting the Network Manager 2020-09-05 02:19:00.244735+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: AppleReachability::AppleReachability() 2020-09-05 02:19:00.244876+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Creating zeroAddrReachability 2020-09-05 02:19:00.245416+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call getWebRtcTrack 2020-09-05 02:19:00.245614+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call RTCIceServers 2020-09-05 02:19:00.245741+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call RTCIceServer 2020-09-05 02:19:00.245902+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Core: Creating peer connection … 2020-09-05 02:19:00.248409+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Core: Adding local stream to peer connection … 2020-09-05 02:19:00.248909+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call getWebRtcTrack 2020-09-05 02:19:00.249171+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: Create initial local offer 2020-09-05 02:19:00.250960+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: onCreateSessionLocalDescription 2020-09-05 02:19:00.252673+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: OnSignalingChange 2020-09-05 02:19:00.252810+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: Signaling state: have-local-offer 2020-09-05 02:19:00.254401+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: onSetSessionLocalDescription 2020-09-05 02:19:00.254595+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: Local SDP - v=0 o=- 2231835274304719591 2 IN IP4 127.0.0.1 s=- t=0 0 a=group:BUNDLE audio a=msid-semantic: WMS 7aaD8A82dDF11F7aBe37F89e98d804f6 m=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 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:vXD2 a=ice-pwd:NKgGqUJAyVU+grNsTXAVLGF0 a=ice-options:trickle a=fingerprint:sha-256 F6:EC:16:8D:96:9A:0D:F2:E3:69:DB:BC:1B:02:D5:FC:1A:85:7C:ED:F7:1C:2E:57:80:B5:D5:E4:65:3F:FE:5E 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: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:3282883608 cname:R7kLAPop1jTeetMy a=ssrc:3282883608 msid:7aaD8A82dDF11F7aBe37F89e98d804f6 4a88790A067bdf5eaFCeCB8ebCDCCeAC a=ssrc:3282883608 mslabel:7aaD8A82dDF11F7aBe37F89e98d804f6 a=ssrc:3282883608 label:4a88790A067bdf5eaFCeCB8ebCDCCeAC 2020-09-05 02:19:00.254836+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: void twilio::media::NetworkMonitor::onNetworksChanged() 2020-09-05 02:19:00.254960+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: Network Name: en0, Cost: 10, Type : Wifi, Preference : 127, Active : 1, id: 2, prefix : 2409:4064:b06:18ef:: and key : en0%2409:4064:b06:18ef::/64 2020-09-05 02:19:00.255082+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: Network Name: en0, Cost: 10, Type : Wifi, Preference : 126, Active : 1, id: 1, prefix : 192.168.43.0 and key : en0%192.168.43.0/24 2020-09-05 02:19:00.255195+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: Network Name: lo0, Cost: 0, Type : Loopback, Preference : 125, Active : 1, id: 4, prefix : ::1 and key : lo0%::1/128 2020-09-05 02:19:00.255301+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: Network Name: lo0, Cost: 0, Type : Loopback, Preference : 124, Active : 1, id: 3, prefix : 127.0.0.0 and key : lo0%127.0.0.0/8 2020-09-05 02:19:00.255439+0530 GBPN.iOS[5492:1439217] DEBUG:Twilio:Core: New preferred network reported by manager: key: en0%2409:4064:b06:18ef::/64, type: Wifi, cost: 10, id: 2 2020-09-05 02:19:00.256248+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: twilio::voice::AsyncDnsResolver::AsyncDnsResolver(std::weak_ptr<DnsResolverObserver>) 2020-09-05 02:19:00.256453+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: AsyncDnsResolver resolving hostname = chunderm.gll.twilio.com 2020-09-05 02:19:00.256690+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: Gathered ICE candidate: candidate:3693473306 1 udp 2122262783 2409:4064:b06:18ef:a93d:45da:41e8:b70e 58292 typ host generation 0 ufrag vXD2 network-id 2 network-cost 10, id: expIwINu 2020-09-05 02:19:00.256884+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: Gathered ICE candidate: candidate:1234902657 1 udp 2122194687 192.168.43.219 63719 typ host generation 0 ufrag vXD2 network-id 1 network-cost 10, id: 0t0bY4Bc 2020-09-05 02:19:00.454318+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: Gathered ICE candidate: candidate:2232819986 1 udp 1685987071 47.29.101.111 63719 typ srflx raddr 192.168.43.219 rport 63719 generation 0 ufrag vXD2 network-id 1 network-cost 10, id: oixPnW+S 2020-09-05 02:19:00.519807+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: AsyncDnsResolver Resolved ip_addr = 64:ff9b::36a9:42d3, error = 0 2020-09-05 02:19:00.520095+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDnsResolver *, std::string, int) 2020-09-05 02:19:00.520427+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: onResolveResult for connect, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 64:ff9b::36a9:42d3 2020-09-05 02:19:00.520605+0530 GBPN.iOS[5492:1439215] DEBUG:Twilio:Core: New SipCall …, this=0x7fdf44051600, handle = 1 2020-09-05 02:19:00.520735+0530 GBPN.iOS[5492:1439215] INFO:Twilio:Core: Setting outbound proxy to: sip:[64:ff9b::36a9:42d3]:443;transport=tls 2020-09-05 02:19:00.521867+0530 GBPN.iOS[5492:1439234] DEBUG:Twilio:Core: Socket created in …/resiprocate-1.8/resip/stack/TcpBaseTransport.cxx at line 223, transport: 1, socket: 35 2020-09-05 02:19:00.522034+0530 GBPN.iOS[5492:1439234] INFO:Twilio:Signaling: RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V6 64:ff9b::36a9:42d3 port=443 TLS target domain=64:ff9b::36a9:42d3 mFlowKey=35 ] 2020-09-05 02:19:00.522159+0530 GBPN.iOS[5492:1439234] INFO:Twilio:Signaling: RESIP::TRANSPORT: Creating TLS connection for domain [ V6 64:ff9b::36a9:42d3 port=443 TLS target domain=64:ff9b::36a9:42d3 mFlowKey=0 ] on 35 2020-09-05 02:19:10.990504+0530 GBPN.iOS[5492:1438412] INFO:Twilio:Platform: Inside publishConnectionEvent:, event name: outgoing 2020-09-05 02:19:10.990708+0530 GBPN.iOS[5492:1438412] DEBUG:Twilio:Core: API Call getSid