Android NativeCall app: getMediaDescription returns null
Trying to run a call, and sometimes tapping the "call" button in the application is making the app to crash as the native call returns a null object. See the stacktrace:
01-29 10:50:55.224 2228-2228/com.ericsson.research.owr.examples.nativecall E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.ericsson.research.owr.examples.nativecall, PID: 2228 java.lang.NullPointerException at com.ericsson.research.owr.examples.nativecall.PeerHandler.handleSessionDescription(PeerHandler.java:275) at com.ericsson.research.owr.examples.nativecall.PeerHandler.onMessage(PeerHandler.java:115) at com.ericsson.research.owr.examples.nativecall.SignalingChannel$PeerChannel.onMessage(SignalingChannel.java:256) at com.ericsson.research.owr.examples.nativecall.SignalingChannel$PeerChannel.access$1000(SignalingChannel.java:219) at com.ericsson.research.owr.examples.nativecall.SignalingChannel.handleEvent(SignalingChannel.java:169) at com.ericsson.research.owr.examples.nativecall.SignalingChannel.access$900(SignalingChannel.java:52) at com.ericsson.research.owr.examples.nativecall.SignalingChannel$2.run(SignalingChannel.java:156) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:146)
@rugvip can probably answer this.
Do you have any steps to reproduce this, or does it seem to be random? Does it always happen when calling from the application? It looks like one or both of the local media descriptions are null.
I did just find a crash when calling to the application, when e.g. requesting video but not having the video box check in the application. Wasn't the same stack trace though.
@Rugvip , here are the steps to reproduce:
- Open the nativecall app, enter the session id and tap "Join". (audio is not checked & video option is checked)
- Use your web browser (chrome) and tap "Join". (audio & video options are checked)
- Use your web browser (chrome) and tap "Call"
- NativeCall app crashes with the reported exception.
Hi, I am having exactly the same problem, is there anyway to solve this issue?
Hi, further tested. When I connect to this URL: http://demo.openwebrtc.org:38080/, the app worked as expected. But when I connnected to my own server using server: channel_server.js. The app always crashed when I try to call by pressing call button. Anyone has an idea how to properly setup a private server to run openwebrtc?