videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
107 stars 14 forks source link

Intermittent crash when ending recording with audio #101

Closed olokobayusuf closed 5 months ago

olokobayusuf commented 9 months ago
F .natml.videokit: runtime.cc:699] JNI DETECTED ERROR IN APPLICATION: JNI ERROR (app bug): jobject is an invalid global reference: 0x499a (deleted reference at index 588 in a table of size 587)
F .natml.videokit: runtime.cc:699]     in call to CallIntMethodV
E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E CRASH   : Version '2022.3.10f1 (ff3792e53c62)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
E CRASH   : Build fingerprint: 'samsung/o1quew/o1q:14/UP1A.231005.007/G991U1UEU9FWL3:user/release-keys'
E CRASH   : Revision: '14'
E CRASH   : ABI: 'arm64'
E CRASH   : Timestamp: 2024-02-12 13:40:09.055583527-0500
E CRASH   : pid: 25135, tid: 25529, name: Thread-8  >>> app.natml.videokit <<<
E CRASH   : uid: 10430
E CRASH   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
E CRASH   :     x0  0000000000000000  x1  00000000000063b9  x2  0000000000000006  x3  00000073e0d7f6f0
E CRASH   :     x4  0000000000000000  x5  0000000000000000  x6  0000000000000000  x7  7f7f7f7f7f7f7f7f
E CRASH   :     x8  00000000000000f0  x9  00000078c4cab278  x10 0000000000000001  x11 00000078c4cf3a48
E CRASH   :     x12 000000000000f341  x13 0000000000000000  x14 00000073e0d7e4f0  x15 0000000034155555
E CRASH   :     x16 00000078c4d5cd18  x17 00000078c4d37560  x18 00000073cb3a4000  x19 000000000000622f
E CRASH   :     x20 00000000000063b9  x21 00000000ffffffff  x22 0000000000000000  x23 0000000000000000
E CRASH   :     x24 00000075a48bfa3a  x25 0000000000000001  x26 0000000000000000  x27 0000000000000000
E CRASH   :     x28 00000075a5416000  x29 00000073e0d7f770
E CRASH   :     lr  00000078c4ce4744  sp  00000073e0d7f6d0  pc  00000078c4ce4770  pst 0000000000001000
E CRASH   : backtrace:
E CRASH   :       #00 pc 000000000005b770  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 544bc6c8e3556e98efbc4406b97f6a3e)
E CRASH   :       #01 pc 000000000079120c  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1380) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #02 pc 00000000000357d0  /apex/com.google.mainline.primary.libs@340737000/lib64/libbase.so/5cbcb48dc4a1ceb71422e6e07e9f12bb952b969b1d4789234c07c3b6241482a6f3a09733800aa23496f3dcd787dd1ded12735fe6dc5b3049d050d96b769bc049/libbase.so (BuildId: 9facd15119941cde449a7a03cf8ba918)
E CRASH   :       #03 pc 0000000000034d58  /apex/com.google.mainline.primary.libs@340737000/lib64/libbase.so/5cbcb48dc4a1ceb71422e6e07e9f12bb952b969b1d4789234c07c3b6241482a6f3a09733800aa23496f3dcd787dd1ded12735fe6dc5b3049d050d96b769bc049/libbase.so (android::base::LogMessage::~LogMessage()+352) (BuildId: 9facd15119941cde449a7a03cf8ba918)
E CRASH   :       #04 pc 00000000003f0904  /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+3460) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #05 pc 000000000023acfc  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...) (.__uniq.99033978352804627313491551960229047428)+188) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #06 pc 0000000000238f74  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*) (.__uniq.99033978352804627313491551960229047428)+1804) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #07 pc 000000000040ea4c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CheckCallArgs(art::ScopedObjectAccess&, art::(anonymous namespace)::ScopedCheck&, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, art::InvokeType, art::(anonymous namespace)::VarArgs const*) (.__uniq.99033978352804627313491551960229047428)+76) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #08 pc 000000000040d968  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType) (.__uniq.99033978352804627313491551960229047428)+232) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #09 pc 0000000000680e6c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallIntMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) (.__uniq.99033978352804627313491551960229047428.llvm.14769753146406819462)+72) (BuildId: 5252e4c81acd91f2620b389dd7543d90)
E CRASH   :       #10 pc 000000000010fa10  /data/app/~~NGQzaPUtO-D4dmbG_Lq1YQ==/app.natml.videokit-3c6LQHquDWOnd8EuZEU0EQ==/lib/arm64/libVideoKit.so (_JNIEnv::CallIntMethod(_jobject*, _jmethodID*, ...)+116) (BuildId: c0535b70d5c92ed97591633c3de3c7ce47d37174)
E CRASH   :       #11 pc 000000000013ef90  /data/app/~~NGQzaPUtO-D4dmbG_Lq1YQ==/app.natml.videokit-3c6LQHquDWOnd8EuZEU0EQ==/lib/arm64/libVideoKit.so (int NatML::Android::JNIHelper::Call<AJMediaCodec*, _jobject*, long>(int*, AJMediaCodec*, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, _jobject* const, long const) const+264) (BuildId: c0535b70d5c92ed97591633c3de3c7ce47d37174)
E CRASH   :       #12 pc 000000000013d990  /data/app/~~NGQzaPUtO-D4dmbG_Lq1YQ==/app.natml.videokit-3c6LQHquDWOnd8EuZEU0EQ==/lib/arm64/libVideoKit.so (AJMediaCodec_dequeueOutputBuffer(AJMediaCodec*, AMediaCodecBufferInfo*, long)+220) (BuildId: c0535b70d5c92ed97591633c3de3c7ce47d37174)
E CRASH   :       #13 pc 000000000013d6fc  /data/app/~~NGQzaPUtO-D4dmbG_Lq1YQ==/app.natml.videokit-3c6LQHquDWOnd8EuZEU0EQ==/lib/arm64/libVideoKit.so (VideoKit::Recorders::HardwareRecorder::FlushAudioCodec()+176) (BuildId: c0535b70d5c92ed97591633c3de3c7ce47d37174)
E CRASH   :       #14 pc 0000000000140e28  /data/app/~~NGQzaPUtO-D4dmbG_Lq1YQ==/app.natml.videokit-3c6LQHquDWOnd8EuZEU0EQ==/lib/arm64/libVideoKit.so (BuildId: c0535b70d5c92ed97591633c3de3c7ce47d37174)
E CRASH   :       #15 pc 00000000000c37f4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 544bc6c8e3556e98efbc4406b97f6a3e)
E CRASH   :       #16 pc 000000000005d0c4  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 544bc6c8e3556e98efbc4406b97f6a3e)
olokobayusuf commented 5 months ago

Not reproducible in 0.0.18. Closing for now.