Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recroding sound for too long crashes the app #480

Open
skull591 opened this issue Aug 7, 2019 · 4 comments
Open

Recroding sound for too long crashes the app #480

skull591 opened this issue Aug 7, 2019 · 4 comments

Comments

@skull591
Copy link

skull591 commented Aug 7, 2019

Hi,

When I created a card, I tried to record a long audio file to explain a question. It was about three minutes long. After I clicked stop and proceeded, the app crashed and the audio file was lost.

Device: Meizu MX3
App version: 10.11.3

@skull591
Copy link
Author

skull591 commented Aug 7, 2019

some stacktrace here if it helps...

p.s., I encountered the same crash on a Nexus 5 phone.

08-07 10:14:41.492 1175-1175/? I/DEBUG: Build fingerprint: 'generic_x86_64/sdk_google_phone_x86_64/generic_x86_64:5.0.2/LSY66K/5523115:eng/test-keys'
08-07 10:14:41.492 1175-1175/? I/DEBUG: Revision: '0'
08-07 10:14:41.492 1175-1175/? I/DEBUG: ABI: 'x86_64'
08-07 10:14:41.492 1175-1175/? I/DEBUG: pid: 3626, tid: 3642, name: Binder_1 >>> org.liberty.android.fantastischmemo <<<
08-07 10:14:41.492 1175-1175/? I/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xdead4321
08-07 10:14:41.494 1175-1175/? I/DEBUG: rax 0000000000000004 rbx 0000000000000004 rcx 00007fd9dba014b8 rdx 0000000000000001
08-07 10:14:41.494 1175-1175/? I/DEBUG: rsi 0000000000001916 rdi 000000006f0f3240
08-07 10:14:41.495 1175-1175/? I/DEBUG: r8 0000000000000000 r9 00000000701ebfc8 r10 00000000701ebfc8 r11 00007fd9dba016d8
08-07 10:14:41.495 1175-1175/? I/DEBUG: r12 00000000dead4321 r13 0000000000000000 r14 00000000707206a0 r15 000000006f0f3240
08-07 10:14:41.495 1175-1175/? I/DEBUG: cs 0000000000000033 ss 000000000000002b
08-07 10:14:41.495 1175-1175/? I/DEBUG: rip 00007fd9ebae507c rbp 00007fd9db80a800 rsp 00007fd9dba01360 eflags 0000000000010206
08-07 10:14:41.495 1175-1175/? I/DEBUG: backtrace:
08-07 10:14:41.495 1175-1175/? I/DEBUG: #00 pc 00000000000b507c /system/lib64/libart.so (art::CheckMethodArguments(art::mirror::ArtMethod*, unsigned int*)+629)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #1 pc 000000000033b0b6 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, __va_list_tag*)+1094)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #2 pc 0000000000273c2d /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, __va_list_tag*)+397)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #3 pc 000000000011b284 /system/lib64/libart.so (art::CheckJNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, __va_list_tag*)+132)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #4 pc 0000000000021ae5 /system/lib64/libmedia_jni.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+133)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #5 pc 000000000003bd54 /system/lib64/libmedia_jni.so (JNIMediaRecorderListener::notify(int, int, int)+68)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #6 pc 00000000000dee01 /system/lib64/libmedia.so (android::MediaRecorder::notify(int, int, int)+145)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #7 pc 00000000000d5efa /system/lib64/libmedia.so (android::BnMediaRecorderClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+90)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #8 pc 0000000000036b44 /system/lib64/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+116)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #9 pc 000000000003fea7 /system/lib64/libbinder.so (android::IPCThreadState::executeCommand(int)+871)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #10 pc 00000000000400f1 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+65)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #11 pc 0000000000040169 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+89)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #12 pc 0000000000047826 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+22)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #13 pc 0000000000018eb8 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+376)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #14 pc 00000000000a6264 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+84)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #15 pc 000000000002731e /system/lib64/libc.so (__pthread_start(void*)+46)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #16 pc 000000000002339b /system/lib64/libc.so (__start_thread+11)
08-07 10:14:41.495 1175-1175/? I/DEBUG: #17 pc 0000000000019885 /system/lib64/libc.so (__bionic_clone+53)

@helloworld1
Copy link
Owner

I tried recording for about 3 minutes on a Huawei phone. It seems working fine. Did you phone sleep when the recording is in progress? Probably AnyMemo should prevent phone from sleep when recording.

@skull591
Copy link
Author

skull591 commented Aug 7, 2019

Indeed it did. I tried to prevent it from sleeping manually and it works...

@helloworld1
Copy link
Owner

Great! I will add a wakelock when recording so the phone will not go to sleep causing data corruption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants