Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 14 - Connection drops / app stops working #213

Open
Kahros opened this issue Jan 29, 2024 · 10 comments
Open

Android 14 - Connection drops / app stops working #213

Kahros opened this issue Jan 29, 2024 · 10 comments

Comments

@Kahros
Copy link

Kahros commented Jan 29, 2024

Device: Samsung S23 Ultra
OS: Android 14
Version of app: 0.29
Watch: Catfish

I am able to get this software installed, permissions set, connected to my watch, and functional but after a period of time, app features stop working. For me to resolve this, I force-close the app and reopen it.

Possibly related, gadgetbridge has a similar issue, except if I change any settings within the app, I need to force-close it for it to send notifications to the watch - gadgetbridge works consistently there after provided I don't mess with anything.

I saw that back in April, there was a fox for Bluetooth buffer overflow causing issues. Maybe this is a similar problem?

I'm unaware how to pull logs. If anyone can direct me as how how, I'll include them.

@librarydemise457892
Copy link

Hi,

Apologies for the delay I meant to upload my experience with this issue awhile ago but I've been pressed for time. I am experiencing the same issue.

Device: Pixel 6
OS: Latest Graphene OS (Android 14)
Version of app: Latest from F droid (0.29) and every other build that is runnable on A14, including the previous debug builds
Watch: Catfish

At first I thought it was to do with the Bluetooth regressions in A14 but once they were resolved it was ruled out as the issue still occurs. Based on your description it is not a Graphene specific bug either.

I have attached a quick log that Graphene generated but will get the full crash dump from ADB later.

Error in AsteroidOS Sync ec4cd4a131fc.txt
Error in AsteroidOS Sync ada966394367.txt

Our sample size is still quite small but I will ask in the Matrix chat as well as do some further testing of my own.

@Subsonic-dev
Copy link

Hi,

Apologies for the delay I meant to upload my experience with this issue awhile ago but I've been pressed for time. I am experiencing the same issue.

Device: Pixel 6 OS: Latest Graphene OS (Android 14) Version of app: Latest from F droid (0.29) and every other build that is runnable on A14, including the previous debug builds Watch: Catfish

At first I thought it was to do with the Bluetooth regressions in A14 but once they were resolved it was ruled out as the issue still occurs. Based on your description it is not a Graphene specific bug either.

I have attached a quick log that Graphene generated but will get the full crash dump from ADB later.

Error in AsteroidOS Sync ec4cd4a131fc.txt Error in AsteroidOS Sync ada966394367.txt

Our sample size is still quite small but I will ask in the Matrix chat as well as do some further testing of my own.

I no longer have access to this account so will be posting logs from this one going forward. Attached is the logcat from the crash.
AsteroidOS Sync log 5f9946f4da85.txt

@Kahros Try using the following to get logs of the crash so we can compare:
adb logcat -v time > logcat.txt

@sevmonster Are you still running Graphene on a P6P with Catfish? Have you encountered this issue?

@sevmonster
Copy link

I sold my watch and cannot test this issue, sorry.

@Subsonic-dev
Copy link

The problem mentioned in issue #217 looks to be the same problem as discussed here.

Somewhat unsurprising if by looking at the logs it turns out to be the same thing, whatever arbitrary code change in A14 that is broken/causes the sync app to crash persists in A15. Perhaps even crashing more.

If that turns out to be the case I suggest renaming this issue to A14 + rather make a new issue for every subsequent release until we figure out why it crashes. Will make tracking the issue and save some headaches.

I haven't had a chance to look into this more yet but I'm hoping for some down time in October when I can revisit this issue.

@TheCaster
Copy link

TheCaster commented Aug 28, 2024

Okay, so after experiencing the same problems. I recompiled and installed over Android Studio on Pixel 6 with GrapheneOS. Interesting enough, the crashes don't to appear then?

@Subsonic-dev
Copy link

Okay, so after experiencing the same problems. I recompiled and installed over Android Studio on Pixel 6 with GrapheneOS. Interesting enough, the crashes don't to appear then?

That is curious. Are you running the latest stable build of GOS? Not that it should make any difference but are you running play services? If you built the Sync app from source it should be similar to the current F droid build.

There have been a few GOS updates since I last tested so I will try again after work.

@TheCaster
Copy link

@Subsonic-dev Android 14 with latest updates. Play Services are installed, but not in the profile where I am running the AsteroidOS Sync App, therefor it - should - not be accessible. I am also a little bit surprised ...

@TheCaster
Copy link

@Subsonic-dev The problem does not always seem to occur. The best way to recreate in Debugging is it to disconnect from the watch and reopen the application after that without shutting it down. The reconnect and sync loop (especially when updating the battery status < 100%) seem to help in creating the specific error. Research suggests that the MTU for the Bluetooth connection could be a problem. However, I cannot say for sure, as it is relatively difficult to trace the error ...
(Especially if, like me, you very rarely tinker with Android)

@MeowcaTheoRange
Copy link

Happening to me too, between Pixel 6a with Calyx OS (5.11.0) and Skipjack (1.1-nightly)

@streeriver
Copy link

Same issue here. Pixel 4a5g GrapheneOS Android 14. The times I've watched it disconnect I get a notification from another app(text message or email, etc). As soon as that notification shows up the app disconnects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants