AnsweredAssumed Answered

Android SDK Crash When Agent Signs Out While Call is Ringing

Question asked by bcason on Jan 22, 2016
Latest reply on Jan 25, 2016 by huliving

we are experiencing a crash in our app when an agent signs out while the call is ringing. Stack trace below. Please let me know if additional logs would be helpful:

 

Crash When Agent Signs Out While Call is Ringing

Stack Trace below:

Stack Trace

01-18 14:51:56.887 4645-8948/co.uk.youandb.android.b.demo.debug D/ServerMessageTransport: Received:

[{"type":"OFFER","callId":"CL-b2ff664e-9cc3-4344-a683-aa1529ddeae9","sdp":"v=0\r\no=- 8798860422 6 IN IP4 198.18.134.99\r\ns=-\r\nc=IN

IP4 198.18.134.99\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS

6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\nm=audio 16001 RTP/SAVPF 18 0 8 111\r\na=rtpmap:18 G729/8000\r\na=rtpmap:0

PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:111 opus/48000/2\r\na=sendonly\r\na=rtcp:1 IN IP4

198.18.134.99\r\na=rtcp-mux\r\na=candidate:789654123 1 udp 1 198.18.134.99 16001 typ host generation 0\r\na=candidate:789654123 2

udp 1 198.18.134.99 16001 typ host generation 0\r\na=fingerprint:sha-256

15:02:F8:64:79:D5:06:6C:65:C1:C8:90:B3:BF:7B:64:FA:67:C6:2C:50:E1:14:FD:BD:90:DC:15:B2:A7:4B:51\r\na=ice-ufrag:T+fFvqrD\r\na=icepwd:

A40pNqlzmkOGb2QI5OhysrzD\r\na=ssrc:940811197 cname:TiKQKQcbrU6UTlNF\r\na=ssrc:940811197

msid:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK 6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKa0\r\na=ssrc:940811197

mslabel:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\na=ssrc:940811197

label:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKa0\r\na=mid:audio\r\na=setup:actpass\r\nm=video 16001 RTP/SAVPF 97

100\r\na=rtpmap:97 H264/90000\r\na=fmtp:97 profile-level-id=42801E;packetization-mode=0;level-asymmetry-allowed=1\r\na=rtcp-fb:97

nack\r\na=rtcp-fb:97 ccm fir\r\na=rtcp-fb:97 nack pli\r\na=rtcp-fb:97 goog-remb\r\na=rtpmap:100 VP8/90000\r\na=rtcp-fb:100

nack\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=sendonly\r\na=rtcp:1 IN IP4

198.18.134.99\r\na=rtcp-mux\r\na=imageattr:97 send [x=640,y=480]\r\na=imageattr:100 send [x=640,y=480]\r\na=candidate:789654123 1

udp 1 198.18.134.99 16001 typ host generation 0\r\na=candidate:789654123 2 udp 1 198.18.134.99 16001 typ host generation

0\r\na=fingerprint:sha-256

15:02:F8:64:79:D5:06:6C:65:C1:C8:90:B3:BF:7B:64:FA:67:C6:2C:50:E1:14:FD:BD:90:DC:15:B2:A7:4B:51\r\na=ice-ufrag:T+fFvqrD\r\na=icepwd:

A40pNqlzmkOGb2QI5OhysrzD\r\na=ssrc:2593352840 cname:TiKQKQcbrU6UTlNF\r\na=ssrc:2593352840

msid:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK 6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKv0\r\na=ssrc:2593352840

mslabel:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\na=ssrc:2593352840

label:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKv0\r\na=mid:video\r\na=setup:actpass\r\n","remoteParty":"7800"}]

{

"type": "OFFER",

"callId": "CL-b2ff664e-9cc3-4344-a683-aa1529ddeae9",

"sdp": "v=0\r\no=- 8798860422 6 IN IP4 198.18.134.99\r\ns=-\r\nc=IN IP4 198.18.134.99\r\nt=0 0\r\na=group:BUNDLE audio

video\r\na=msid-semantic: WMS 6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\nm=audio 16001 RTP\/SAVPF 18 0 8 111\r\na=rtpmap:18

G729\/8000\r\na=rtpmap:0 PCMU\/8000\r\na=rtpmap:8 PCMA\/8000\r\na=rtpmap:111 opus\/48000\/2\r\na=sendonly\r\na=rtcp:1 IN IP4

198.18.134.99\r\na=rtcp-mux\r\na=candidate:789654123 1 udp 1 198.18.134.99 16001 typ host generation 0\r\na=candidate:789654123 2

udp 1 198.18.134.99 16001 typ host generation 0\r\na=fingerprint:sha-256

15:02:F8:64:79:D5:06:6C:65:C1:C8:90:B3:BF:7B:64:FA:67:C6:2C:50:E1:14:FD:BD:90:DC:15:B2:A7:4B:51\r\na=ice-ufrag:T+fFvqrD\r\na=icepwd:

A40pNqlzmkOGb2QI5OhysrzD\r\na=ssrc:940811197 cname:TiKQKQcbrU6UTlNF\r\na=ssrc:940811197

msid:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK 6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKa0\r\na=ssrc:940811197

mslabel:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\na=ssrc:940811197

label:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKa0\r\na=mid:audio\r\na=setup:actpass\r\nm=video 16001 RTP\/SAVPF 97

100\r\na=rtpmap:97 H264\/90000\r\na=fmtp:97 profile-level-id=42801E;packetization-mode=0;level-asymmetry-allowed=1\r\na=rtcp-fb:97

nack\r\na=rtcp-fb:97 ccm fir\r\na=rtcp-fb:97 nack pli\r\na=rtcp-fb:97 goog-remb\r\na=rtpmap:100 VP8\/90000\r\na=rtcp-fb:100

nack\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=sendonly\r\na=rtcp:1 IN IP4

198.18.134.99\r\na=rtcp-mux\r\na=imageattr:97 send [x=640,y=480]\r\na=imageattr:100 send [x=640,y=480]\r\na=candidate:789654123 1

udp 1 198.18.134.99 16001 typ host generation 0\r\na=candidate:789654123 2 udp 1 198.18.134.99 16001 typ host generation

0\r\na=fingerprint:sha-256

15:02:F8:64:79:D5:06:6C:65:C1:C8:90:B3:BF:7B:64:FA:67:C6:2C:50:E1:14:FD:BD:90:DC:15:B2:A7:4B:51\r\na=ice-ufrag:T+fFvqrD\r\na=icepwd:

A40pNqlzmkOGb2QI5OhysrzD\r\na=ssrc:2593352840 cname:TiKQKQcbrU6UTlNF\r\na=ssrc:2593352840

msid:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK 6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKv0\r\na=ssrc:2593352840

mslabel:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iK\r\na=ssrc:2593352840

label:6Z0MoXiCUJCiralQQIdol9TgBpFT7dDrm6iKv0\r\na=mid:video\r\na=setup:actpass\r\n",

"remoteParty": "7800"

}

01-18 14:51:56.887 4645-8948/co.uk.youandb.android.b.demo.debug D/PhoneImpl: handleOfferWithPostRingingCallback true

01-18 14:51:56.887 4645-8948/co.uk.youandb.android.b.demo.debug D/PhoneImpl: handleOfferWithPostRingingCallbackTrickleIce

mOutboundOfferPending=false

01-18 14:51:56.887 4645-8948/co.uk.youandb.android.b.demo.debug D/PhoneImpl: No display name to set on call

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug D/CallManager: getCallImplWithID

[com.alicecallsbob.fcsdk.android.phone.impl.CallImpl@154abe01] - 1 - CL-b2ff664e-9cc3-4344-a683-aa1529ddeae9 cm=

com.alicecallsbob.fcsdk.android.phone.impl.PhoneImpl@3c1887e8

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug D/PhoneImpl: getCallImplWithID() - ID

argument=CL-b2ff664e-9cc3-4344-a683-aa1529ddeae9

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug D/PhoneImpl: handleUpdatedOffer

01-18 14:51:56.897 295-617/? D/audio_hw_primary: adev_set_parameters: enter: voip=off

01-18 14:51:56.897 295-617/? D/audio_hw_hfp: audio_extn_hfp_set_parameters: enter

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug D/PeerConnectionClient: setRemoteDescription

01-18 14:51:56.897 4645-4645/co.uk.youandb.android.b.demo.debug I/CallStatisticsMonitor: Stopping CallStatisticsMonitor

01-18 14:51:56.897 4645-4645/co.uk.youandb.android.b.demo.debug I/CallStatisticsMonitor: Stopped CallStatisticsMonitor

01-18 14:51:56.897 4645-4645/co.uk.youandb.android.b.demo.debug I/PhoneImpl: call ended

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug W/PeerConnectionClient: Cannot set the remote description on a null

PeerConnection

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug D/PeerConnectionClient: createAnswer

01-18 14:51:56.897 4645-9917/co.uk.youandb.android.b.demo.debug E/AndroidRuntime: FATAL EXCEPTION: Thread-88074

Process: co.uk.youandb.android.b.demo.debug, PID: 4645

java.lang.NullPointerException: Attempt to invoke virtual method 'void org.webrtc.PeerConnection.createAnswer(org.webrtc.SdpObserver,

org.webrtc.MediaConstraints)' on a null object reference

at com.alicecallsbob.fcsdk.android.phone.impl.PeerConnectionClient.createAnswer(PeerConnectionClient.java:600)

at com.alicecallsbob.fcsdk.android.phone.impl.PhoneImpl.handleUpdatedOffer(PhoneImpl.java:586)

at com.alicecallsbob.fcsdk.android.phone.impl.PhoneImpl.access$700(PhoneImpl.java:62)

at com.alicecallsbob.fcsdk.android.phone.impl.PhoneImpl$5.run(PhoneImpl.java:721)

at java.lang.Thread.run(Thread.java:818)

Outcomes