Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1136 Discussions

Android can crash when server is unreachable and disconnects

Piet_P_
Beginner
155 Views
Hello developers, Recently we experienced a network issue which made the WebRTC server unreachable, the Android clients crashed instead of outputting an error. I have two different crashlogs of the crashes: The first: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference at com.intel.webrtc.conference.SocketClient.triggerDisconnected(SocketClient.java:2523) access$200 at com.intel.webrtc.conference.SocketClient$2.call(SocketClient.java:106) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Socket.access$000(Socket.java:19) access$100 access$200 access$601 access$1000 at io.socket.client.Socket$5.run(Socket.java:177) at io.socket.thread.EventThread.exec(EventThread.java:50) at io.socket.client.Socket.emit(Socket.java:173) at io.socket.client.Socket.onclose(Socket.java:279) at io.socket.client.Socket.access$000(Socket.java:19) access$100 access$200 access$601 access$1000 at io.socket.client.Socket$8.run(Socket.java:441) at io.socket.thread.EventThread.exec(EventThread.java:50) at io.socket.client.Socket.close(Socket.java:2430) disconnect at com.intel.webrtc.conference.SocketClient.disconnect(SocketClient.java:771) at com.intel.webrtc.conference.ConferenceClient.onRoomConnectFailed(ConferenceClient.java:1149) at com.intel.webrtc.conference.SocketClient$17.call(SocketClient.java:446) at io.socket.client.Socket.onack(Socket.java:379) at io.socket.client.Socket.onpacket(Socket.java:3307) access$100 at io.socket.client.Socket$2$2.call(Socket.java:111) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Manager.ondecoded(Manager.java:16407) access$1600 at io.socket.client.Manager$7.call(Manager.java:383) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Manager.io.socket.parser.Parser$Decoder.add(Manager.java:14157) ondata access$1000 at io.socket.client.Manager$2.call(Manager.java:350) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Socket.onPacket(Socket.java:4497) access$900 at io.socket.engineio.client.Socket$5.call(Socket.java:299) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Transport.onPacket(Transport.java:127) at io.socket.engineio.client.Transport.onData(Transport.java:119) at io.socket.engineio.client.transports.WebSocket.access$002(WebSocket.java:32) access$100 access$200 access$300 access$400 at io.socket.engineio.client.transports.WebSocket$1$3.run(WebSocket.java:111) at io.socket.thread.EventThread$2.run(EventThread.java:75) 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:761) And the second: java.lang.NullPointerException at com.intel.webrtc.conference.SocketClient.triggerDisconnected(SocketClient.java:2523) access$200 at com.intel.webrtc.conference.SocketClient$2.call(SocketClient.java:106) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Socket.access$000(Socket.java:19) access$100 access$200 access$601 access$1000 at io.socket.client.Socket$5.run(Socket.java:177) at io.socket.thread.EventThread.exec(EventThread.java:50) at io.socket.client.Socket.emit(Socket.java:173) at io.socket.client.Socket.onclose(Socket.java:279) at io.socket.client.Socket.access$000(Socket.java:19) access$100 access$200 access$601 access$1000 at io.socket.client.Socket$8.run(Socket.java:441) at io.socket.thread.EventThread.exec(EventThread.java:50) at io.socket.client.Socket.close(Socket.java:2430) disconnect at com.intel.webrtc.conference.SocketClient.disconnect(SocketClient.java:771) at com.intel.webrtc.conference.ConferenceClient.onRoomConnectFailed(ConferenceClient.java:1149) at com.intel.webrtc.conference.SocketClient$17.call(SocketClient.java:446) at io.socket.client.Socket.onack(Socket.java:379) at io.socket.client.Socket.onpacket(Socket.java:3307) access$100 at io.socket.client.Socket$2$2.call(Socket.java:111) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Manager.ondecoded(Manager.java:16407) access$1600 at io.socket.client.Manager$7.call(Manager.java:383) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.client.Manager.io.socket.parser.Parser$Decoder.add(Manager.java:14157) ondata access$1000 at io.socket.client.Manager$2.call(Manager.java:350) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Socket.onPacket(Socket.java:4497) access$900 at io.socket.engineio.client.Socket$5.call(Socket.java:299) at io.socket.emitter.Emitter.emit(Emitter.java:117) at io.socket.engineio.client.Transport.onPacket(Transport.java:127) at io.socket.engineio.client.Transport.onData(Transport.java:119) at io.socket.engineio.client.transports.WebSocket.access$002(WebSocket.java:32) access$100 access$200 access$300 access$400 at io.socket.engineio.client.transports.WebSocket$1$3.run(WebSocket.java:111) at io.socket.thread.EventThread$2.run(EventThread.java:75) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Hopefully the team will fix the crash and let the call end gracefully, thanks in advance!
0 Kudos
7 Replies
He_Z_Intel
Employee
155 Views

Thanks for reporting this issue Piet, we will check and fix it.

Piet_P_
Beginner
155 Views

Great, thank you!

leo_a_
Beginner
155 Views

I encounter the first issue too, does the new version fixed it?

He_Z_Intel
Employee
155 Views

leo a. wrote:

I encounter the first issue too, does the new version fixed it?

 

yes it has been fixed.

leo_a_
Beginner
155 Views

Hank Zhang (Intel) wrote:

Quote:

leo a. wrote:

 

I encounter the first issue too, does the new version fixed it?

 

 

 

yes it has been fixed.

 

Thank you for reply, may I ask if I want use OPUS audio codec with sample rate like 8k or 16k not default 48k, where should I change the setting?

He_Z_Intel
Employee
155 Views

sorry, currently setting sample rate for audio codec isn't supported yet.

leo_a_
Beginner
155 Views

Hank Zhang (Intel) wrote:

sorry, currently setting sample rate for audio codec isn't supported yet.

 

I got it. So If I want using low sample rate, I have to switch audio codec to PCMU or ISAC

Reply