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

Android can crash when server is unreachable and disconnects

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!
Tags (2)
0 Kudos
7 Replies
Highlighted
Employee
5 Views

Thanks for reporting this

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

0 Kudos
Highlighted
Beginner
5 Views

Great, thank you!

Great, thank you!

0 Kudos
Highlighted
Beginner
5 Views

I encounter the first issue

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

0 Kudos
Highlighted
Employee
5 Views

Quote:leo a. wrote:

leo a. wrote:

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

 

yes it has been fixed.

0 Kudos
Highlighted
Beginner
5 Views

Quote:Hank Zhang (Intel)

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?

0 Kudos
Highlighted
Employee
5 Views

sorry, currently setting

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

0 Kudos
Highlighted
Beginner
5 Views

Quote:Hank Zhang (Intel)

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

0 Kudos