Имейте требование, которое во время активного вызова, если кто-то делает скриншоты, должно установить sh новые потоки и обменять их. Для этого
Я создаю новое предложение из однорангового соединения, которое генерирует новый SDP
- Этот SDP отправляется на сервер, а SDP ответа задается как remoteDescrption .
, но вылетает.
Примечание: библиотека libjingle используется для webrt c
2020-03-11 11:46:00.831 12476-12606/org.kp.consumer.android.ivvsample A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 12606 (signaling_threa), pid 12476 (droid.ivvsample)
2020-03-11 11:46:01.140 12723-12723/? I/crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2020-03-11 11:46:01.155 1782-1782/? I//system/bin/tombstoned: received crash request for pid 12606
2020-03-11 11:46:01.168 12723-12723/? I/crash_dump32: performing dump of process 12476 (target tid = 12606)
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:9/PSR1.180720.117/5875966:userdebug/dev-keys'
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: Revision: '0'
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: ABI: 'x86'
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: pid: 12476, tid: 12606, name: signaling_threa >>> org.kp.consumer.android.ivvsample <<<
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: Cause: null pointer dereference
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: eax 00000000 ebx c6f5ecb0 ecx 00000000 edx 00000015
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: edi c66d6724 esi 00000001
2020-03-11 11:46:01.178 12723-12723/? A/DEBUG: ebp c66d6724 esp c66d6690 eip c6835efb
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: backtrace:
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #00 pc 0005fefb /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #01 pc 000574f8 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #02 pc 0005c171 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #03 pc 00053cf5 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #04 pc 000556ba /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #05 pc 000574f8 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #06 pc 00058b8f /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #07 pc 0003599b /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so (Java_org_webrtc_MediaStream_nativeRemoveAudioTrack+17)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #08 pc 005f6a17 /system/lib/libart.so (art_quick_generic_jni_trampoline+71)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #09 pc 005f0bd2 /system/lib/libart.so (art_quick_invoke_static_stub+418)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #10 pc 000a2f5f /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+239)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #11 pc 0029bb22 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+338)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #12 pc 00293cc8 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1048)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #13 pc 005bdb1f /system/lib/libart.so (MterpInvokeStatic+207)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #14 pc 005e2d21 /system/lib/libart.so (ExecuteMterpImpl+14625)
2020-03-11 11:46:01.288 12723-12723/? A/DEBUG: #15 pc 000b84b4 /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/base.apk!classes3.dex (deleted) (org.webrtc.MediaStream.removeTrack+8)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #16 pc 00266096 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.3007865774+598)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #17 pc 0026c61c /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+220)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #18 pc 00293cab /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1019)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #19 pc 005bc353 /system/lib/libart.so (MterpInvokeVirtual+691)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #20 pc 005e2ba1 /system/lib/libart.so (ExecuteMterpImpl+14241)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #21 pc 000b862c /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/base.apk!classes3.dex (deleted) (org.webrtc.MediaStream.dispose+32)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #22 pc 00266096 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.3007865774+598)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #23 pc 0026c50e /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #24 pc 005a93fd /system/lib/libart.so (artQuickToInterpreterBridge+1277)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #25 pc 005f6aed /system/lib/libart.so (art_quick_to_interpreter_bridge+77)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #26 pc 005f0a02 /system/lib/libart.so (art_quick_invoke_stub+338)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #27 pc 000a2f4e /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+222)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #28 pc 004d3209 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+89)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #29 pc 004d47f7 /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, char*)+471)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #30 pc 003814ff /system/lib/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, char*)+959)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #31 pc 000d8c0c /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, char*, art::Primitive::Type, art::InvokeType)+1612)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #32 pc 000c4a99 /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, char*)+73)
2020-03-11 11:46:01.289 12723-12723/? A/DEBUG: #33 pc 000344a1 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #34 pc 0003e872 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #35 pc 0003ecd9 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #36 pc 0005db63 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #37 pc 0006455b /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #38 pc 0006578f /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #39 pc 00056a9b /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #40 pc 000a13da /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #41 pc 000b3dae /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #42 pc 000b3dec /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #43 pc 000b43d8 /data/app/org.kp.consumer.android.ivvsample-dHA5bgn7ydXmBQUGhPtnUQ==/lib/x86/libjingle_peerconnection_so.so
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #44 pc 0008f065 /system/lib/libc.so (__pthread_start(void*)+53)
2020-03-11 11:46:01.290 12723-12723/? A/DEBUG: #45 pc 0002485b /system/lib/libc.so (__start_thread+75)