openwebrtc-examples icon indicating copy to clipboard operation
openwebrtc-examples copied to clipboard

Android NativeCall app: getMediaDescription returns null

Open phetroy opened this issue 10 years ago • 5 comments

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)

phetroy avatar Jan 28 '15 03:01 phetroy

@rugvip can probably answer this.

superdump avatar Jan 28 '15 06:01 superdump

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 avatar Jan 28 '15 07:01 Rugvip

@Rugvip , here are the steps to reproduce:

  1. Open the nativecall app, enter the session id and tap "Join". (audio is not checked & video option is checked)
  2. Use your web browser (chrome) and tap "Join". (audio & video options are checked)
  3. Use your web browser (chrome) and tap "Call"
  4. NativeCall app crashes with the reported exception.

phetroy avatar Jan 29 '15 18:01 phetroy

Hi, I am having exactly the same problem, is there anyway to solve this issue?

sanothay avatar Sep 01 '15 05:09 sanothay

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?

sanothay avatar Sep 01 '15 06:09 sanothay