video-quickstart-android: crashing, libtwilio_video_android_so.so

Hi, Not sure what is the proper channel to report this, but we’ve been seeing these random crashes for a while. There’s not much of a stacktrace to go on, and I haven’t personally been able to see this crash, but it’s happening to our users.

Thread 0 Crashed:
0   libc.so                         0x6fe3f91f24        abort
1   libc.so                         0x6fe3ffaae4        pthread_once
2   libc.so                         0x6fe3ff9f80        <unknown> + 480566550400
3   libc.so                         0x6fe3ff9e34        pthread_mutex_lock
4   libtwilio_video_android_so.so   0x63d5b3eb94        <unknown> + 428787100564

Moreover we’ve only started seeing this after upgrading from com.twilio:video-android:5.2.0 to com.twilio:video-android:6.2.1

Thanks, Jia

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Closing due to age and lack of response

I have also seen similar crashes. For the most part, I have seen them occurring as we are trying to end a call, but I think they may occur at other times as well. com.twilio:sync-android:0.8.6 com.twilio:video-android:5.8.1

2021-06-17 10:24:39.438 6287-6690/<redacted> A/libc: FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xc603170c)
2021-06-17 10:24:39.526 6287-6690/<redacted> A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6690 (CameraBackgroun), pid 6287 (<redacted>)
2021-06-17 10:24:39.578 6712-6712/? E/crash_dump32: failed to interrupt 6475 to detach: No such process
2021-06-17 10:24:39.578 6712-6712/? E/crash_dump32: failed to interrupt 6476 to detach: No such process
2021-06-17 10:24:39.578 6712-6712/? E/crash_dump32: failed to interrupt 6477 to detach: No such process
2021-06-17 10:24:39.578 6712-6712/? E/crash_dump32: failed to interrupt 6479 to detach: No such process
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.190920.001/5891938:user/release-keys'
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: Revision: '0'
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: ABI: 'x86'
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: Timestamp: 2021-06-17 10:24:39-0500
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: pid: 6287, tid: 6690, name: CameraBackgroun  >>> <redacted> <<<
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: uid: 10145
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG: Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xc603170c)'
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG:     eax 00000000  ebx 0000188f  ecx 00001a22  edx 00000006
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG:     edi f420533e  esi ba5e6750
2021-06-17 10:24:39.615 6712-6712/? A/DEBUG:     ebp f731dad0  esp ba5e66f8  eip f731dad9
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG: backtrace:
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #00 pc 00000ad9  [vdso] (__kernel_vsyscall+9)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #01 pc 00092328  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #02 pc 000ad651  /apex/com.android.runtime/lib/bionic/libc.so (abort+193) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #03 pc 0011c44a  /apex/com.android.runtime/lib/bionic/libc.so (__fortify_fatal(char const*, ...)+58) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #04 pc 0011b96a  /apex/com.android.runtime/lib/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+58) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #05 pc 0011b812  /apex/com.android.runtime/lib/bionic/libc.so (pthread_mutex_lock+258) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #06 pc 00559d2a  /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/lib/x86/libtwilio_video_android_so.so (BuildId: f5f14e972b7f03b60b6a5e6cb6ed29a3b89a6255)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #07 pc 00189d99  /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/lib/x86/libtwilio_video_android_so.so (BuildId: f5f14e972b7f03b60b6a5e6cb6ed29a3b89a6255)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #08 pc 0018b830  /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/lib/x86/libtwilio_video_android_so.so (Java_com_twilio_video_VideoCapturerDelegate_00024NativeObserver_nativeOnByteBufferFrameCaptured+96) (BuildId: f5f14e972b7f03b60b6a5e6cb6ed29a3b89a6255)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #09 pc 00144f67  /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+71) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #10 pc 0013e7d2  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #11 pc 00149a69  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+281) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #12 pc 00332502  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #13 pc 0032d3df  /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+719) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #14 pc 00687e3d  /apex/com.android.runtime/lib/libart.so (MterpInvokeDirectRange+525) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #15 pc 00138c21  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct_range+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #16 pc 00441e1e  [anon:dalvik-classes.dex extracted in memory from /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/base.apk] (com.twilio.video.VideoCapturerDelegate$NativeObserver.onByteBufferFrameCaptured+26)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #17 pc 006873b9  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterfaceRange+1641) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #18 pc 00138d21  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface_range+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #19 pc 004420ac  [anon:dalvik-classes.dex extracted in memory from /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/base.apk] (com.twilio.video.VideoCapturerListenerAdapter.onFrameCaptured+64)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #20 pc 006837bc  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #21 pc 00138a21  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #22 pc 0001bdea  [anon:dalvik-classes30.dex extracted in memory from /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/base.apk!classes30.dex] (<redacted>.sdk.internal.util.<redacted>TwilioVideoCapturer.handleImageBuffer+54)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #23 pc 00681adc  /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #24 pc 00138821  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #25 pc 0001db02  [anon:dalvik-classes34.dex extracted in memory from /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/base.apk!classes34.dex] (<redacted>.sdk.internal.remote<redacted>.twilio.TwilioVideoCapturerWrapper.handleImageBuffer+42)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #26 pc 006837bc  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #27 pc 00138a21  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #28 pc 00012d94  [anon:dalvik-classes33.dex extracted in memory from /data/app/<redacted>-3gBq6DjwduxXIr3ljCwy7w==/base.apk!classes33.dex] (<redacted>.sdk.internal.ui.Camera2Fragment$onVideoFrameAvailableListener$1.onImageAvailable+416)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #29 pc 006837bc  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.786 6712-6712/? A/DEBUG:       #30 pc 00138a21  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #31 pc 001c0740  /system/framework/framework.jar (android.media.ImageReader$ListenerHandler.handleMessage+72)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #32 pc 002f8e0a  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12194892193087984976+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #33 pc 002ffcc5  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #34 pc 0066fbd9  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #35 pc 0014503d  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #36 pc 020dd155  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+149)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #37 pc 0202ed91  /memfd:/jit-cache (deleted) (android.os.Looper.loop+1553)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #38 pc 0013e9a2  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.787 6712-6712/? A/DEBUG:       #39 pc 00149a7a  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #40 pc 00332502  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #41 pc 0032c19c  /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+988) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #42 pc 00684d03  /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+643) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #43 pc 001389a1  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #44 pc 002f4ea0  /system/framework/framework.jar (android.os.HandlerThread.run+56)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #45 pc 002f8e0a  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12194892193087984976+298) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #46 pc 002ffcc5  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #47 pc 0066fbd9  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #48 pc 0014503d  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #49 pc 0013e7d2  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #50 pc 00149a69  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+281) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #51 pc 0055a513  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+99) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #52 pc 0055b91a  /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+474) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #53 pc 005aaa51  /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+1585) (BuildId: 895645e5113da057f27d9b2ec11eb3bf)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #54 pc 0011a8e5  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+53) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
2021-06-17 10:24:39.788 6712-6712/? A/DEBUG:       #55 pc 000af6a7  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 76290498408016ad14f4b98c3ab6c65c)