question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, I have the problem with new 0.10 version on Android devices. When I try pc.addLocalStream(), app crashes. It’s a very stable bug. If I downgrade version to 0.8, Android addLocalStream is ok.

08-07 13:34:08.943 11697 11748 I org.webrtc.Logging: WebRtcAudioManager: Sample rate is set to 48000 Hz
08-07 13:34:08.955 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: canUseAcousticEchoCanceler: true
08-07 13:34:08.960 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: canUseAutomaticGainControl: false
08-07 13:34:08.968 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: canUseNoiseSuppressor: true
08-07 13:34:08.970 11697 11748 D JVM     : JNIEnvironment::RegisterNatives(org/webrtc/voiceengine/WebRtcAudioRecord)
08-07 13:34:08.971 11697 11748 I org.webrtc.Logging: WebRtcAudioRecord: ctor@[name=Thread-7248, id=7248]
08-07 13:34:08.971 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: ctor@[name=Thread-7248, id=7248]
08-07 13:34:08.971 11697 11748 I org.webrtc.Logging: WebRtcAudioManager: init@[name=Thread-7248, id=7248]
08-07 13:34:08.972 11697 11748 I org.webrtc.Logging: WebRtcAudioManager: audio mode is: MODE_NORMAL
08-07 13:34:08.973 11697 11748 I org.webrtc.Logging: WebRtcAudioRecord: enableBuiltInAEC(true)
08-07 13:34:08.973 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: setAEC(true)
08-07 13:34:08.973 11697 11748 I org.webrtc.Logging: WebRtcAudioRecord: enableBuiltInNS(true)
08-07 13:34:08.973 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: setNS(true)
08-07 13:34:09.305 11697 11744 I org.webrtc.Logging: PeerConnectionFactory: onNetworkThreadReady
08-07 13:34:09.364 11697 11748 I org.webrtc.Logging: PeerConnectionFactory: onWorkerThreadReady
08-07 13:34:09.478 11697 11749 I org.webrtc.Logging: PeerConnectionFactory: onSignalingThreadReady
08-07 13:34:14.952 11697 11753 D com.oney.WebRTCModule.WebRTCModule: mMediaStreamId: 0
08-07 13:34:19.285 11697 11753 D com.oney.WebRTCModule.WebRTCModule: addStreamtrue
08-07 13:34:19.285 11697 11753 D com.oney.WebRTCModule.WebRTCModule: peerConnectionSetRemoteDescription() start
08-07 13:34:20.187 11697 11753 D com.oney.WebRTCModule.WebRTCModule: peerConnectionSetRemoteDescription() end
08-07 13:34:20.391 11697 11753 D com.oney.WebRTCModule.WebRTCModule: RTCPeerConnectionCreateAnswerWithObjectID start
08-07 13:34:20.392 11697 11753 D com.oney.WebRTCModule.WebRTCModule: RTCPeerConnectionCreateAnswerWithObjectID end
08-07 13:34:20.403 11697 11753 D com.oney.WebRTCModule.WebRTCModule: peerConnectionSetLocalDescription() start
08-07 13:34:20.958 11697 11748 I org.webrtc.Logging: WebRtcAudioRecord: enableBuiltInAEC(false)
08-07 13:34:20.958 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: setAEC(false)
08-07 13:34:20.959 11697 11748 I org.webrtc.Logging: WebRtcAudioRecord: enableBuiltInNS(true)
08-07 13:34:20.959 11697 11748 I org.webrtc.Logging: WebRtcAudioEffects: setNS(true)
08-07 13:34:21.021 11697 11744 I org.webrtc.Logging: NetworkMonitor: Start monitoring from native observer -1424603392
08-07 13:34:21.023 11697 11744 W System.err:    at org.webrtc.NetworkMonitorAutoDetect$ConnectivityManagerDelegate.getNetworkState(NetworkMonitorAutoDetect.java:191)
08-07 13:34:21.023 11697 11744 W System.err:    at org.webrtc.NetworkMonitorAutoDetect.<init>(NetworkMonitorAutoDetect.java:441)
08-07 13:34:21.023 11697 11744 W System.err:    at org.webrtc.NetworkMonitor.setAutoDetectConnectivityStateInternal(NetworkMonitor.java:139)
08-07 13:34:21.023 11697 11744 W System.err:    at org.webrtc.NetworkMonitor.startMonitoring(NetworkMonitor.java:108)
08-07 13:34:21.023 11697 11744 E rtc     :
08-07 13:34:21.023 11697 11744 E rtc     :
08-07 13:34:21.023 11697 11744 E rtc     : #
08-07 13:34:21.023 11697 11744 E rtc     : # Fatal error in ../../webrtc/api/java/jni/androidnetworkmonitor_jni.cc, line 195
08-07 13:34:21.023 11697 11744 E rtc     : # last system error: 88
08-07 13:34:21.023 11697 11744 E rtc     : # Check failed: !jni()->ExceptionCheck()
08-07 13:34:21.023 11697 11744 E rtc     : # Error during CallVoidMethod
08-07 13:34:21.023 11697 11744 E rtc     : #

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
haocsecommented, Sep 23, 2016

@txthinking Add this permission line: <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

3reactions
davidperrenoudcommented, Sep 23, 2016

@haovn577 Try something like this in getUserMedia:

audio: true,
video: {
  facingMode: isFront ? 'user' : 'environment',
  optional: [],
  mandatory: { minWidth: 800, minHeight: 600 },
  width: { min: 800, ideal: 1280 },
  height: { min: 600, ideal: 1024 }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Fix an Android device that's restarting or crashing - Google Help
Randomly reboots or restarts; Shuts down without restarting; Restarts constantly: Go to the Advanced troubleshooting section. Troubleshoot your phone. Check for ...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
1. The “Force stop” method · 2. Restart your Android device · 3. Keep your phone updated · 4. Clear your cached data...
Read more >
What to Do If Apps Keep Crashing on an Android Device
If an app freezes or crashes repeatedly when you try to use it, the first thing you should try is to force it...
Read more >
Game crashes/freezes/slow (Android) - Awem Help Center
Game crashes/freezes/slow (Android) · 1 - Swipe away all your apps running in the multitasking bar. · 2 - Restart your device. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found