WebRTC android crash at SIGABRT

304 views
Skip to first unread message

Indu Girish

unread,
Feb 7, 2018, 4:11:28 AM2/7/18
to discuss-webrtc
Hi,

We are working on an android app to stream audio and video to WebRTC end-point. 

We use Webrtc release branch 63. 

Occasionally we get some error and the app crashes at SIGABRT.

Is it possible to show the error message and prevent triggering SIGABRT so that the app will be saved from a crash?

error # 1: Happens when WebRTC streaming started.
    
    # Fatal error in ../../sdk/android/src/jni/pc/androidnetworkmonitor_jni.cc, line 201
# last system error: 0
# Check failed: !jni()->ExceptionCheck()
# Error during CallVoidMethod

error # 2: Happens when WebRTC streaming stopped.

    # Fatal error in ../../sdk/android/src/jni/pc/androidnetworkmonitor_jni.cc, line 220
    # last system error: 0
    # Check failed: !jni()->ExceptionCheck()
    # Error during NetworkMonitor.stopMonitoring

error # 3: Happens mostly under bad network conditions.
    # Fatal error in ../../rtc_base/physicalsocketserver.cc, line 913
    # last system error: 32
    # Check failed: 1 == res (1 vs. -1)
    
Thanks,
Indu

Taylor Brandstetter

unread,
Feb 7, 2018, 2:00:39 PM2/7/18
to discuss-webrtc
Errors #1 and #2 indicate that a Java exception was thrown by a method called by C++ code. Is information about this exception printed out elsewhere in the log?

Error #3 I'm not sure about, but do you see a "pipe failed" error message in the log? That could explain it.

Anyway, to answer your question about how to save the app from a crash: #1 and #2 could be avoided by catching the exception (in the appropriate methods in NetworkMonitor.java). And #3 is a "DCHECK," meaning it's only triggered in debug builds.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/3b74baac-7bd1-41c3-a460-d690800727f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Indu Girish

unread,
Feb 8, 2018, 8:47:38 AM2/8/18
to discuss-webrtc
Hi Taylor,

Thanks for your prompt response.

Error #2 was due to a missing unregisterReceiver().

As you have mentioned, error #3 occurred only in debug build of WebRTC, not in release build.

Thanks,
Indu
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages