phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.41k stars 659 forks source link

[Note 10+ Snapdragon] A2DP offload crashes Bluetooth #1226

Open manofsteel2017 opened 4 years ago

manofsteel2017 commented 4 years ago

Latest gsi has Bluetooth problem It's not connecting and it's crashing. That's the only issue I think I have Please have a look when possible

Log_2020-04-03_12-31-52.txt

phhusson commented 4 years ago

crash is

04-03 12:33:17.903 12905 12957 I bt_stack: [INFO:connection_handler.cc(499)] void bluetooth::avrcp::ConnectionHandler::SdpCb(const RawAddress &, bluetooth::avrcp::ConnectionHandler::SdpCallback, tSDP_DISCOVERY_DB *, uint16_t): Device cc:98:8b:21:4f:c2 supports advanced control
04-03 12:33:17.931 12905 12957 I bt_stack: [INFO:btsnoop.cc(323)] clear_l2cap_whitelist: Clearing whitelist from l2cap channel. conn_handle=13 cid=75:21126
04-03 12:33:17.932 12999 12999 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
04-03 12:33:17.933  1250  1250 I /system/bin/tombstoned: received crash request for pid 12964
04-03 12:33:17.935 12999 12999 I crash_dump64: performing dump of process 12905 (target tid = 12964)
04-03 12:33:17.948 12999 12999 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-03 12:33:17.949 12999 12999 F DEBUG   : Build fingerprint: 'samsung/d2qzh/d2q:10/QQ2A.200305.003/200314:userdebug/test-keys'
04-03 12:33:17.949 12999 12999 F DEBUG   : Revision: '14'
04-03 12:33:17.949 12999 12999 F DEBUG   : ABI: 'arm64'
04-03 12:33:17.950 12999 12999 F DEBUG   : Timestamp: 2020-04-03 12:33:17-0400
04-03 12:33:17.950 12999 12999 F DEBUG   : pid: 12905, tid: 12964, name: bt_a2dp_source_  >>> com.android.bluetooth <<<
04-03 12:33:17.950 12999 12999 F DEBUG   : uid: 1002
04-03 12:33:17.950 12999 12999 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
04-03 12:33:17.950 12999 12999 F DEBUG   : Abort message: '[FATAL:btif_a2dp_audio_interface.cc(273)] Check failed: btAudio != nullptr. 
04-03 12:33:17.950 12999 12999 F DEBUG   : #00 0x00000070ef63e29f /system/lib64/libchrome.so+0x00000000000b829f
04-03 12:33:17.950 12999 12999 F DEBUG   : #01 0x00000070ef0fd06f /system/lib64/libbluetooth.so+0x00000000001fd06f
04-03 12:33:17.950 12999 12999 F DEBUG   : #02 0x00000070ef1024c3 /system/lib64/libbluetooth.so+0x00000000002024c3
04-03 12:33:17.950 12999 12999 F DEBUG   : #03 0x00000070ef102217 /system/lib64/libbluetooth.so+0x0000000000202217
04-03 12:33:17.950 12999 12999 F DEBUG   : #04 0x00000070ef6265bf /system/lib64/libchrome.so+0x00000000000a05bf
04-03 12:33:17.950 12999 12999 F DEBUG   : #05 0x00000070ef645b4b /system/lib64/libchrome.so+0x00000000000bfb4b
04-03 12:33:17.950 12999 12999 F DEBUG   : #06 0x00000070ef645ef3 /system/lib64/libchrome.so+0x00000000000bfef3
04-03 12:33:17.950 12999 12999 F DEBUG   : #07 0x00000070ef64766b /system/lib64/libchrome.so+0x00000000000c166b
04-03 12:33:17.950 12999 12999 F DEBUG   : #08 0x00000070ef66923f /system/lib64/libchrome.so+0x00000000000e323f
04-03 12:33:17.950 12999 12999 F DEBUG   : #09 0x00000070ef09bffb /system/lib64/libbluetooth.so+0x000000000019bffb
04-03 12:33:17.950 12999 12999 F DEBUG   : #10 0x00000070ef09bda7 /system/lib64/libbluetooth.so+0x000000000019bda7
04-03 12:33:17.950 12999 12999 F DEBUG   : #11 0x00000070ef09be3f /system/lib64/libbluetooth.so+0x000000000019be3f
04-03 12:33:17.950 12999 12999 F DEBUG   : #12 0x00000071d5b940a3 /apex/com.android.runtime/lib64/bionic/libc.so+0x00000000000e10a3
04-03 12:33:17.950 12999 12999 F DEBUG   : #13 0x00000071d5b36ab3 /apex/com.android.runtime/lib64/bionic/libc.so+0x0000000000083ab3
04-03 12:33:17.950 12999 12999 F DEBUG   : #14 0xffffffffffffffff <unknown>
04-03 12:33:17.950 12999 12999 F DEBUG   : 
04-03 12:33:17.950 12999 12999 F DEBUG   : '
04-03 12:33:17.950 12999 12999 F DEBUG   :     x0  0000000000000000  x1  00000000000032a4  x2  0000000000000006  x3  00000070d3f46e50
04-03 12:33:17.950 12999 12999 F DEBUG   :     x4  5f6f696475615f00  x5  5f6f696475615f00  x6  5f6f696475615f00  x7  805f617564696f5f
04-03 12:33:17.950 12999 12999 F DEBUG   :     x8  00000000000000f0  x9  06c564b004ab6be8  x10 0000000000000001  x11 0000000000000000
04-03 12:33:17.950 12999 12999 F DEBUG   :     x12 fffffff0fffffbdf  x13 0000000000000001  x14 0000000000000008  x15 0000809bfda9d7f4
04-03 12:33:17.950 12999 12999 F DEBUG   :     x16 00000071d5ba28c0  x17 00000071d5b800c0  x18 00000070d3c36030  x19 0000000000003269
04-03 12:33:17.950 12999 12999 F DEBUG   :     x20 00000000000032a4  x21 00000000ffffffff  x22 00000070d3f47458  x23 00000071d5b9c620
04-03 12:33:17.950 12999 12999 F DEBUG   :     x24 00000070ef6af000  x25 00000070d3f46f38  x26 00000070d3f46f38  x27 00000070d3f48020
04-03 12:33:17.950 12999 12999 F DEBUG   :     x28 0000000000000000  x29 00000070d3f46ef0
04-03 12:33:17.950 12999 12999 F DEBUG   :     sp  00000070d3f46e30  lr  00000071d5b34f48  pc  00000071d5b34f74
04-03 12:33:17.955  3117  3538 I BeaconBle: Client requested scan, settings=BleSettings [scanMode=ZERO_POWER, callbackType=ALL_MATCHES, reportDelayMillis=0, 5 filters, 1 clients, callingClientName=Nearby]
04-03 12:33:17.959  3117  3538 I BeaconBle: Stopping scan on delegate scanner. BT state: 12
04-03 12:33:17.983 12999 12999 F DEBUG   : 
04-03 12:33:17.983 12999 12999 F DEBUG   : backtrace:
04-03 12:33:17.983 12999 12999 F DEBUG   :       #00 pc 0000000000081f74  /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #01 pc 000000000009f5c0  /system/lib64/libchrome.so (base::debug::BreakDebugger()+20) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #02 pc 00000000000b86e4  /system/lib64/libchrome.so (logging::LogMessage::~LogMessage()+1240) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #03 pc 00000000001fd06c  /system/lib64/libbluetooth.so (btif_a2dp_audio_interface_start_session()+384) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #04 pc 00000000002024c0  /system/lib64/libbluetooth.so (btif_a2dp_source_start_session_delayed(RawAddress const&, std::__1::promise<void>) [clone .cfi]+540) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #05 pc 0000000000202214  /system/lib64/libbluetooth.so (_ZN4base8internal7InvokerINS0_9BindStateIPFvRK10RawAddressNSt3__17promiseIvEEEJS3_S8_EEEFvvEE7RunOnceEPNS0_13BindStateBaseE.cfi+72) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.983 12999 12999 F DEBUG   :       #06 pc 00000000000a05bc  /system/lib64/libchrome.so (base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)+188) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #07 pc 00000000000bfb48  /system/lib64/libchrome.so (base::MessageLoop::RunTask(base::PendingTask*)+308) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #08 pc 00000000000bfef0  /system/lib64/libchrome.so (base::MessageLoop::DoWork()+476) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #09 pc 00000000000c1668  /system/lib64/libchrome.so (base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+184) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #10 pc 00000000000e323c  /system/lib64/libchrome.so (base::RunLoop::Run()+84) (BuildId: 9df761f1317d0183f61c3df65b280616)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #11 pc 000000000019bff8  /system/lib64/libbluetooth.so (bluetooth::common::MessageLoopThread::Run(std::__1::promise<void>)+304) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #12 pc 000000000019bda4  /system/lib64/libbluetooth.so (bluetooth::common::MessageLoopThread::RunThread(bluetooth::common::MessageLoopThread*, std::__1::promise<void>) [clone .cfi]+48) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #13 pc 000000000019be3c  /system/lib64/libbluetooth.so (_ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFvPN9bluetooth6common17MessageLoopThreadENS_7promiseIvEEESA_SC_EEEEEPvSG_.cfi+100) (BuildId: 24843b1fa7effef168a5afd77d3d9b24)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #14 pc 00000000000e10a0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
04-03 12:33:17.986 12999 12999 F DEBUG   :       #15 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 5834b0231128ab3ef94abf71155cf61a)
manofsteel2017 commented 4 years ago

present in v215

phhusson commented 4 years ago

Do you have the toggle in developer settings to disable a2dp offload? If yes, have you tried to tick it?

manofsteel2017 commented 4 years ago

hey just saw your comment and went back to try that option ticked it and reboot and lmfaooooooooooooooooooooooooooo it worked you got to freaking kidding me lol

phhusson commented 4 years ago

sorry I didn't think about it earlier...

Le mer. 8 avr. 2020 à 15:35, manofsteel2017 notifications@github.com a écrit :

hey just saw your comment and went back to try that option ticked it and reboot and lmfaooooooooooooooooooooooooooo it worked you got to freaking kidding me lol

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

manofsteel2017 commented 4 years ago

no dude. you helped me always appreciate your help man. will push another donation to you soon