AsteroidOS / AsteroidOSSync

Android application to synchronize a phone with a watch running asteroid-btsyncd.
GNU General Public License v3.0
101 stars 37 forks source link

[catfish] Subsequent Bluetooth connections crash `com.android.bluetooth` #194

Closed sevmonster closed 1 year ago

sevmonster commented 1 year ago

On my Pixel 6 Pro running latest GrapheneOS, the Bluetooth service stack itself crashes after having connected once. Bluetooth appears to turn off from the UI and turn back on a second later when the service restarts.

I will provide more information later, just wanted to report when I experienced it.

edit: of course when I start up logcat, I can no longer reproduce the issue after having rebooted. I will reopen if I can get it to happen again.

sevmonster commented 1 year ago

Nevermind, poked at it and got it to reproduce. After disconnecting and reconnecting a few times while the watch screen was off, I turned it on to check the Bluetooth connection. Despite disconnecting on the phone, the watch still said it was connected. I disconnected from the watch and re-paired. After that, it started crashing again.

logcat_02-27-2023_21-32-48.txt

So far the only way I can get it to stop crashing is to unpair the watch in the app/Bluetooth settings, restart the phone, and re-pair. But it seems it will start crashing at some point without any manual interaction, as every time I go to check the connection after an hour or so it has started crashing again. For now I am just not using the app.

eLtMosen commented 1 year ago

Thanks for reporting! Not a solution at all, but to have an alternative to AOSSync, you might want to check the new gadget bridge support. Initial AsteroidOS support has been added in the last version 0.73 https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/CHANGELOG.md

sevmonster commented 1 year ago

I got it to connect, though it's much more touchy than AOSSync. Notifications also seem to get sent over if they feel like it, and weather doesn't work.

So far, Bluetooth hasn't crashed. Not sure what AOSSync is doing that Gadgetbridge isn't, but it's seemingly allowing me to stay connected.

sevmonster commented 1 year ago

I am not sure how I missed that but this is a dupe of #192.

librarydemise457892 commented 1 year ago

@sevmonster You didn't miss it, it only appeared publicly not long ago as Github was holding my account hostage and hiding my posts. I actually lost some of the info I posted in that issue.