Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Getting native error while using getMediaInformationAsync #72

@ridanasif

Description

@ridanasif

Description
So I am trying to get duration of a video using FfprobeKit.getMediaInformationAsync but it crashes and throws a native error. This does not happen everytime but occasionally.

Expected behavior
Do not crash while executing the method.

Current behavior
It threw a stacktrace as follow:

2021-06-14 15:01:09.673 32261-32261/? A/DEBUG: Abort message: 'FORTIFY: pthread_mutex_destroy called on a destroyed mutex (0xddad30dc)'
2021-06-14 15:01:09.673 32261-32261/? A/DEBUG:     r0  00000000  r1  000079c3  r2  00000006  r3  b9645e38
2021-06-14 15:01:09.673 32261-32261/? A/DEBUG:     r4  b9645e4c  r5  b9645e30  r6  0000775b  r7  0000016b
2021-06-14 15:01:09.673 32261-32261/? A/DEBUG:     r8  b9645e48  r9  b9645e38  r10 b9645e68  r11 b9645e58
2021-06-14 15:01:09.673 32261-32261/? A/DEBUG:     ip  000079c3  sp  b9645e08  lr  eba413b7  pc  eba413ca
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG: backtrace:
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #00 pc 000603ca  /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #01 pc 000a8733  /apex/com.android.runtime/lib/bionic/libc.so (__fortify_fatal(char const*, ...)+26) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #02 pc 000a7fa1  /apex/com.android.runtime/lib/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+20) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #03 pc 000a8613  /apex/com.android.runtime/lib/bionic/libc.so (pthread_mutex_destroy+126) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #04 pc 0001d1bc  /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/lib/arm/libffmpegkit_armv7a_neon.so (exit_program+32) (BuildId: 43377049c71d4e3e11d450008aade174afc18192)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #05 pc 00027f60  /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/lib/arm/libffmpegkit_armv7a_neon.so (ffmpeg_execute+11848) (BuildId: 43377049c71d4e3e11d450008aade174afc18192)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #06 pc 0001b804  /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/lib/arm/libffmpegkit_armv7a_neon.so (Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFmpegExecute+396) (BuildId: 43377049c71d4e3e11d450008aade174afc18192)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #07 pc 000dc519  /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+40) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #08 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #09 pc 0042e99b  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #10 pc 000dffcb  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+194) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #11 pc 00210a21  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.121 32261-32261/? A/DEBUG:       #12 pc 0020c363  /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*)+774) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #13 pc 004260b7  /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+310) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #14 pc 000d2994  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #15 pc 0032ecd8  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/base.apk] (com.arthenica.ffmpegkit.FFmpegKitConfig.ffmpegExecute+28)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #16 pc 0042630f  /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+910) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #17 pc 000d2994  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #18 pc 0032f70a  [anon:dalvik-classes.dex extracted in memory from /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/base.apk] (com.arthenica.ffmpegkit.FFmpegKit.execute+10)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #19 pc 0042630f  /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+910) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #20 pc 000d2994  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #21 pc 000ac0e0  [anon:dalvik-classes2.dex extracted in memory from /data/app/com.example.app-rCYcYQt1EVApEpNBkca1CA==/base.apk!classes2.dex] (com.example.app.MainActivity$12$4.run+4)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #22 pc 00425249  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1432) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #23 pc 000d2a14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #24 pc 001e71ec  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.Executors$RunnableAdapter.call+4)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #25 pc 00425249  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1432) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #26 pc 000d2a14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #27 pc 001ed22e  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.FutureTask.run+62)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #28 pc 0042487b  /apex/com.android.runtime/lib/libart.so (MterpInvokeSuper+1858) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #29 pc 000d2894  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_super+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.122 32261-32261/? A/DEBUG:       #30 pc 001f3c02  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run+38)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #31 pc 001ec29d  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16069265346693335438+192) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #32 pc 001f0a81  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #33 pc 004183f9  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #34 pc 000dc5a1  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #35 pc 020277d1  /memfd:/jit-cache (deleted) (androidx.recyclerview.widget.GridLayoutManager.layoutChunk+336)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #36 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #37 pc 0042e887  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #38 pc 000dffb7  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #39 pc 00210a21  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #40 pc 0020c363  /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*)+774) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #41 pc 00423b59  /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+556) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #42 pc 000d2814  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #43 pc 001f7024  /apex/com.android.runtime/javalib/core-oj.jar (java.util.concurrent.ThreadPoolExecutor$Worker.run+4)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #44 pc 00425249  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1432) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #45 pc 000d2a14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #46 pc 000ea9e4  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #47 pc 001ec29d  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.16069265346693335438+192) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #48 pc 001f0a81  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #49 pc 004183f9  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.123 32261-32261/? A/DEBUG:       #50 pc 000dc5a1  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #51 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #52 pc 0042e887  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #53 pc 000dffb7  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #54 pc 003703ef  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #55 pc 003710e1  /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+304) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #56 pc 003a2027  /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+978) (BuildId: e3c54c59d35edea6d7d5b8c6f9eaf378)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #57 pc 000a75b3  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)
2021-06-14 15:01:10.124 32261-32261/? A/DEBUG:       #58 pc 00061b33  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 320fbdc2a1289fadd7dacae7f2eb77a3)

Environment

  • Platform: Android
  • Source branch : v4.4
  • Android Studio version : 4.0
  • Device: Samsung A30s
  • Android Version: 10

Metadata

Metadata

Assignees

Labels

androidAffect Android platformappleAffect Apple platformsbugSomething isn't workingfixed-in-v4.5Fixed in release v4.5libraryAffects the libraryv4.4Affects v4.4 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions