I am working on call ending between two peers when they are connected and if either wants to end the call, the client is supposed to send the signal to the server. User A's activity ends and resume to showing a list of users online but rather it shows a white screen when User A tries to end the call. I have called finish()on onRemoveRemoteStream() because after removing peer, this overridden method will send the signal to the remote peer to end the stream from User B's side aswell. However, my application crashed after User B's resume to the user list activity and then User A's app crashes aswell. The error comes like the following:
/com.app.webrtcdemo E/rtc: #
# Fatal error in ../../talk/app/webrtc/java/jni/peerconnection_jni.cc, line 940
# Check failed: 0 == (reinterpret_cast
(j_p))->Release() (0 vs. 1)
# Unexpected refcount.
#
/com.app.webrtcdemo A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 13701 (.app.webrtcdemo)