NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.38k stars 1.14k forks source link

XDrip+ is causing audio to pause #1859

Closed aaroecker closed 2 years ago

aaroecker commented 2 years ago

XDrip+ version c98a3c4-2021.10.17 is causing audio to pause when playing music/podcasts over Bluetooth.

The issue happens when the connection is made with the transmitter every 5 minutes; I've been able to reproduce it will all of my Bluetooth headphones and car Bluetooth.

I am using a Pixel 4a on Android 12 with a G6 transmitter.

The issue was present on Android 11 with XDrip+ version c98a3c4-2021.10.17 too. I tried the previous nightly and the issue did not resolve itself. This issue was not present previously.

I've tried resetting all Bluetooth devices and deleting and reinstalling xDrip+. I have submitted logs.

The problem persists after uninstalling xDrip+ and installing the native Dexcom app. Prior to installing the Dexcom app I forgot the transmitter in the Bluetooth settings and reboot the phone.

Thank you for looking into this.

UPDATE: The issue seems to be coming for the Roku app. Deleting the Roku app resolves the issue.

Navid200 commented 2 years ago

Another user, on facebook, has experienced the same, with Pixel 4a, after having updated to Android 12. He then switched to the Dexcom app, on the same phone, and the issue persisted.

BenMc19 commented 2 years ago

Came here to make this post, glad (I guess?) to see that it's not just me. Just so weird how this just started happening a few days ago. Nothing has been updated on my phone's side (Samsung S20 FE, Android 11, September 1, 2021 security patch) or on the Xdrip side. Very strange.

abehrens commented 2 years ago

Seeing the same behavior on my pixel 5. Tried silencing all notifications for the app and it didn't do the trick. Does not occur when playing from the speaker, only via bluetooth. (Edit) Security patch is from October 5 2021, xdrip version 17cbf0-2021.03.08

Navid200 commented 2 years ago

@BenMc19 @abehrens and anyone else experiencing this, would you please include what Android version you have experienced this on?

abehrens commented 2 years ago

Happened on Android 11, just updated to 12 and same behavior.

DaveGee281 commented 2 years ago

It started happening to me on a Samsung Galaxy S8+ which uses Android 9.

For the past 2 weeks, my Bluetooth ear buds disconnect every 5 minutes when Xdrip+ connects to the Dexcom transmitter and downloads BG data from the transmitter to the phone. I need to manually restart the earbuds. I'm using Xdrip version 17cbcf0=2021.03.08.

tolot27 commented 2 years ago

The problem persists after uninstalling xDrip+ and installing the native Dexcom app. Prior to installing the Dexcom app I forgot the transmitter in the Bluetooth settings and reboot the phone.

This indicates a bug in the Bluetooth stack since at least two apps are affected.

tolot27 commented 2 years ago

@abehrens and others: Please edit your previous comments and add your security patch level.

bryanw20 commented 2 years ago

Thanks for starting this; I haven't made time to comment just yet. I think I'm the other user @Navid200 mentioned.

I also have a pixel 4a; everything (almost) worked fine on droid 11; but then the phone upgraded to 12. The only problem I had on 11 was with my soundcore brand devices AND amzifit band 5. Only those brands would garble the music on every 5min send tot he watch face. If I disabled the watch in xdrip, no more audio problems. Sorry I deleted that xdrip ver & installed the newest one, but it was the 'offchute' built specific for amazift band 5, a slight change from the miband 5 version.

So currently I'm running 17cbcf0-2021.03.08 code 2103081944 NOT running the amazift band 5 (it is connected to the phone's BT; but I can't make it work with this ver of xdrip yet. But I have the audio issuse when it's been 'forgotten' in the phone bt menu)

As mentioned when DEX 6 sends it's signal; bt audio is paused, regardless of brand (I tried 3) or app playing audio/video. I turned dex source to none, installed the official dex app, same issue; so it's got to be a phone/OS issue; not xdrip.

I have turned ON Gabeldorsche in developer mode; still have the issue (as I checked this it's now off; not sure how long it stays enabled) I have also changed "disable BT A2DP Hardware offload" to ON, no change Chg AVRCP version from 1.6 to 1.4 (no idea what it is/does; choices are default 1.5, 1.3 1.4 & 1.6(this is what mine was on I think)

I can provide any logs; if you tell me how to make them; I will probably wipe & go back to 11 this weekend.

bugreport-sunfish-SP1A.210812.015-2021-10-21-11-51-24.zip bugreport-sunfish-SP1A.210812.015-2021-10-21-13-42-57.zip

BenMc19 commented 2 years ago

I just don't understand how this could have been affected this past week. I listen to Bluetooth audio everyday, so i can tell you exactly when it started happening. I got the September update nearly 4 weeks ago, and this just started happening beginning of this week.

So in theory nothing on my phone changed. Xdrip didn't change. And the transmitter didn't change. You guys are smarter than me with this stuff but just doesn't make sense. If I can offer any other info to help just let me know.

aaroecker commented 2 years ago

The problem persists after uninstalling xDrip+ and installing the native Dexcom app. Prior to installing the Dexcom app I forgot the transmitter in the Bluetooth settings and reboot the phone.

This indicates a bug in the Bluetooth stack since at least two apps are affected.

I tried turning on Gabeldorsche stack in the Developer Options and the issue still persists.

aaroecker commented 2 years ago

Thanks for starting this; I haven't made time to comment just yet. I think I'm the other user @Navid200 mentioned.

I also have a pixel 4a; everything (almost) worked fine on droid 11; but then the phone upgraded to 12. The only problem I had on 11 was with my soundcore brand devices AND amzifit band 5. Only those brands would garble the music on every 5min send tot he watch face. If I disabled the watch in xdrip, no more audio problems. Sorry I deleted that xdrip ver & installed the newest one, but it was the 'offchute' built specific for amazift band 5, a slight change from the miband 5 version.

So currently I'm running 17cbcf0-2021.03.08 code 2103081944 NOT running the amazift band 5 (it is connected to the phone's BT; but I can't make it work with this ver of xdrip yet. But I have the audio issuse when it's been 'forgotten' in the phone bt menu)

As mentioned when DEX 6 sends it's signal; bt audio is paused, regardless of brand (I tried 3) or app playing audio/video. I turned dex source to none, installed the official dex app, same issue; so it's got to be a phone/OS issue; not xdrip.

I have turned ON Gabeldorsche in developer mode; still have the issue (as I checked this it's now off; not sure how long it stays enabled) I have also changed "disable BT A2DP Hardware offload" to ON, no change Chg AVRCP version from 1.6 to 1.4 (no idea what it is/does; choices are default 1.5, 1.3 1.4 & 1.6(this is what mine was on I think)

I can provide any logs; if you tell me how to make them; I will probably wipe & go back to 11 this weekend.

bugreport-sunfish-SP1A.210812.015-2021-10-21-11-51-24.zip bugreport-sunfish-SP1A.210812.015-2021-10-21-13-42-57.zip

The issue was present for me and others on Android 11 too. Please let us know if you do revert back to Android 11 if the issue is resolved. My gut tells me it won't be, at least not for long.

aaroecker commented 2 years ago

I just don't understand how this could have been affected this past week. I listen to Bluetooth audio everyday, so i can tell you exactly when it started happening. I got the September update nearly 4 weeks ago, and this just started happening beginning of this week.

So in theory nothing on my phone changed. Xdrip didn't change. And the transmitter didn't change. You guys are smarter than me with this stuff but just doesn't make sense. If I can offer any other info to help just let me know.

It began Wednesday morning for me on my commute. At first I thought it was my podcast app. Tuesday night I was listening to audio over Bluetooth for approximately an hour without issue.

BenMc19 commented 2 years ago

I just don't understand how this could have been affected this past week. I listen to Bluetooth audio everyday, so i can tell you exactly when it started happening. I got the September update nearly 4 weeks ago, and this just started happening beginning of this week. So in theory nothing on my phone changed. Xdrip didn't change. And the transmitter didn't change. You guys are smarter than me with this stuff but just doesn't make sense. If I can offer any other info to help just let me know.

It began Wednesday morning for me on my commute. At first I thought it was my podcasts app. Tuesday night I was listening to audio over Bluetooth for approximately an hour without issue.

Thinking back, that very well may have been the exact date for me too.

DaveGee281 commented 2 years ago

I got the same issue on a Samsung S8+ (android 9). It started about 2 weeks ago. The only thing that happened at the time was that I stopped using my Garmin Vivoactive 3 to display my CGM readings - I'll be getting it back soon and will check to see if it makes a difference.

On Fri, Oct 22, 2021, 9:40 AM aaroecker @.***> wrote:

I just don't understand how this could have been affected this past week. I listen to Bluetooth audio everyday, so i can tell you exactly when it started happening. I got the September update nearly 4 weeks ago, and this just started happening beginning of this week.

So in theory nothing on my phone changed. Xdrip didn't change. And the transmitter didn't change. You guys are smarter than me with this stuff but just doesn't make sense. If I can offer any other info to help just let me know.

It began Wednesday morning for me on my commute. At first I thought it was my podcasts app. Tuesday night I was listening to audio over Bluetooth for approximately an hour without issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1859#issuecomment-949642290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWFHE5PEZIEPIWUBW6YQBVTUIFSU7ANCNFSM5GOBWXZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

PeterStamford commented 2 years ago

Same issue for me. Started on Friday evening. I haven't updated Android or Xdrip. Very peculiar

eliaskass commented 2 years ago

I'm having this issue as well.

Xdrip+ Version:17cbcf0-2021.03.08 Code: 2103081944

Android 11

Android security update October 1, 2021

Google Play system update August 1, 2021

Baseband version g7250-00132-210419-B-7294132

Kernel version 4.19.160-g85b17737b5f2-ab7508408 #1 Wed Jun 30 08:01:04 UTC 2021

Build number RQ3A.211001.001

vandykej17 commented 2 years ago

I also have this issue, but with the Dexcom app. I have been trying to google it and luckily stumbled on this. Mine also started this past week, definitely before Friday, but not 100% how much before that.

Pixel 2 XL Android 11 Security update: Oct 5, 2020 Google play system update: Aug 1, 2021

Navid200 commented 2 years ago

@vandykej17 Have you contacted Dexcom?

vandykej17 commented 2 years ago

@vandykej17 Have you contacted Dexcom?

I was thinking about it, but they'll just blame Android. And tbh, they probably should, since this happens on XDrip and Dexcom. I haven't changed transmitters recently either.

abehrens commented 2 years ago

@vandykej17 Have you contacted Dexcom?

I was thinking about it, but they'll just blame Android. And tbh, they probably should, since this happens on XDrip and Dexcom. I haven't changed transmitters recently either.

I wonder if there was some threshold crossed with an internal variable on the device, like something is causing an overrun of a buffer somewhere and it was the passage of time that caused this to occur. It feels strange that this just appeared seemingly without the introduction of any other modifications.

Navid200 commented 2 years ago

@vandykej17
Asking them what's going on is a reasonable question. Regardless of whose fault it is, Dexcom is the party you pay, or your insurance pays. Your phone is on their support list.

Considering all of that, if Dexcom cannot address this, I'm not sure what xDrip can do.

bryanw20 commented 2 years ago

I have not contacted dexcom yet, but went on their website and it says, for my 4a at least, it says android versions 8(?)- 11.

So idk if 12 isn't listed because it's still to new or because there's an issue.

Btw I've done a factory reset, ok 2 resets. It was working, then I started opening apps that had been downloaded from my backup. I didn't pause between opening apps and testing, so after like 20 apps I tried audio again and it was broken. So I tried a 2nd reset and it's been 2 days and it's working for now, but I've only used like 10% of my previous apps.

So far I've used: Facebook/msg, text, phone, Pandora, YouTube, reddit, Walmart, sam's & a few others. I haven't added my bt watch, Amazfit band 5 yet, or any other wifi/bt apps . Added 2 soindcore bt devices so far.

Oh and I have a support ticket open with Google/pixel. He checks in with me about once a day, asking the obvious questions. First we did a wifi/bt reset, then the factory reset, then asked where the phone came from, is it USA, is it damaged/water damaged. I keep saying it's not just me...

BenMc19 commented 2 years ago

I have not contacted dexcom yet, but went on their website and it says, for my 4a at least, it says android versions 8(?)- 11.

So idk if 12 isn't listed because it's still to new or because there's an issue.

Btw I've done a factory reset, ok 2 resets. It was working, then I started opening apps that had been downloaded from my backup. I didn't pause between opening apps and testing, so after like 20 apps I tried audio again and it was broken. So I tried a 2nd reset and it's been 2 days and it's working for now, but I've only used like 10% of my previous apps.

So far I've used: Facebook/msg, text, phone, Pandora, YouTube, reddit, Walmart, sam's & a few others. I haven't added my bt watch, Amazfit band 5 yet, or any other wifi/bt apps . Added 2 soindcore bt devices so far.

Oh and I have a support ticket open with Google/pixel. He checks in with me about once a day, asking the obvious questions. First we did a wifi/bt reset, then the factory reset, then asked where the phone came from, is it USA, is it damaged/water damaged. I keep saying it's not just me...

Keep us updated. I really think this is something on Dexcom's end.

aaroecker commented 2 years ago

@vandykej17 Have you contacted Dexcom?

A few have added reviews in the Google Play Store for the Dexcom G6 app, myself included, stating that the app is causing audio to pause.

aaroecker commented 2 years ago

I have not contacted dexcom yet, but went on their website and it says, for my 4a at least, it says android versions 8(?)- 11.

So idk if 12 isn't listed because it's still to new or because there's an issue.

Btw I've done a factory reset, ok 2 resets. It was working, then I started opening apps that had been downloaded from my backup. I didn't pause between opening apps and testing, so after like 20 apps I tried audio again and it was broken. So I tried a 2nd reset and it's been 2 days and it's working for now, but I've only used like 10% of my previous apps.

So far I've used: Facebook/msg, text, phone, Pandora, YouTube, reddit, Walmart, sam's & a few others. I haven't added my bt watch, Amazfit band 5 yet, or any other wifi/bt apps . Added 2 soindcore bt devices so far.

Oh and I have a support ticket open with Google/pixel. He checks in with me about once a day, asking the obvious questions. First we did a wifi/bt reset, then the factory reset, then asked where the phone came from, is it USA, is it damaged/water damaged. I keep saying it's not just me...

Any update on this is it still working correctly?

vandykej17 commented 2 years ago

Just called Dexcom, fairly unhelpful... They first told me it was a hardware issue with my phone - "it probably can't connect to multiple devices at a time". After explaining to them I've been using Dexcom on my phone for 2 years now without this issue, they suggested uninstalling and re-installing the app. My session ends tomorrow so I will go ahead and do that today and report back if that helps.

They also suggested reaching out to my phone manufacturer to get their support on this issue. I know their suggestion will be a factory reset. So I guess I will do that next, if the app re-install doesn't help.

Jake

aaroecker commented 2 years ago

I went back and looked to see what apps were updated when this issue began for me. With that said, I think the issue is coming from the Roku app. I have deleted it and the issue has resolved itself for the past 30 minutes.

BenMc19 commented 2 years ago

Oh my goodness, you may be a saint! I don't even use the Roku app anymore but it's on there. Just deleted it and it made the first 2 readings without pausing!

PeterStamford commented 2 years ago

aaroecker If you're ever in Cumbria, England I will buy you a pint. Awesome work

Navid200 commented 2 years ago

I hope this is not a joke.

Can everyone confirm if uninstalling Roku solves the problem?

vandykej17 commented 2 years ago

Wait, how would the Roku app do this? And only to users with both Dexcom/XDrip and Roku? Not discounting the proof, but it's just crazy :)

Does Roku even use Bluetooth?

vandykej17 commented 2 years ago

@Navid200 I am testing right now, will post back within 10 minutes.

edit - trying a few things before fully removing

vandykej17 commented 2 years ago

Tested the following and still paused after 5 min:

Successfully went 6 minutes with no music pause:

DaveGee281 commented 2 years ago

Same here. Never used the Roku app. Uninstalling it, and Bluetooth audio works. This is on a Samsung S8+.

Big thanks to everyone

On Tue, Oct 26, 2021, 4:08 PM vandykej17 @.***> wrote:

Tested the following and still paused after 5 min:

  • No change (just to make sure its still happening)
  • Removed "media & file" permission from the Roku app
  • Cleared storage and cache

Successfully went 6 minutes with no music pause:

  • Uninstalling app completely fixed it (has been playing for 7 minutes now)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NightscoutFoundation/xDrip/issues/1859#issuecomment-952284370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWFHE5JPSAOP5KDVNR7WJJDUI4DEPANCNFSM5GOBWXZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bryanw20 commented 2 years ago

So here's the updates I received.

Google/pixel says no issues with them, send phone in for repair.

Dexcom says: " Unfortunately android 12 is not yet fully compatible thus causing numerous issues, we are currently investigating this one, android 12 was just recently released 2 weeks ago and we at Dexcom run series of tests on Android/IOS and smart devices where we plan to support after they are publicly released. It may take several weeks or months to complete the necessary vetting and update. The Dexcom medical device and app are Federally regulated, which means phone models/OS must be tested before they can be used."

bryanw20 commented 2 years ago

Personally I'm on day 3 of factory reset and so far it's still working, but I still haven't logged into/opened all the apps I have installed yet. But a majority of the ones I use frequently I have opened.

I also have the Roku app, never use it so gonna delete it now.

vandykej17 commented 2 years ago

@bryanw20 have you re-installed the Roku app yet?

aaroecker commented 2 years ago

Wait, how would the Roku app do this? And only to users with both Dexcom/XDrip and Roku? Not discounting the proof, but it's just crazy :)

Does Roku even use Bluetooth?

I checked and the app was given the permission for "Nearby Devices"; I believe Bluetooth can be used for this. I haven't tested, but I wonder if the permission is not granted if the app would function nicely with xDrip+. With that said, if the permission is not given the Roku app might not work correctly either. As for why it's causing the issue, I have no idea. I just had a hunch that it might to be an app due to when the issue began.

Navid200 commented 2 years ago

@aaroecker

I went back and looked to see what apps were updated when this issue began for me. With that said, I think the issue is coming from the Roku app. I have deleted it and the issue has resolved itself for the past 30 minutes.

Thanks for thinking of that approach. Thanks for sharing the results.
Can I share this solution if someone else, now or in the future, experiences this problem?

aaroecker commented 2 years ago

@aaroecker

I went back and looked to see what apps were updated when this issue began for me. With that said, I think the issue is coming from the Roku app. I have deleted it and the issue has resolved itself for the past 30 minutes.

Thanks for thinking of that approach. Thanks for sharing the results. Can I share this solution if someone else, now or in the future, experiences this problem?

Yes, please do 🙂

Navid200 commented 2 years ago

I wonder if Roku has a setting allowing the user to use an alternative frequency to 2.4GHz.

tolot27 commented 2 years ago

I wonder what happens if #1734 gets merged.

bryanw20 commented 2 years ago

@bryanw20 have you re-installed the Roku app yet?

technically it auso installed from the auto restore/backup; but I haven't opened it since my 3rd factory reset. It was once of the apps I opened on my eariler resets tho.

So short answer is open roku = lose bt audio; I have unsinstalled it for now so I don't accidently tap it!

vandykej17 commented 2 years ago

I wasn't sure the exact route to get Roku support on this, so I started with a community post: https://community.roku.com/t5/Roku-Mobile-App/Roku-app-pausing-Bluetooth-music-every-5-minutes/m-p/732372#M3118

Jake

eliaskass commented 2 years ago

Thank you so much, @aaroecker !

aaroecker commented 2 years ago

I wasn't sure the exact route to get Roku support on this, so I started with a community post: https://community.roku.com/t5/Roku-Mobile-App/Roku-app-pausing-Bluetooth-music-every-5-minutes/m-p/732372#M3118

Jake

I sent an email to both Dexcom and Roku describing the issue.