Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
45 Views

issue in Android SDK while do unpublish

Jump to solution

Hi Team,

When i am doing unpublishing or disconnecting the session  i am getting below exception repeatedly

on unpublishing

publication.stop();

localStream.detach(localRenderer);

capturer.stopCapture();

capturer.dispose();

capturer = null;

localStream.dispose();

localStream = null;

on disconnecting

conferenceClient.leave()

 

public void onServerDisconnected() {

 if (capturer != null)

{

capturer.stopCapture();

capturer.dispose();

capturer = null;

}

if (localStream != null)

{

localStream.dispose();

localStream = null;

}

publication = null;

subscription = null;

stream2Sub = null;

rootEglBase.release();

}

 then it gives below exception

FATAL EXCEPTION: pool-8-thread-1 Process: com.mobile.telebu, PID: 19217 java.lang.NullPointerException: Attempt to read from field 'long org.webrtc.MediaStream.nativeStream' on a null object reference

at org.webrtc.PeerConnection.removeStream(PeerConnection.java:782)

at com.intel.webrtc.base.PeerConnectionChannel.lambda$removeStream$6$PeerConnectionChannel(PeerConnectionChannel.java:216)

at com.intel.webrtc.base.PeerConnectionChannel$$Lambda$6.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

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

 

Thank you.

Best Regards,
Gopi Krishna.

Tags (2)
0 Kudos

Accepted Solutions
Highlighted
Employee
45 Views

This exception is due to the fact that LocalStream has been disposed at the time peerconnection tries to remove it.

Please try avoiding doing these two operations together, and we will fix this issue in the newer version.

and you can also find the fixing in the most recent code on github.

View solution in original post

0 Kudos
5 Replies
Highlighted
Beginner
45 Views

Hello,

Any help would be appreciated.

Thank you.

Best Regards,

Gopi Krishna P

0 Kudos
Highlighted
Employee
46 Views

This exception is due to the fact that LocalStream has been disposed at the time peerconnection tries to remove it.

Please try avoiding doing these two operations together, and we will fix this issue in the newer version.

and you can also find the fixing in the most recent code on github.

View solution in original post

0 Kudos
Highlighted
Beginner
45 Views

Hello Hank Zhang,

Thanks for your update :)

Can you please share recent code on github link, i am unable to find that code path.

 

Thank you.

Best Regards,

Gopi Krishna P

 

0 Kudos
Highlighted
Employee
45 Views
0 Kudos
Highlighted
Beginner
45 Views

Hello Hank Zhang,

Good morning and thanks very much for your reply and updated information. What I am wondering is Intel CS for WebRTC client SDK (https://software.intel.com/en-us/webrtc-sdk) and the link that is sent by you (https://github.com/open-media-streamer) both are same? Please clarify. If both are same and if we get the latest updated SDK with bug fixes in GitHub, we will use GitHub version only.

Thanks in advance.

Best Regards,
Gopi Krishna P

0 Kudos