Android devices, invoking an FMOD EventCallback through EventInstance causes a crash

I am currently using FMOD version 2.02.17 and Unity version 2021.3.14. We are encountering occasional crashes on multiple Android devices. The corresponding log, is as follows:

Time: 10:09:28.514 16395 16395 E AndroidRuntime: FATAL EXCEPTION: main
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Process: com.HL.MS, PID: 16395
Time: 10:09:28.514 16395 16395 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Version '2021.3.14f1c1 (3aa525a93a5f)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Build fingerprint: 'HONOR/PCT-AL10/HWPCT:10/HUAWEIPCT-AL10/10.1.0.162C00:user/release-keys'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Revision: '0'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: ABI: 'arm64'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Timestamp: 2024-Time: 10:09:22+0800
Time: 10:09:28.514 16395 16395 E AndroidRuntime: pid: 16395, tid: 16629, name: FMOD Studio upd  >>> com.HL.MS <<<
Time: 10:09:28.514 16395 16395 E AndroidRuntime: uid: 10394
Time: 10:09:28.514 16395 16395 E AndroidRuntime: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x0  0000000000000000  x1  00000000000040f5  x2  0000000000000006  x3  000000713cff2010
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x4  fefeff6fd1ff7164  x5  fefeff6fd1ff7164  x6  fefeff6fd1ff7164  x7  7f7f7f7fff7f7f7f
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x8  00000000000000f0  x9  0a2c1f0f6cfd1868  x10 0000000000000001  x11 0000000000000000
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x12 fffffff0fffffbdf  x13 0000000066e4f052  x14 00004e9db662c627  x15 00000df085aaa188
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x16 00000071cc8eca08  x17 00000071cc8cc7c0  x18 0000006fc341e000  x19 000000000000400b
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x20 00000000000040f5  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 000000713cff2260
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x24 000000713cff2140  x25 000000713cff2180  x26 0000000000000000  x27 0000000000000007
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x28 0000000000000000  x29 000000713cff20b0
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     sp  000000713cff1ff0  lr  00000071cc881640  pc  00000071cc88166c
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 
Time: 10:09:28.514 16395 16395 E AndroidRuntime: backtrace:
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #00 pc 000000000007066c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #01 pc 0000000000d88848  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (std::set_unexpected(void (*)())) (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #02 pc 0000000000d889b8  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #03 pc 0000000000d85ae4  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #04 pc 0000000000d85110  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (__cxa_get_exception_ptr) (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #05 pc 0000000000d8506c  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #06 pc 0000000000d02f6c  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #07 pc 0000000000c785ac  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #08 pc 0000000002341450  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #09 pc 0000000001ea5e18  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #10 pc 0000000001ea5b28  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #11 pc 0000000000dedd00  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #12 pc 00000000009ab580  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #13 pc 00000000000dd534  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libfmodstudio.so
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libc.abort(abort:160)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.std::set_unexpected(void (*)())(set_unexpected:0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd889b8(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd85ae4(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.__cxa_get_exception_ptr(__cxa_get_exception_ptr:0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd8506c(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd02f6c(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xc785ac(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x2341450(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x1ea5e18(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x1ea5b28(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xdedd00(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x9ab580(Native Method)
Time: 10:09:28.515  1692 17400 I chatty  : uid=1000 system_server expire 1 line
Time: 10:09:28.515 16395 16395 E AndroidRuntime: 	at libfmodstudio.0xdd534(Native Method)

--------------------[after symbolicated]--------------------

Time: 10:09:28.514 16395 16395 E AndroidRuntime: FATAL EXCEPTION: main
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Process: com.HL.MS, PID: 16395
Time: 10:09:28.514 16395 16395 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Version '2021.3.14f1c1 (3aa525a93a5f)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Build fingerprint: 'HONOR/PCT-AL10/HWPCT:10/HUAWEIPCT-AL10/10.1.0.162C00:user/release-keys'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Revision: '0'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: ABI: 'arm64'
Time: 10:09:28.514 16395 16395 E AndroidRuntime: Timestamp: 2024-Time: 10:09:22+0800
Time: 10:09:28.514 16395 16395 E AndroidRuntime: pid: 16395, tid: 16629, name: FMOD Studio upd  >>> com.HL.MS <<<
Time: 10:09:28.514 16395 16395 E AndroidRuntime: uid: 10394
Time: 10:09:28.514 16395 16395 E AndroidRuntime: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x0  0000000000000000  x1  00000000000040f5  x2  0000000000000006  x3  000000713cff2010
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x4  fefeff6fd1ff7164  x5  fefeff6fd1ff7164  x6  fefeff6fd1ff7164  x7  7f7f7f7fff7f7f7f
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x8  00000000000000f0  x9  0a2c1f0f6cfd1868  x10 0000000000000001  x11 0000000000000000
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x12 fffffff0fffffbdf  x13 0000000066e4f052  x14 00004e9db662c627  x15 00000df085aaa188
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x16 00000071cc8eca08  x17 00000071cc8cc7c0  x18 0000006fc341e000  x19 000000000000400b
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x20 00000000000040f5  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 000000713cff2260
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x24 000000713cff2140  x25 000000713cff2180  x26 0000000000000000  x27 0000000000000007
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     x28 0000000000000000  x29 000000713cff20b0
Time: 10:09:28.514 16395 16395 E AndroidRuntime:     sp  000000713cff1ff0  lr  00000071cc881640  pc  00000071cc88166c
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 
Time: 10:09:28.514 16395 16395 E AndroidRuntime: backtrace:
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #00 pc 000000000007066c (libc.so not found)  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #01 pc 0000000000d88848 (abort_message at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:76)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (std::set_unexpected(void (*)())) (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #02 pc 0000000000d889b8 (demangling_terminate_handler() at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_default_handlers.cpp:67)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #03 pc 0000000000d85ae4 (std::__terminate(void (*)()) at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_handlers.cpp:59)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #04 pc 0000000000d85110 (__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_exception.cpp:152)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (__cxa_get_exception_ptr) (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #05 pc 0000000000d8506c (__cxa_throw at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_exception.cpp:284)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #06 pc 0000000000d02f6c (il2cpp::vm::Exception::Raise(Il2CppException*, MethodInfo*) at C:/Program Files/Unity 2021.3.14f1c1/2021.3.14f1c1/Editor/Data/il2cpp/libil2cpp/vm/Exception.cpp:115)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #07 pc 0000000000c785ac (il2cpp_codegen_raise_exception(Exception_t*, MethodInfo*) at C:/Program Files/Unity 2021.3.14f1c1/2021.3.14f1c1/Editor/Data/il2cpp/libil2cpp/codegen/il2cpp-codegen-il2cpp.cpp:374)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #08 pc 0000000002341450 (Array_Copy_mB4904E17BD92E320613A3251C0205E0786B3BF41 at :?)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #09 pc 0000000001ea5e18 (Queue_1_SetCapacity_m99C58B91CC523980980B782ECA7102D123676FF6_gshared at :?)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #10 pc 0000000001ea5b28 (Queue_1_Enqueue_m2A365F4B273A1DF2816E299140C1129624FCB27F_gshared at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Generics77.cpp:10416)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #11 pc 0000000000dedd00 (Queue_1_Enqueue_m2A365F4B273A1DF2816E299140C1129624FCB27F(Queue_1_t82EB8A0414F1DC9069FAD436FE89360E333C5B26*, ValueTuple_2_tE326D7BA767700BE7A2170BDD9FC7218283A81C3, MethodInfo const*) at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:11728)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #12 pc 00000000009ab580 (ReversePInvokeWrapper_CSAudioMgr_BeatEventCallback_m744BF35D4970B3D3EED163042C5ECED64ED5F6DA at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:15953)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libil2cpp.so (BuildId: f04c67d1757edb5167de75dd3743429bae9fab52)
Time: 10:09:28.514 16395 16395 E AndroidRuntime:       #13 pc 00000000000dd534 (libfmodstudio.so not found)  /data/app/com.HL.MS-CF3kwZ4-e1r41ApL3tBtvw==/lib/arm64/libfmodstudio.so
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libc.abort(abort:160)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.std::set_unexpected(void (*)())(set_unexpected:0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd889b8 (demangling_terminate_handler() at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_default_handlers.cpp:67)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd85ae4 (std::__terminate(void (*)()) at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_handlers.cpp:59)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.__cxa_get_exception_ptr(__cxa_get_exception_ptr:0)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd8506c (__cxa_throw at /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_exception.cpp:284)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xd02f6c (il2cpp::vm::Exception::Raise(Il2CppException*, MethodInfo*) at C:/Program Files/Unity 2021.3.14f1c1/2021.3.14f1c1/Editor/Data/il2cpp/libil2cpp/vm/Exception.cpp:115)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xc785ac (il2cpp_codegen_raise_exception(Exception_t*, MethodInfo*) at C:/Program Files/Unity 2021.3.14f1c1/2021.3.14f1c1/Editor/Data/il2cpp/libil2cpp/codegen/il2cpp-codegen-il2cpp.cpp:374)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x2341450 (Array_Copy_mB4904E17BD92E320613A3251C0205E0786B3BF41 at :?)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x1ea5e18 (Queue_1_SetCapacity_m99C58B91CC523980980B782ECA7102D123676FF6_gshared at :?)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x1ea5b28 (Queue_1_Enqueue_m2A365F4B273A1DF2816E299140C1129624FCB27F_gshared at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Generics77.cpp:10416)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0xdedd00 (Queue_1_Enqueue_m2A365F4B273A1DF2816E299140C1129624FCB27F(Queue_1_t82EB8A0414F1DC9069FAD436FE89360E333C5B26*, ValueTuple_2_tE326D7BA767700BE7A2170BDD9FC7218283A81C3, MethodInfo const*) at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:11728)(Native Method)
Time: 10:09:28.514 16395 16395 E AndroidRuntime: 	at libil2cpp.0x9ab580 (ReversePInvokeWrapper_CSAudioMgr_BeatEventCallback_m744BF35D4970B3D3EED163042C5ECED64ED5F6DA at C:/Game/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp:15953)(Native Method)
Time: 10:09:28.515  1692 17400 I chatty  : uid=1000 system_server expire 1 line
Time: 10:09:28.515 16395 16395 E AndroidRuntime: 	at libfmodstudio.0xdd534 (libfmodstudio.so not found)(Native Method)

The code where the crash is suspected to occur is as follows:

private static readonly Queue<(IntPtr, IntPtr)> destroyedEventWithDescriptionPtrs = new();

[AOT.MonoPInvokeCallback(typeof(FMOD.Studio.EVENT_CALLBACK))]
static FMOD.RESULT BeatEventCallback(EVENT_CALLBACK_TYPE type, IntPtr instancePtr, IntPtr parameterPtr)
{
    var eventInstance = new EventInstance(instancePtr);
    eventInstance.getDescription(out EventDescription description);
    destroyedEventWithDescriptionPtrs.Enqueue((instancePtr, description.handle));

    return FMOD.RESULT.OK;
}

This code does not call any Unity-specific functions. Currently, we have no effective way to consistently reproduce the crash.

Looking forward to your reply

Hi,

Thank you for the logs and the information. There was a similar issue here: Unity fmod 2.02.04 unity2020.3.40f1 android client occasionally crash. It may have some useful information.

What does this BeatEventCallback do?

The BeatEventCallback is the corresponding callback for the eventInstance (EVENT_CALLBACK).

After enabling the Enable API Error Logging option in FMOD Settings, I encountered two types of errors during runtime. These are:

  1. ERR_CHANNEL_STOLEN for CHANNELCONTROL.
  2. An error in FMOD RuntimeManager.cs with the following line:
    var velocity = (position - attachedInstances[i].lastFramePosition) / Time.deltaTime
    This error occurs because Time.deltaTime is zero.

I currently suspect that these errors are causing the crash.

Thank you for the information.

This issue may have been solved in the 2.02.18 update: FMOD Engine | Welcome - Revision Histroy.

Would it be possible to try updating and let me know if the issue persists?

1 Like

Thank you for your response. After upgrading to version 2.02.18, the issue with Time.deltaTime == 0 has been resolved, but I’m still encountering the error: [FMOD] ChannelControl::stop() returned ERR_CHANNEL_STOLEN for CHANNELCONTROL/[FMOD] EventInstance::stop(0) returned ERR_INVALID_HANDLE for STUDIO_EVENTINSTANCE. We haven’t set a limit for the maxinstance of ‘bus’, but the maxinstance for ‘event’ is restricted. I look forward to your feedback.

Good to hear that the issue was solved.

Would it be possible to get your Studio project uploaded to your account with the following settings:

Sorry, due to the project being on an internal network, I am unable to provide the corresponding resource package. Can I offer you any other useful information to help identify the issue?
Moreover, there are a lot of errors when a large number of audio files are played simultaneously. The error messages are as follows:
[FMOD] EventInstance::getPlaybackState(000000F083DADD18) returned ERR_INVALID_HANDLE for STUDIO_EVENTINSTANCE (0x5B9DE0).
[FMOD] ChannelControl::stop() returned ERR_CHANNEL_STOLEN for CHANNELCONTROL (0x7D60275).
[FMOD] ChannelControl::isPlaying(000000F08DFAF6A0
) returned ERR_CHANNEL_STOLEN for CHANNELCONTROL (0x7D60275).
[FMOD] EventInstance::getPlaybackState(000000F083DACB88) returned ERR_INVALID_HANDLE for STUDIO_EVENTINSTANCE (0x45D0E0).

image
“Is the error caused by enabling the exclusion mode with virtualization in the event?”

Correct, a detailed explanation can be found here: Err_channel_stolen - #2 by jeff_fmod