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

Android webRTC crashes when gathering ICE candidates?

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

Tags (2)
0 Kudos
3 Replies
Highlighted
Beginner
21 Views

Seems like a permission issue

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
Highlighted
Employee
21 Views

Please try to add the

Please try to add the permission for the app.

0 Kudos
Highlighted
Beginner
21 Views

Yeah I added permissions and

Yeah I added permissions and it was good

0 Kudos