Audio related crashes?

I am getting tons of these crashes below from multiple devices. Please anyone here can give me any insights on how to fix this issue? Using cocos2d-x 3.14.1

backtrace:
native: pc 0000000000042d2c /system/lib/libc.so (tgkill+12)
native: pc 0000000000040d41 /system/lib/libc.so (pthread_kill+32)
native: pc 000000000001c7eb /system/lib/libc.so (raise+10)
native: pc 000000000001999d /system/lib/libc.so (__libc_android_abort+34)
native: pc 0000000000017550 /system/lib/libc.so (abort+4)
native: pc 0000000000008cef /system/lib/libcutils.so (__android_log_assert+86)
native: pc 000000000010610b /system/lib/libstagefright.so (_ZN7android8OMXCodec14setupMp3FormatERKNS_2spINS_8MetaDataEEE+502)
native: pc 00000000001048cb /system/lib/libstagefright.so (_ZN7android8OMXCodec14configureCodecERKNS_2spINS_8MetaDataEEE+1646)
native: pc 0000000000103b7f /system/lib/libstagefright.so (_ZN7android8OMXCodec6CreateERKNS_2spINS_4IOMXEEERKNS1_INS_8MetaDataEEEbRKNS1_INS_11MediaSourceEEEPKcjRKNS1_I13ANativeWindowEE+1182)
native: pc 000000000000c955 /system/lib/libwilhelm.so
native: pc 000000000000be59 /system/lib/libstagefright_foundation.so (_ZN7android8AHandler14deliverMessageERKNS_2spINS_8AMessageEEE+16)
native: pc 000000000000de3b /system/lib/libstagefright_foundation.so (_ZN7android8AMessage7deliverEv+54)
native: pc 000000000000c865 /system/lib/libstagefright_foundation.so (_ZN7android7ALooper4loopEv+224)
native: pc 0000000000010079 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112)
native: pc 0000000000040643 /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: pc 000000000001a021 /system/lib/libc.so (__start_thread+6)

Try this https://github.com/cocos2d/cocos2d-x/pull/18124

@Boby Thanks man! I will try it out. By the way did you see similar stack trace?

Thanks!

@vkreal2 Yes, this solved it for me

1 Like

Thank you very much!!!