OpenVidu / openvidu-tutorials

OpenVidu tutorials to get started
http://openvidu.io/tutorials
Apache License 2.0
228 stars 255 forks source link

When remote service is started on Android 7.0 platform, webrtc will crash #152

Closed rxdff closed 3 years ago

rxdff commented 3 years ago

In Android platform, system version 7.0, a remoteservice is opened, and webrtc is opened in this service process, but webrtc crashes. The log is as follows:

2021-05-10 20:41:16.312 9184-9222/com.xc.robot.rtc E/rtc: #

Fatal error in: gen/sdk/android/generated_metrics_jni/../../../../../../../../usr/local/google/home/sakal/code/webrtc-aar-release/src/sdk/android/src/jni/jni_generator_helper.h, line 94

# last system error: 0
# Check failed: !env->ExceptionCheck()
# 

2021-05-10 20:41:16.312 9184-9222/com.xc.robot.rtc A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 9222 (signaling_threa) 2021-05-10 20:41:16.337 9273-9273/? A/DEBUG: 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: Build fingerprint: 'Android/rk3399_all/rk3399_all:7.1.2/NHG47K/ruilia01201527:userdebug/test-keys' 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: Revision: '0' 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: ABI: 'arm' 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: pid: 9184, tid: 9222, name: signaling_threa >>> com.xc.robot.rtc <<< 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: r0 00000000 r1 00002406 r2 00000006 r3 00000008 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: r4 ca401978 r5 00000006 r6 ca401920 r7 0000010c 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: r8 ca4017ac r9 ca4018a0 sl 00000000 fp ca4018ac 2021-05-10 20:41:16.338 9273-9273/? A/DEBUG: ip 00000000 sp ca401738 lr e6dcb607 pc e6dcde64 cpsr 200f0010 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: backtrace: 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #00 pc 00049e64 /system/lib/libc.so (tgkill+12) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #01 pc 00047603 /system/lib/libc.so (pthread_kill+34) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #02 pc 0001d8a5 /system/lib/libc.so (raise+10) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #03 pc 000193f1 /system/lib/libc.so (libc_android_abort+34) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #04 pc 00017034 /system/lib/libc.so (abort+4) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #05 pc 00128569 /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #06 pc 001145e7 /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #07 pc 002ef7db /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #08 pc 003e7a21 /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #09 pc 0011963f /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #10 pc 001250a1 /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #11 pc 00124fcd /data/app/com.xc.robot-2/lib/arm/libjingle_peerconnection_so.so 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #12 pc 000470d3 /system/lib/libc.so (_ZL15__pthread_startPv+22) 2021-05-10 20:41:16.344 9273-9273/? A/DEBUG: #13 pc 00019e3d /system/lib/libc.so (start_thread+6)

micaelgallego commented 3 years ago

Have you tested with Android versions lower than Android 7? Tutorials are only failing with Android 7 and other versions are working as expected?

rxdff commented 3 years ago

Have you tested with Android versions lower than Android 7? Tutorials are only failing with Android 7 and other versions are working as expected?

Other versions doesn't work. Can you provide a demo of webrtc running in remote service?

CSantosM commented 3 years ago

Hi @rxdff it looks like a native WebRTC library issue. OpenVidu has not anything to do with. Our tutorial tests are okay. Have you checked other devices ?

What did you mean with running in remote service ??

rxdff commented 3 years ago

Hi @rxdff it looks like a native WebRTC library issue. OpenVidu has not anything to do with. Our tutorial tests are okay. Have you checked other devices ?

What did you mean with running in remote service ??

Remote service, which is a service running in another independent process, is also called remote messenger service. There is a detailed explanation: https://developer.android.google.cn/reference/android/app/Service?hl=en

CSantosM commented 3 years ago

If webRTC library crash in your use case, this issue is out of OpenVidu context. Nothing to do with OpenVidu RPC protocol