Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

Android webRTC crashes when gathering ICE candidates?

Zhen_L_
Beginner
898 Views

E/rtc: #

          # Fatal error in ../../webrtc/api/java/jni/androidnetworkmonitor_jni.cc, line 195

          # Check failed: !jni()->ExceptionCheck()

          # Error during CallVoidMethod

          #

 

Received this error when testing on one of my android device. (The same code does not crash on other devices).

 

I see that my device got an SDP offer and sent it over. But it seems that it wasn't able to gather any ice candidates and crashed there.

 

LG G2 (LG-D800) running android 5.0.2. Build# LRX22G

0 Kudos
3 Replies
Zhen_L_
Beginner
898 Views

Seems like a permission issue. I was only looking at error level logs initially.

 

java.lang.SecurityException: ConnectivityService: Neither user 10188 nor current process has android.permission.CHANGE_NETWORK_STATE.
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
     at android.net.IConnectivityManager$Stub$Proxy.requestNetwork(IConnectivityManager.java:2443)
     at android.net.ConnectivityManager.sendRequestForNetwork(ConnectivityManager.java:3210)
     at android.net.ConnectivityManager.requestNetwork(ConnectivityManager.java:3237)
     at org.webrtc.NetworkMonitorAutoDetect$ConnectivityManagerDelegate.requestMobileNetwork(NetworkMonitorAutoDetect.java:341)
     at org.webrtc.NetworkMonitorAutoDetect.<init>(NetworkMonitorAutoDetect.java:449)
     at org.webrtc.NetworkMonitor.setAutoDetectConnectivityStateInternal(NetworkMonitor.java:139)
    at org.webrtc.NetworkMonitor.startMonitoring(NetworkMonitor.java:108)
 E/rtc: #
# Fatal error in ../../webrtc/api/java/jni/androidnetworkmonitor_jni.cc, line 195
# Check failed: !jni()->ExceptionCheck()
# Error during CallVoidMethod
0 Kudos
He_Z_Intel
Employee
898 Views

Please try to add the permission for the app.

0 Kudos
Zhen_L_
Beginner
898 Views

Yeah I added permissions and it was good

0 Kudos
Reply