App crashes when disposing Mediastream on Android.

856 views
Skip to first unread message

Phil

unread,
Dec 5, 2019, 10:19:53 AM12/5/19
to discuss-webrtc
Hi,
I'm developing video calling app on android. It is getting crashes when disposing the mediastream. Earlier i'v added tracks directly in peerconnection. Now I've changed  by adding  media stream in peerconnection. When disposing the peerconnection and factory. It is getting crashed.


Pls anyone help. Thanks in Advance.



Regards,
Phil.

Henrik Andreasson

unread,
Dec 6, 2019, 3:38:15 AM12/6/19
to discuss-webrtc
File an issue here and provide more details.
- Callstack
- How to reproduce
- Can you bisect and find a working/non-working version

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/672d522b-0108-4f73-90ee-f69183d49c3b%40googlegroups.com.

Phil

unread,
Dec 6, 2019, 9:50:07 AM12/6/19
to discuss-webrtc
Hi Henrik,

I'm disposing the peerconnection after 2 sec of ice-disconnected  state. After the i'm creating a new peerconnection then adding the same media stream.
I'm getting the following error when setting the mediastream in second peerconnection after the first one is disposed.


PID: 17677
    java.lang.IllegalStateException: MediaStreamTrack has been disposed.
        at org.webrtc.MediaStreamTrack.checkMediaStreamTrackExists(MediaStreamTrack.java:120)
        at org.webrtc.MediaStreamTrack.getNativeMediaStreamTrack(MediaStreamTrack.java:114)
        at org.webrtc.AudioTrack.getNativeAudioTrack(AudioTrack.java:28)
        at org.webrtc.MediaStream.addTrack(MediaStream.java:33)

Please check this. 

Thanks in advance

Regards,
Phil.


On Friday, December 6, 2019 at 2:08:15 PM UTC+5:30, Henrik Andreasson wrote:
File an issue here and provide more details.
- Callstack
- How to reproduce
- Can you bisect and find a working/non-working version

On Thu, Dec 5, 2019 at 4:20 PM Phil <ayyapp...@gmail.com> wrote:
Hi,
I'm developing video calling app on android. It is getting crashes when disposing the mediastream. Earlier i'v added tracks directly in peerconnection. Now I've changed  by adding  media stream in peerconnection. When disposing the peerconnection and factory. It is getting crashed.


Pls anyone help. Thanks in Advance.



Regards,
Phil.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages