Hello fellow developers,
I'm currently experiencing an issue with audio recording in our Unity-based ML2 application. I'm reaching out to the community in hopes of finding a resolution or getting guidance on how to proceed.
Environment Details:
- Unity Editor version: 2022-2.0f1
- ML2 OS version: 1.3.0-dev2
- MLSDK version: 1.7.0
- Host OS: Windows 11
Issue:
While attempting to record audio, the application crashes. The stack trace seems to point towards the native audio recording APIs, specifically involving calls into libaudio
.
Error Logs:
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime Process: com.concepthealth.arconsult, PID: 12116
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime Version '2022.2.0f1 (35dcd44975df)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'x86_64'
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime Build fingerprint: 'ml/demophon_aosp/demophon:10/B3E.230526.01-R.026/29:user/release-keys'
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime Revision: '0'
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime ABI: 'x86_64'
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime Timestamp: 2023-10-26 18:16:49.117038419+0000
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime pid: 12116, tid: 12139, name: Binder:12116_4 >>> com.concepthealth.arconsult <<<
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime uid: 10127
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime rax 0000000000000000 rbx 0000000000002f54 rcx 0000715b018233f8 rdx 0000000000000006
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime r8 0000715a23a75260 r9 0000000000000000 r10 0000715a23a75220 r11 0000000000000246
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime r12 0000715a23a75470 r13 0000003000000008 r14 0000715a23a752b8 r15 0000000000002f6b
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime rdi 0000000000002f54 rsi 0000000000002f6b
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime rbp 0000715a23a75330 rsp 0000715a23a75218 rip 0000715b018233f8
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime backtrace:
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime #00 pc 00000000000983f8 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: d7be87af08c63b7517a994aa40288e45)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime #01 pc 000000000009b042 /apex/com.android.runtime/lib64/bionic/libc.so (abort+178) (BuildId: d7be87af08c63b7517a994aa40288e45)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libunity.backtrace(void**, int)(backtrace:36)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libunity.NativeRuntimeException::SignalHandler(int, siginfo*, void*)(SignalHandler:210)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libc.__restore_rt(__restore_rt:0)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libc.syscall(syscall:24)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libc.abort(abort:179)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad82bc(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad84c7(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad8363(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad7a66(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad79ed(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1a4319e(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x1a48b3e(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x29edad6(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x29ee4cc(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x29edfe3(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libil2cpp.0x196010c(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libaudio.0x240dc(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libaudio.0x49c91(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libbinder.android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)(transact:95)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::executeCommand(int)(executeCommand:1112)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::getAndExecuteCommand()(getAndExecuteCommand:158)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::joinThreadPool(bool)(joinThreadPool:46)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libbinder.0x8d148(Native Method)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libutils.android::Thread::_threadLoop(void*)(_threadLoop:346)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libandroid_runtime.android::AndroidRuntime::javaThreadShell(void*)(javaThreadShell:132)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libc.__pthread_start(void*)(__pthread_start:31)
2023/10/26 18:16:49.372 12116 12138 Error AndroidRuntime at libc.__start_thread(__start_thread:56)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime ro.java.core is set, making core file..
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime java.lang.Error: FATAL EXCEPTION [UnityMain]
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Unity version : 2022.2.0f1
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Device model : Magic Leap Magic Leap 2
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Device fingerprint: ml/demophon_aosp/demophon:10/B3E.230526.01-R.026/29:user/release-keys
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime CPU supported ABI : [x86_64, x86]
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Build Type : Development
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Scripting Backend : IL2CPP
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Libs loaded from : lib/x86_64
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Strip Engine Code : true
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Version '2022.2.0f1 (35dcd44975df)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'x86_64'
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Build fingerprint: 'ml/demophon_aosp/demophon:10/B3E.230526.01-R.026/29:user/release-keys'
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Revision: '0'
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime ABI: 'x86_64'
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime Timestamp: 2023-10-26 18:16:49.117038419+0000
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime pid: 12116, tid: 12139, name: Binder:12116_4 >>> com.concepthealth.arconsult <<<
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime uid: 10127
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime rax 0000000000000000 rbx 0000000000002f54 rcx 0000715b018233f8 rdx 0000000000000006
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime r8 0000715a23a75260 r9 0000000000000000 r10 0000715a23a75220 r11 0000000000000246
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime r12 0000715a23a75470 r13 0000003000000008 r14 0000715a23a752b8 r15 0000000000002f6b
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime rdi 0000000000002f54 rsi 0000000000002f6b
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime rbp 0000715a23a75330 rsp 0000715a23a75218 rip 0000715b018233f8
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime backtrace:
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime #00 pc 00000000000983f8 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: d7be87af08c63b7517a994aa40288e45)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime #01 pc 000000000009b042 /apex/com.android.runtime/lib64/bionic/libc.so (abort+178) (BuildId: d7be87af08c63b7517a994aa40288e45)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libunity.backtrace(void**, int)(backtrace:36)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libunity.NativeRuntimeException::SignalHandler(int, siginfo*, void*)(SignalHandler:210)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libc.__restore_rt(__restore_rt:0)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libc.syscall(syscall:24)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libc.abort(abort:179)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad82bc(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad84c7(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad8363(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad7a66(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1ad79ed(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1a4319e(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x1a48b3e(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x29edad6(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x29ee4cc(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x29edfe3(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libil2cpp.0x196010c(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libaudio.0x240dc(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libaudio.0x49c91(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libbinder.android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)(transact:95)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::executeCommand(int)(executeCommand:1112)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::getAndExecuteCommand()(getAndExecuteCommand:158)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libbinder.android::IPCThreadState::joinThreadPool(bool)(joinThreadPool:46)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libbinder.0x8d148(Native Method)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libutils.android::Thread::_threadLoop(void*)(_threadLoop:346)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libandroid_runtime.android::AndroidRuntime::javaThreadShell(void*)(javaThreadShell:132)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libc.__pthread_start(void*)(__pthread_start:31)
2023/10/26 18:16:49.373 12116 12138 Error AndroidRuntime at libc.__start_thread(__start_thread:56)
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of main
2023/10/26 18:17:29.031 12116 12116 Verbose MediaRouter Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
Additional Information:
- Microphone permissions are verified and enabled.
- I've thoroughly reviewed the script and configuration, but I'm unable to identify the source of the issue.
I am posting detailed logs of the app, bug report to this email and my current script for your assistance.
Recording.zip (88.9 KB)
Can you please quickly respond to this email as we are in a bit hurry?
Kind regards,
Muhammad Usman