Hi, I’m writing an app which uses BLE. The app advertises for a period of 10 seconds every minute, it also perform scans for a period of 1 minute every 5 minutes. Now some times the bluetooth app crashes and I see the following log in the logcat. From my observation it happens on A10 and A50 devices. Has anyone seen faced something like that before?
2020-06-15 14:24:27.632 17712-17712/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-06-15 14:24:27.632 17712-17712/? A/DEBUG: Build fingerprint: 'samsung/a30dd/a30:9/PPR1.180610.011/A305FDDU0ASA9:user/release-keys'
2020-06-15 14:24:27.632 17712-17712/? A/DEBUG: Revision: '3'
2020-06-15 14:24:27.632 17712-17712/? A/DEBUG: ABI: 'arm64'
2020-06-15 14:24:27.632 17712-17712/? A/DEBUG: pid: 16050, tid: 16107, name: btu message loo >>> com.android.bluetooth <<<
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb1150008
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x0 00000000b1150000 x1 00000078bbb1f070 x2 000000789edee780 x3 00000078a0b41110
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x4 000f27c43f000000 x5 00000000ffffffff x6 0000007942ed1000 x7 000000000062107a
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x8 0000000000010002 x9 00000078a0b413e0 x10 0000000000000001 x11 000000000000001a
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x12 0000000000000018 x13 000000005ee75a6b x14 001af0c5fe535a00 x15 00004ebf413a21c8
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x16 00000078a11a95b8 x17 00000078a10c86cc x18 0000000000000001 x19 000000789f612770
2020-06-15 14:24:27.633 17712-17712/? A/DEBUG: x20 00000078bbb1f070 x21 000000789edef588 x22 000000789f61277d x23 00000078a11ad000
2020-06-15 14:24:27.634 17712-17712/? A/DEBUG: x24 000000789edef588 x25 000000789edef588 x26 000000789edee598 x27 000000789edeed18
2020-06-15 14:24:27.634 17712-17712/? A/DEBUG: x28 0000000000002019 x29 000000789edee4d0
2020-06-15 14:24:27.634 17712-17712/? A/DEBUG: sp 000000789edee470 lr 00000078a10d390c pc 00000078a0a4254c
2020-06-15 14:24:27.687 17712-17712/? A/DEBUG: backtrace:
2020-06-15 14:24:27.687 17712-17712/? A/DEBUG: #00 pc 00000000002b854c /system/lib64/libbluetooth.so (btu_hcif_command_complete_evt_with_cb_on_task(BT_HDR*, void*) [clone .cfi]+176)
2020-06-15 14:24:27.687 17712-17712/? A/DEBUG: #01 pc 0000000000096908 /system/lib64/libchrome.so (base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)+248)
2020-06-15 14:24:27.687 17712-17712/? A/DEBUG: #02 pc 00000000000afd14 /system/lib64/libchrome.so (base::MessageLoop::RunTask(base::PendingTask*)+416)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #03 pc 00000000000affbc /system/lib64/libchrome.so (base::MessageLoop::DeferOrRunPendingTask(base::PendingTask)+52)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #04 pc 00000000000b03f8 /system/lib64/libchrome.so (base::MessageLoop::DoWork()+380)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #05 pc 00000000000b1790 /system/lib64/libchrome.so (base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+180)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #06 pc 00000000000afa08 /system/lib64/libchrome.so (base::MessageLoop::RunHandler()+112)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #07 pc 00000000000cc60c /system/lib64/libchrome.so (base::RunLoop::Run()+136)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #08 pc 00000000002b88c8 /system/lib64/libbluetooth.so (btu_message_loop_run(void*) [clone .cfi]+324)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #09 pc 000000000032f398 /system/lib64/libbluetooth.so (work_queue_read_cb(void*) [clone .cfi]+120)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #10 pc 000000000032d840 /system/lib64/libbluetooth.so (run_reactor(reactor_t*, int) [clone .cfi]+416)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #11 pc 000000000032d674 /system/lib64/libbluetooth.so (reactor_start(reactor_t*) [clone .cfi]+84)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #12 pc 000000000032f148 /system/lib64/libbluetooth.so (run_thread(void*) [clone .cfi]+188)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #13 pc 00000000000836c8 /system/lib64/libc.so (__pthread_start(void*)+196)
2020-06-15 14:24:27.688 17712-17712/? A/DEBUG: #14 pc 0000000000023bac /system/lib64/libc.so (__start_thread+68)
2020-06-15 14:24:29.007 16049-16102/? E/android.hardware.bluetooth@1.0-impl: BluetoothDeathRecipient::serviceDied - Bluetooth service died